can ros packages be directly used in ROS2?
can all packages developed in ROS be used directly in ROS2? or is there migration of code needed as per suitability of ROS2 needs?
ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
can all packages developed in ROS be used directly in ROS2? or is there migration of code needed as per suitability of ROS2 needs?
No, you can't directly run ROS 1 nodes in ROS 2, ROS 2 is a complete rewrite without built-in backwards compatibility with ROS 1. A quick search would have pointed you to the comprehensive migration guide:
https://docs.ros.org/en/foxy/Contribu...
Having said that, you could run ROS 1 nodes next to ROS 2 using the ROS 1 bridge
Adding to this: Many of the "little" things have changed with ROS2 (e.g. declaring parameters before their use, how the "spin" function should be handled, launch files are now python files, the DDS for message sending/receiving).
Check out the ROS2 Foxy tutorials. Run through them at least once and try making a quick and easy publisher+subscriber setup. They're very easy, and should give you a good gauge of how to work with ROS2!
Asked: 2021-05-12 04:27:51 -0500
Seen: 471 times
Last updated: May 12 '21
Waypoint Skipping issue on JETSON XAVIER NX
Realsense Camera Performance Degrades Quickly
SMACC or any other state machine for ROS2
Rviz ViewController 'CurrentView' unavailable
How to run ROS command from a python script?
Unable to Open Com Port [closed]
Why there is no timestamp field in sensor_msgs ?