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

Twist in parent or body frame? #10

Open
lucasw opened this issue Feb 23, 2023 · 0 comments
Open

Twist in parent or body frame? #10

lucasw opened this issue Feb 23, 2023 · 0 comments

Comments

@lucasw
Copy link

lucasw commented Feb 23, 2023

Does this code assume that the twist is in the child/body frame rather than the parent/world/inertial frame?

https://github.com/rikba/odometry_transformer/blob/main/src/odometry_transformer.cc#L185-L193

I think the answer to 'not sure if this is necessary' is that it needs to be optional via a ros param, the odometry source could be either- for example I have two different imu+gps devices that publish odometry and one is publishing twist in the odom frame, the other in the base_link frame. (It seems like the best convention would be the body frame where linear x is saying how fast a vehicle is moving forwards regardless of what the heading is but that's not generally agreed upon, or there should be an enum field in the Odometry message to specify which convention is in use)

There could be second param to specify output twist frame as well, this node could be useful transforming into the same frame but just doing a twist convention conversion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant