cartographer-project / cartographer

Cartographer is a system that provides real-time simultaneous localization and mapping (SLAM) in 2D and 3D across multiple platforms and sensor configurations.
Apache License 2.0
7.03k stars 2.24k forks source link

Specialize std::hash for NodeId/SubmapId #1907

Open boscosiu opened 1 year ago

boscosiu commented 1 year ago

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.