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

Add invert_tf to Odometry2DPublisher #206

Merged
merged 1 commit into from
Nov 30, 2020

Conversation

efernandez
Copy link
Collaborator

This allows to publish the inverse TF transform.

This can be useful to skip the odom->base_link lookupTransform() when
braodcasting map->base_link, which must be broadcasted as map->odom
because TF tree doesn't support more than a single parent per frame,
base_link in this case.

This is particular relevant when
predict_to_current_time is enabled, because the lookupTransform() could
take a while, causing delays.

@efernandez efernandez requested review from svwilliams and ayrton04 and removed request for svwilliams November 20, 2020 11:09
@efernandez efernandez self-assigned this Nov 20, 2020
@efernandez efernandez added the enhancement New feature or request label Nov 20, 2020
@efernandez
Copy link
Collaborator Author

Is this failing because it can't find gmock?

It looks like the dependency is missed, and also the include headers and libraries path is not discovered in CMakeLists.txt.

@efernandez
Copy link
Collaborator Author

If the checks are failing because of gmock, as they did for me locally, #207 should hopefully make them pass. 🤞

@svwilliams
Copy link
Contributor

Build error:

fuse_models/src/odometry_2d_publisher.cpp:456:  Add #include <algorithm> for swap  [build/include_what_you_use] [4]

@efernandez
Copy link
Collaborator Author

Added #include for swap, but I think #207 is also needed for the tests to pass

This allows to publish the inverse TF transform.

This can be useful to skip the odom->base_link lookupTransform() when
braodcasting map->base_link, which must be broadcasted as map->odom
because TF tree doesn't support more than a single parent per frame,
base_link in this case. This is particular relevant when
predict_to_current_time is enabled, because the lookupTransform() could
take a while, causing delays.
@svwilliams svwilliams merged commit 72324c0 into locusrobotics:devel Nov 30, 2020
@efernandez efernandez deleted the invert-tf branch December 10, 2020 07:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Development

Successfully merging this pull request may close these issues.

None yet

3 participants