Drop the leading slashes from the rover odometry frame names (fixes #45) - #49
Open
asimonov wants to merge 1 commit into
Open
Drop the leading slashes from the rover odometry frame names (fixes #45)#49asimonov wants to merge 1 commit into
asimonov wants to merge 1 commit into
Conversation
…os#45). ROS 2 tf2 frame ids must not start with a slash. The demos' odom_tf_publisher nodes copy the frame names from the odometry message into /tf, so the transform went out as /odom -> /base_footprint and only resolved because tf2 strips the slashes on the way in. Both the lunar pole and curiosity models are changed; nothing consumes the slashed names on purpose.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Fixes #45.
/odom→odomand/base_footprint→base_footprintin the odometry publisher configuration of the lunar pole and curiosity models. ROS 2 tf2 frame ids must not start with a slash; the demos'odom_tf_publishernodes copy the names from the odometry message into/tf, so the transform went out as/odom→/base_footprintand only resolved because tf2 strips the slashes on the way in.Nothing consumes the slashed names on purpose: the demos'
odom_tf_publishernodes copy whatever the message carries, and the demo READMEs refer toodomandbase_footprint. The Jazzycuriosity_roverandnav2_demodemos ship their own copy of the curiosity model in the demos repository, so they are unaffected either way.Verified on the lunar pole rover (Harmonic, Jazzy demo, GUI run): the odometry message and
/tfcarryodom→base_footprint, andros2 run tf2_ros tf2_echo odom base_linkresolves without the earlier warning.