-
Notifications
You must be signed in to change notification settings - Fork 143
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
ros_gz_bridge can't compile on humble/garden: rosidl_pycommon on Ubuntu 22.04, Win10 WSL2 #455
Comments
I tried a partial workaround:
The topics appear in rqt_view
gz sim -v --render-engine ogre sensors_demo.sdf ...
ign gazebo -v --render-engine ogre sensors_demo.sdf |
Maybe I figured it out - I checked again, I discovered that git branch displayed ros2, IDK why. Re-cloned properly and this time it did complete (it takes a lot of RAM/page file though). Then it didn't work until I read the bridge command from the example carefully - I noticed that the declared type was for Ignition, that's why it works only with ign... It should be gz.msgs.Image, not ignition.msg.Image.
Please update the examples. Thanks |
Yes, there are a lot of things happening at compile time with templates. The binaries are suggested if you are on a limited platform.
Depending on the branch, it should be compatible with both. Which branch did you end up using? |
Right, binary is easier, but there wasn't such a combination listed for my case: humble + garden. (I finally compiled with the humble branch, rosidl error happened to has been with the ros2 branch which I thought was humble). As of RAM I had plenty (32 GB), but I use to fill it with stuff and RAM disks. I mentioned that for anyone else who encounters WSL crashes while building, it could be out of memory error and nothing with the source or compatibility, but sometimes it is not clear, because the WSL consoles just suddenly return to Windows. |
I don't think there's any remaining issue here, so I'll go ahead and close it |
Hi, I'm trying to use ros_gz bridge, but I'm facing two problems.
The bridge from the ros2 installation works, but only when a simulation is called with: "ign gazebo" as in the examples here, for sensors_demo.
If the same demo is invoked with gz sim, the topic appears in gz topic -l and ros2 topic list, but there's no image in rqt_view_image.
I tried to build it from source and tried to follow all instructions and tips I could find, cloning the humble branch etc., setting GZ_VERSION=garden etc., but so far it always ends up there:
ModuleNotFoundError: No module named 'rosidl_pycommon'
Also ROS documentation suggests that this module is not supported for humble:
https://index.ros.org/p/rosidl_pycommon/#humble
The rosidl ... pkgs are installed in ROS, I can't find "rosidl_pycommon" in particular, some py binding or something
https://github.com/ros2/rosidl
Here:
https://repo.ros2.org/status_page/humble_rhel.html
I see only "ros-rolling-rosidl-pycommon | 3.4.0-1"
Is humble and gz sim actually supported anymore and what's a possible workaround or switching to Rolling is the solution?
(One I saw is capturing the gz messages I want from another program and posting them myself to ROS, or just the ROS node capturing them using gazebo code or something, but I don't know yet how much work would that involve.)
Thanks.
Environment
Description
Steps to reproduce
The instructions from this repo.
Output
See above.
The text was updated successfully, but these errors were encountered: