Add missing Gazebo IMU topic tags for omnidirectional platforms #282
+3
−0
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Adds missing
<topic>tag to IMU sensor Gazebo definitions for omnidirectional platforms (R100, DO100, DO150).Problem
Without the
<topic>tag, Gazebo publishes IMU data on default topic names instead of the namespace-aware topics expected byros_gz_bridge, causing IMU data to not reach ROS 2 in simulation.Expected topic:
/{namespace}/sensors/imu_0/data_rawActual topic (broken):
/world/{world}/model/{namespace}/link/imu_0_link/sensor/imu_0/imuThis breaks sensor fusion in
ekf_localization_nodesince no IMU data is available.Root Cause
Omnidirectional platforms (R100, DO100, DO150) were missing the
<topic>tag that was added to differential drive platforms (J100, W200, DD100, DD150) in v0.2.10.Solution
Add
<topic>$(arg namespace)/sensors/imu_0/data_raw</topic>to the IMU Gazebo sensor block in each platform's URDF to match the pattern used in other platforms.Testing
Platform: R100 (Ridgeback)
ROS 2: Jazzy
Gazebo: Harmonic
Before fix: