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

Specialize std::hash for NodeId/SubmapId #1907

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

boscosiu
Copy link

Our software uses Cartographer directly without ROS, so it utilizes the submaps API and the mapping::NodeId and mapping::SubmapId types extensively.

This change adds std::hash<T> specializations to these types so they can be used with STL unordered associative containers.

@boscosiu boscosiu force-pushed the upstream-id-hash-specializations branch from 23dac18 to 09790ba Compare November 5, 2022 12:33
Signed-off-by: Bosco Siu <opensource@qadyence.com>
@boscosiu boscosiu force-pushed the upstream-id-hash-specializations branch from 09790ba to bd9d6ee Compare November 5, 2022 12:36
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

Successfully merging this pull request may close these issues.

None yet

1 participant