17 #ifndef CARTOGRAPHER_MAPPING_INTERNAL_TRAJECTORY_CONNECTIVITY_STATE_H_ 18 #define CARTOGRAPHER_MAPPING_INTERNAL_TRAJECTORY_CONNECTIVITY_STATE_H_ 40 void Add(
int trajectory_id);
55 std::vector<std::vector<int>>
Components()
const;
77 #endif // CARTOGRAPHER_MAPPING_INTERNAL_TRAJECTORY_CONNECTIVITY_STATE_H_
void Connect(int trajectory_id_a, int trajectory_id_b, common::Time time)
UniversalTimeScaleClock::time_point Time
common::Time LastConnectionTime(int trajectory_id_a, int trajectory_id_b)
std::map< std::pair< int, int >, common::Time > last_connection_time_map_
void Add(int trajectory_id)
TrajectoryConnectivityState & operator=(const TrajectoryConnectivityState &)=delete
TrajectoryConnectivityState()
bool TransitivelyConnected(int trajectory_id_a, int trajectory_id_b) const
ConnectedComponents connected_components_
std::vector< std::vector< int > > Components() const