Fix Issue #27: TF Transform Error for Sonar Sensor by Adding Fixed Joint for base_sonar_01_link #33
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.
PR Title:
Fix TF Transform Error for Sonar Sensor by Adding Fixed Joint for base_sonar_01_link
PR Description:
Description
This pull request addresses Issue #27 by resolving the TF transform error where the sonar sensor frame (
base_sonar_01_link
) is not connected to the robot's TF tree. The error message was:The fix involves adding a fixed joint that attaches
base_sonar_01_link
to thebase_link
in the robot model.Changes Made
tiago_description/robots/tiago.urdf.xacro
sonar_mount_joint
immediately after the base sensors are defined and before the torso is declared. The joint definition is as follows:Testing
colcon build --packages-select tiago_description
.ros2 run tf2_tools view_frames.py
that the transform frombase_link
tobase_sonar_01_link
is correctly published.Impact
This change ensures that the sonar sensor's frame is properly integrated into the TF tree, resolving the TF lookup errors encountered during simulation and enabling correct sensor data processing by the navigation stack.
Please review and merge if everything looks correct.