17 #ifndef CARTOGRAPHER_MAPPING_INTERNAL_CONNECTED_COMPONENTS_H_ 18 #define CARTOGRAPHER_MAPPING_INTERNAL_CONNECTED_COMPONENTS_H_ 21 #include <unordered_map> 24 #include "cartographer/mapping/proto/connected_components.pb.h" 80 std::map<std::pair<int, int>,
int> connection_map_
GUARDED_BY(lock_);
84 proto::ConnectedComponents
ToProto(
85 std::vector<std::vector<int>> connected_components);
90 #endif // CARTOGRAPHER_MAPPING_INTERNAL_CONNECTED_COMPONENTS_H_ bool TransitivelyConnected(int trajectory_id_a, int trajectory_id_b) EXCLUDES(lock_)
std::map< int, int > forest_ GUARDED_BY(lock_)
std::vector< int > GetComponent(int trajectory_id) EXCLUDES(lock_)
std::vector< std::vector< int > > Components() EXCLUDES(lock_)
int ConnectionCount(int trajectory_id_a, int trajectory_id_b) EXCLUDES(lock_)
int FindSet(int trajectory_id) REQUIRES(lock_)
ConnectedComponents & operator=(const ConnectedComponents &)=delete
void Connect(int trajectory_id_a, int trajectory_id_b) EXCLUDES(lock_)
void Add(int trajectory_id) EXCLUDES(lock_)
proto::MapLimits ToProto(const MapLimits &map_limits)
void Union(int trajectory_id_a, int trajectory_id_b) REQUIRES(lock_)