ros2

SOLVED – ROS2 Yocto – no providers found in RDEPENDS_?

SOLVED – ROS2 Yocto – no providers found in RDEPENDS_? Question: A Bit Backstory I’m trying to install ROS2 package to a Yocto image using Devtools. I follow through this tutorial here with some modification according to my project. The devtools built successfully, but when I run ros2 pkg list My ROS2 package wasn’t there. …

Total answers: 2

How to know actual result of `proc_output.waitFor` if `expected_output` is wrong?

How to know actual result of `proc_output.waitFor` if `expected_output` is wrong? Question: I am trying to follow a ROS2 testing tutorial which tests a topic listener to understand how ROS2 testing works. Here is a screenshot of the related code at 21:15 I have a node target_control_node which subscribes the topic turtle1/pose and then move …

Total answers: 1

ROS2: Troubleshooting 'colcon build' for python packages?

ROS2: Troubleshooting 'colcon build' for python packages? Question: I’m working in a ROS2 workspace ‘home_ws’ with 5 of my packages: home_core home_devices home_extras home_launch home_ui All packages are python, all built following the same example from the ROS2 doc. After ‘colcon_build’ I only see 3 of the 5 packages. Output of ros2 pkg list: … …

Total answers: 1

Error: "self" is not defined error on VSCode on Ubuntu

Error: "self" is not defined error on VSCode on Ubuntu Question: I’m following a tutorial on understanding writing python publisher in ROS2. This is an example that I’m creating. The code does not seem to have any errors but in vscode, the self word is underlined in red and when I hover the mouse it …

Total answers: 1

How to run a ROS2 node inside docker image?

How to run a ROS2 node inside docker image? Question: I have a ros2 package and successfully create a docker image of it. Then when im inside the container i would like to run only one single node of the ros2 package. So first create the environment with PATH=$PATH:/home/user/.local/bin then vcs import . <system_integration/ros.repos then …

Total answers: 2

Why Rospy does not work ros2 python environment?

Why Rospy does not work ros2 python environment? Question: In the python virtual environment, I can not import rospy. Why? I need it to publish and to subscribe the image_raw. Asked By: tgr || Source Answers: With ros2, you’d have to use rclpy instead of rospy. rospy does not exist anymore with ros2, so you …

Total answers: 2