Closed adamsj-ros closed 1 year ago
@adamsj-ros
I encountered the same problem when I was configuring ros_gz_bridge
with command line parameters. The solution that worked for me was to switch the bridge configuration method to YAML. I created a new YAML file with content:
- topic_name: "rgl_lidar"
ros_type_name: "sensor_msgs/msg/PointCloud2"
gz_type_name: "ignition.msgs.PointCloudPacked"
- topic_name: "rgl_lidar/world"
ros_type_name: "sensor_msgs/msg/PointCloud2"
gz_type_name: "ignition.msgs.PointCloudPacked"
and ran:
ros2 run ros_gz_bridge parameter_bridge --ros-args -p config_file:=/full/path/to/your/config.yaml
If anyone knows why command line topics configuration doesn't work we will be grateful for the information.
That worked well. Thank you!
I followed the basic instructions to start
ign gazebo sonoma_with_rgl.sdf
and that works. I can see all the Gazebo topics withign topic -l
and examine the types withign topic -i -t /...
. The problem occurs when I try to run the ROS2/GZ bridge. I've used the bridge before with other topics so I was wondering if anyone has tried this/experienced this with this plugin and had the same problem.I ran:
Even though it's a WARN. It's definitely not working.
The message types should be compatible as shown at this link. https://github.com/gazebosim/ros_gz/tree/ros2/ros_gz_bridge#bridge-communication-between-ros-and-gazebo