-
Notifications
You must be signed in to change notification settings - Fork 29
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
Migrate Rviz support from ROS1 to ROS2 #311
Comments
It would be great if this could be inserted in the next Research Increment planning as part of AMI lab-wide effort to "explor" use of ROS2 . fyi @lrapetti @RiccardoGrieco @DanielePucci @CarlottaSartore |
If that script creates problem, we could also make sure that we are using the latest version with the fixes proposed in ros2/rviz#945 . |
Hi, I managed to install ros2 on mac using Then I tried to run the script
I am not very familiar with ros2, and I don't know how/if the python script should be found |
My bad, I just realized that the script is only available on rolling (i.e. the experimental version) and it is still not on humble (the LTS version). Anyhow, as it is a simple Python script, you can just download it and run it, i.e. :
Anyhow, I probably realized I was a bit too optimistic. Once we got rviz2 to visualize the human, we also need to migrate the appropriate publisher devices in https://github.com/robotology/human-dynamics-estimation/tree/d3a2f546a651ffb17e17b9b7e1b4933abe7e4c3d/publishers from ROS1 to ROS2 . Differently from ROS1, there is no direct support in the YARP library for publishing ROS2 messages, so we need to publish on ROS2 linking directly ROS2 libraries. Some good examples of YARP devices that publish ROS2 messages can be found inhttps://github.com/robotology-playground/yarp-devices-ros2 . |
Yess, I think might be a good exercise to do anyway. On this I also have another question, we are currently using the |
Concerning this I tried to use the script. At first I got the following error:
Then I tried to modify the original file
And it seems to work, here is the loaded rviz2 configuration The modified and the new rviz configuration files have been uploaded in https://github.com/robotology/human-dynamics-estimation/tree/feature/rviz2. |
I just noticed that the following warning was raised when running the
to be investigated |
Probably the warning is because no tf messages are published? |
An alternative is to just publish a ROS2 |
The discussion on ROS2 publishers is moved to #334 |
Upstream effort from the ROS mantainers has shifted from years from ROS1 to ROS2. To avoid future mantainance problem, it would be great to migrate the part of this repo that depend on ROS1 to ROS2 (fortunatly it should not be a lot).
A generic documentation for this is available in https://docs.ros.org/en/humble/The-ROS2-Project/Contributing/Migration-Guide.html, but for this specific task the script proposed in ros2/rviz#882 could be quite useful.
The text was updated successfully, but these errors were encountered: