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: 476 times
Last updated: May 12 '21
parameter_bridge with collection of topic in command line on ROS2 FOXY
ROS2 Launch Configuration - how to properly pass arguments?
Slam_toolbox message filter dropping message
ROS in arm/v7, Docker, and Limited Storage Robot
Sourcing setup.bash in ROS2 foxy
[ROS2 Humble]: Error building the package: joint_trajectory_controller
nodes can't communicate with each other on Docker macOS
How to start multiple Lidar in one file in ros2 environment
How to get the serialized message size/length in ROS2
For Nav2, LIDAR timestamp on the message is earlier than all the data in the transform cache