-
Notifications
You must be signed in to change notification settings - Fork 277
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
add TF/Pose_V pub in DiffDrive #548
Conversation
Signed-off-by: Guillaume Doisy <[email protected]>
Signed-off-by: Guillaume Doisy <[email protected]>
Thanks for the PR! Did you consider using the PosePublisher system alongside the |
I wasn't aware of the PosePublisher plugin but I guess that could work too! |
Though if it is the plugin that publishes directly the Pose_V / tf, we get a behavior/configuration more similar to the gazebo classic in my opinion. |
Agreed, but in the long run, less duplication is easier to maintain. If we need to update something about how transforms are being published, right now we only need to update the |
I gave it a try but I fail to understand how to configure PosePublisher to publish the transform from odom to the link of the robot. |
Coming back on this, I cannot find a solution to get the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What model/link would be odom ?
Good question. I can see now how this PR is needed. Besides addressing the minor comments below, do you mind also documenting the new topic in DiffDrive.hh
? Thanks!
Signed-off-by: Guillaume Doisy <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for iterating, looks good to me. I just have one final question about the test.
Signed-off-by: Guillaume Doisy <[email protected]>
Signed-off-by: Guillaume Doisy <[email protected]>
4ce718c
to
c4fda6a
Compare
Solves gazebosim/ros_gz#131
With this PR, there is only
/tf@tf2_msgs/[email protected]_V
to add to the args of theros_ign_bridge parameter_bridge
node to get similar TF publishing behavior as in Gazebo Classic DiffDrive plugin.Once merged I can PR
ros_ign_gazebo_demos
if needed with the additional/tf@tf2_msgs/[email protected]_V
.I did the most straightforward implementation. Improvement to discuss:
tfPub
,tf_msg
orpose_VPub
andpose_V_msg
?frame_id -> child_frame_id
transform:tf
or something else ?_sdf->HasElement("publish_tf")
(or other name)