This is a small tutorial on how to debug a ROS2 C++ node usign VSCode.
This implementation was done using:
#!/usr/bin/env python | |
# coding: utf-8 | |
# # CODE FOR CANNY EDGE DETECTION USING LIVE WEBCAM | |
# | |
# Live convolution: https://setosa.io/ev/image-kernels/ | |
# | |
# Convolution arithmetics: https://github.com/vdumoulin/conv_arithmetic | |
# | |
# Kernels https://en.wikipedia.org/wiki/Kernel_(image_processing) |
def euler_from_quaternion(quaternion): | |
""" | |
Converts quaternion (w in last place) to euler roll, pitch, yaw | |
quaternion = [x, y, z, w] | |
Bellow should be replaced when porting for ROS 2 Python tf_conversions is done. | |
""" | |
x = quaternion.x | |
y = quaternion.y | |
z = quaternion.z | |
w = quaternion.w |