#include <trajectory_connectivity_state.h>
Public Member Functions | |
void | Add (int trajectory_id) |
std::vector< std::vector< int > > | Components () const |
void | Connect (int trajectory_id_a, int trajectory_id_b, common::Time time) |
common::Time | LastConnectionTime (int trajectory_id_a, int trajectory_id_b) |
TrajectoryConnectivityState & | operator= (const TrajectoryConnectivityState &) |
TrajectoryConnectivityState () | |
TrajectoryConnectivityState (const TrajectoryConnectivityState &) | |
bool | TransitivelyConnected (int trajectory_id_a, int trajectory_id_b) const |
Private Attributes | |
ConnectedComponents | connected_components_ |
std::map< std::pair< int, int > , common::Time > | last_connection_time_map_ |
Definition at line 31 of file trajectory_connectivity_state.h.
Definition at line 33 of file trajectory_connectivity_state.h.
cartographer::mapping::TrajectoryConnectivityState::TrajectoryConnectivityState | ( | const TrajectoryConnectivityState & | ) |
void cartographer::mapping::TrajectoryConnectivityState::Add | ( | int | trajectory_id | ) |
Definition at line 22 of file trajectory_connectivity_state.cc.
std::vector< std::vector< int > > cartographer::mapping::TrajectoryConnectivityState::Components | ( | ) | const |
Definition at line 63 of file trajectory_connectivity_state.cc.
void cartographer::mapping::TrajectoryConnectivityState::Connect | ( | int | trajectory_id_a, |
int | trajectory_id_b, | ||
common::Time | time | ||
) |
Definition at line 26 of file trajectory_connectivity_state.cc.
common::Time cartographer::mapping::TrajectoryConnectivityState::LastConnectionTime | ( | int | trajectory_id_a, |
int | trajectory_id_b | ||
) |
Definition at line 67 of file trajectory_connectivity_state.cc.
TrajectoryConnectivityState& cartographer::mapping::TrajectoryConnectivityState::operator= | ( | const TrajectoryConnectivityState & | ) |
bool cartographer::mapping::TrajectoryConnectivityState::TransitivelyConnected | ( | int | trajectory_id_a, |
int | trajectory_id_b | ||
) | const |
Definition at line 57 of file trajectory_connectivity_state.cc.
ConnectedComponents cartographer::mapping::TrajectoryConnectivityState::connected_components_ [mutable, private] |
Definition at line 64 of file trajectory_connectivity_state.h.
std::map<std::pair<int, int>, common::Time> cartographer::mapping::TrajectoryConnectivityState::last_connection_time_map_ [private] |
Definition at line 71 of file trajectory_connectivity_state.h.