Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migration to ROS2 #42

Open
magnusmusngi opened this issue Mar 13, 2024 · 1 comment
Open

Migration to ROS2 #42

magnusmusngi opened this issue Mar 13, 2024 · 1 comment

Comments

@magnusmusngi
Copy link

Hi,

I am planning to switch from ROS1 to ROS2. Seeing that ROS_VERSION is checked in some of the CMakeLists.txt, aside from updating my current mc_rtc_ticker.cpp to compile with ROS2, what other steps should I do for the migration? I am using v1.5.0 for mc_rtc_ros, and v2.11.0 for mc_rtc by the way.

Thank you

@arntanguy
Copy link
Collaborator

Hi,

As far as mc_rtc itself is concerned, both ROS1 and ROS2 are now fully supported:

I'm not sure what you mean by your mc_rtc_ticker.cpp, but if you use the official one, everything is supported as-is.

The only other steps would be:

  • Update your robot description package to support ROS2. You can have a look at https://github.com/jrl-umi3218/jvrc_description to get an example. Essentially this involves updating the package.xml to support ROS2 syntax and ament_cmake, and updating the CMakeList.txt to make it an ament package and properly export the path to the robot description package.
  • Update your own code to support ROS2

Note that currently mc_rtc_ros_control has not been ported.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants