Skip to content
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

Allow OdometryPublisher to work with non-fixed link #2803

Open
Morgantiz opened this issue Feb 28, 2025 · 4 comments · May be fixed by #2822
Open

Allow OdometryPublisher to work with non-fixed link #2803

Morgantiz opened this issue Feb 28, 2025 · 4 comments · May be fixed by #2822
Labels
enhancement New feature or request

Comments

@Morgantiz
Copy link

Allow the OdometryPublisher to publish odometry for a non-fixed link of the robot model. Introduce the possibility to publish the odometry of a point after a non-fixed joint.

Solves StackExchange question:
https://robotics.stackexchange.com/questions/112266/how-to-get-the-global-position-of-a-link-in-gazebo-sim

@Morgantiz Morgantiz added the enhancement New feature or request label Feb 28, 2025
@Morgantiz
Copy link
Author

Solution implemented in: Morgantiz#1

@Morgantiz Morgantiz linked a pull request Mar 13, 2025 that will close this issue
@iche033
Copy link
Contributor

iche033 commented Mar 14, 2025

actually to resolve the original stack exchange question regarding getting pose of links, there is a PosePublisher system that can be used, example world here: https://github.com/gazebosim/gz-sim/blob/gz-sim9/examples/worlds/pose_publisher.sdf

@Morgantiz
Copy link
Author

Thank you very much for your reply and support. Using pose publisher is it also possible to publish the location of a fixed link that is removed within the gazebo model, but present in the URDF? I'm working on the odometry publisher because it allows you to consider a fixed xyz and rpy offset. Furthermore the odometry publisher computes the velocity with respect to the body frame.

@iche033
Copy link
Contributor

iche033 commented Mar 18, 2025

Using pose publisher is it also possible to publish the location of a fixed link that is removed within the gazebo model, but present in the URDF?

Do you mean that a link connected to another link with 'fixed joint' is missing in gazebo? If that's the case, you can set the < preserveFixedJoint> tag in URDF (see this page) which preserves the link. The pose publisher system doesn't publish velocities so may not fit your use case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Inbox
Development

Successfully merging a pull request may close this issue.

2 participants