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: 475 times
Last updated: May 12 '21
ROS in arm/v7, Docker, and Limited Storage Robot
Update odometry based on pose estimate
ament_export_dependencies(Boost) not working?
static_transform_publisher in ROS2 launch file
[ROS 2] How is the name of the typesupport library generated?
What is the purpose of rclpy.spin_until_future_complete?
How to specify the network interface ros2 uses for communication?
Why ar_track_alvar is not installing?
nodes can't communicate with each other on Docker macOS
Error Loading Custom Robotic Manipulator Model in MoveIt2 on ROS2 Humble(error launching demo.py)