#include <map_builder_bridge.h>
Classes | |
struct | TrajectoryState |
Public Member Functions | |
int | AddTrajectory (const std::set< ::cartographer::mapping::TrajectoryBuilderInterface::SensorId > &expected_sensor_ids, const TrajectoryOptions &trajectory_options) |
void | FinishTrajectory (int trajectory_id) |
visualization_msgs::MarkerArray | GetConstraintList () |
std::set< int > | GetFrozenTrajectoryIds () |
visualization_msgs::MarkerArray | GetLandmarkPosesList () |
cartographer_ros_msgs::SubmapList | GetSubmapList () |
visualization_msgs::MarkerArray | GetTrajectoryNodeList () |
std::unordered_map< int, TrajectoryState > | GetTrajectoryStates () EXCLUDES(mutex_) |
void | HandleSubmapQuery (cartographer_ros_msgs::SubmapQuery::Request &request, cartographer_ros_msgs::SubmapQuery::Response &response) |
void | LoadState (const std::string &state_filename, bool load_frozen_state) |
MapBuilderBridge (const NodeOptions &node_options, std::unique_ptr< cartographer::mapping::MapBuilderInterface > map_builder, tf2_ros::Buffer *tf_buffer) | |
MapBuilderBridge (const MapBuilderBridge &)=delete | |
MapBuilderBridge & | operator= (const MapBuilderBridge &)=delete |
void | RunFinalOptimization () |
SensorBridge * | sensor_bridge (int trajectory_id) |
bool | SerializeState (const std::string &filename) |
Private Member Functions | |
std::unordered_map< int, std::shared_ptr< const TrajectoryState::LocalSlamData > > trajectory_state_data_ | GUARDED_BY (mutex_) |
void | OnLocalSlamResult (const int trajectory_id, const ::cartographer::common::Time time, const ::cartographer::transform::Rigid3d local_pose, ::cartographer::sensor::RangeData range_data_in_local, const std::unique_ptr< const ::cartographer::mapping::TrajectoryBuilderInterface::InsertionResult > insertion_result) EXCLUDES(mutex_) |
Private Attributes | |
std::unordered_map< std::string, int > | landmark_to_index_ |
std::unique_ptr< cartographer::mapping::MapBuilderInterface > | map_builder_ |
cartographer::common::Mutex | mutex_ |
const NodeOptions | node_options_ |
std::unordered_map< int, std::unique_ptr< SensorBridge > > | sensor_bridges_ |
tf2_ros::Buffer *const | tf_buffer_ |
std::unordered_map< int, TrajectoryOptions > | trajectory_options_ |
std::unordered_map< int, size_t > | trajectory_to_highest_marker_id_ |
Definition at line 41 of file map_builder_bridge.h.
cartographer_ros::MapBuilderBridge::MapBuilderBridge | ( | const NodeOptions & | node_options, |
std::unique_ptr< cartographer::mapping::MapBuilderInterface > | map_builder, | ||
tf2_ros::Buffer * | tf_buffer | ||
) |
Definition at line 98 of file map_builder_bridge.cc.
|
delete |
int cartographer_ros::MapBuilderBridge::AddTrajectory | ( | const std::set< ::cartographer::mapping::TrajectoryBuilderInterface::SensorId > & | expected_sensor_ids, |
const TrajectoryOptions & | trajectory_options | ||
) |
Definition at line 120 of file map_builder_bridge.cc.
void cartographer_ros::MapBuilderBridge::FinishTrajectory | ( | int | trajectory_id | ) |
Definition at line 146 of file map_builder_bridge.cc.
visualization_msgs::MarkerArray cartographer_ros::MapBuilderBridge::GetConstraintList | ( | ) |
Definition at line 365 of file map_builder_bridge.cc.
std::set< int > cartographer_ros::MapBuilderBridge::GetFrozenTrajectoryIds | ( | ) |
Definition at line 197 of file map_builder_bridge.cc.
visualization_msgs::MarkerArray cartographer_ros::MapBuilderBridge::GetLandmarkPosesList | ( | ) |
Definition at line 353 of file map_builder_bridge.cc.
cartographer_ros_msgs::SubmapList cartographer_ros::MapBuilderBridge::GetSubmapList | ( | ) |
Definition at line 208 of file map_builder_bridge.cc.
visualization_msgs::MarkerArray cartographer_ros::MapBuilderBridge::GetTrajectoryNodeList | ( | ) |
Definition at line 253 of file map_builder_bridge.cc.
std::unordered_map< int, MapBuilderBridge::TrajectoryState > cartographer_ros::MapBuilderBridge::GetTrajectoryStates | ( | ) |
Definition at line 225 of file map_builder_bridge.cc.
|
private |
void cartographer_ros::MapBuilderBridge::HandleSubmapQuery | ( | cartographer_ros_msgs::SubmapQuery::Request & | request, |
cartographer_ros_msgs::SubmapQuery::Response & | response | ||
) |
Definition at line 166 of file map_builder_bridge.cc.
void cartographer_ros::MapBuilderBridge::LoadState | ( | const std::string & | state_filename, |
bool | load_frozen_state | ||
) |
Definition at line 106 of file map_builder_bridge.cc.
|
private |
Definition at line 494 of file map_builder_bridge.cc.
|
delete |
void cartographer_ros::MapBuilderBridge::RunFinalOptimization | ( | ) |
Definition at line 155 of file map_builder_bridge.cc.
SensorBridge * cartographer_ros::MapBuilderBridge::sensor_bridge | ( | int | trajectory_id | ) |
Definition at line 490 of file map_builder_bridge.cc.
bool cartographer_ros::MapBuilderBridge::SerializeState | ( | const std::string & | filename | ) |
Definition at line 160 of file map_builder_bridge.cc.
|
private |
Definition at line 106 of file map_builder_bridge.h.
|
private |
Definition at line 103 of file map_builder_bridge.h.
|
private |
Definition at line 99 of file map_builder_bridge.h.
|
private |
Definition at line 100 of file map_builder_bridge.h.
|
private |
Definition at line 110 of file map_builder_bridge.h.
|
private |
Definition at line 104 of file map_builder_bridge.h.
|
private |
Definition at line 109 of file map_builder_bridge.h.
|
private |
Definition at line 111 of file map_builder_bridge.h.