This is a small tutorial on how to debug a ROS2 C++ node usign VSCode.
This implementation was done using:
| #!/bin/bash | |
| # License: MIT. See license file in root directory | |
| # Copyright(c) JetsonHacks (2017-2019) | |
| OPENCV_VERSION=4.3.0 | |
| # Jetson Nano | |
| ARCH_BIN=5.3 | |
| INSTALL_DIR=/usr/local | |
| # Download the opencv_extras repository | |
| # If you are installing the opencv testdata, ie |
| 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 |