#include <collated_trajectory_builder.h>
Public Member Functions | |
void | AddLocalSlamResultData (std::unique_ptr< mapping::LocalSlamResultData > local_slam_result_data) override |
void | AddSensorData (const std::string &sensor_id, const sensor::TimedPointCloudData &timed_point_cloud_data) override |
void | AddSensorData (const std::string &sensor_id, const sensor::ImuData &imu_data) override |
void | AddSensorData (const std::string &sensor_id, const sensor::OdometryData &odometry_data) override |
void | AddSensorData (const std::string &sensor_id, const sensor::FixedFramePoseData &fixed_frame_pose_data) override |
void | AddSensorData (const std::string &sensor_id, const sensor::LandmarkData &landmark_data) override |
CollatedTrajectoryBuilder (const proto::TrajectoryBuilderOptions &trajectory_options, sensor::CollatorInterface *sensor_collator, int trajectory_id, const std::set< SensorId > &expected_sensor_ids, std::unique_ptr< TrajectoryBuilderInterface > wrapped_trajectory_builder) | |
CollatedTrajectoryBuilder (const CollatedTrajectoryBuilder &) | |
CollatedTrajectoryBuilder & | operator= (const CollatedTrajectoryBuilder &) |
~CollatedTrajectoryBuilder () override | |
Private Member Functions | |
void | AddData (std::unique_ptr< sensor::Data > data) |
void | HandleCollatedSensorData (const std::string &sensor_id, std::unique_ptr< sensor::Data > data) |
Private Attributes | |
const bool | collate_fixed_frame_ |
const bool | collate_landmarks_ |
std::chrono::steady_clock::time_point | last_logging_time_ |
std::map< std::string, common::RateTimer<> > | rate_timers_ |
sensor::CollatorInterface *const | sensor_collator_ |
const int | trajectory_id_ |
std::unique_ptr < TrajectoryBuilderInterface > | wrapped_trajectory_builder_ |
Definition at line 39 of file collated_trajectory_builder.h.
cartographer::mapping::CollatedTrajectoryBuilder::CollatedTrajectoryBuilder | ( | const proto::TrajectoryBuilderOptions & | trajectory_options, |
sensor::CollatorInterface * | sensor_collator, | ||
int | trajectory_id, | ||
const std::set< SensorId > & | expected_sensor_ids, | ||
std::unique_ptr< TrajectoryBuilderInterface > | wrapped_trajectory_builder | ||
) |
Definition at line 31 of file collated_trajectory_builder.cc.
cartographer::mapping::CollatedTrajectoryBuilder::~CollatedTrajectoryBuilder | ( | ) | [inline, override] |
Definition at line 48 of file collated_trajectory_builder.h.
cartographer::mapping::CollatedTrajectoryBuilder::CollatedTrajectoryBuilder | ( | const CollatedTrajectoryBuilder & | ) |
void cartographer::mapping::CollatedTrajectoryBuilder::AddData | ( | std::unique_ptr< sensor::Data > | data | ) | [private] |
Definition at line 61 of file collated_trajectory_builder.cc.
void cartographer::mapping::CollatedTrajectoryBuilder::AddLocalSlamResultData | ( | std::unique_ptr< mapping::LocalSlamResultData > | local_slam_result_data | ) | [inline, override, virtual] |
Implements cartographer::mapping::TrajectoryBuilderInterface.
Definition at line 90 of file collated_trajectory_builder.h.
void cartographer::mapping::CollatedTrajectoryBuilder::AddSensorData | ( | const std::string & | sensor_id, |
const sensor::TimedPointCloudData & | timed_point_cloud_data | ||
) | [inline, override, virtual] |
Implements cartographer::mapping::TrajectoryBuilderInterface.
Definition at line 54 of file collated_trajectory_builder.h.
void cartographer::mapping::CollatedTrajectoryBuilder::AddSensorData | ( | const std::string & | sensor_id, |
const sensor::ImuData & | imu_data | ||
) | [inline, override, virtual] |
Implements cartographer::mapping::TrajectoryBuilderInterface.
Definition at line 60 of file collated_trajectory_builder.h.
void cartographer::mapping::CollatedTrajectoryBuilder::AddSensorData | ( | const std::string & | sensor_id, |
const sensor::OdometryData & | odometry_data | ||
) | [inline, override, virtual] |
Implements cartographer::mapping::TrajectoryBuilderInterface.
Definition at line 65 of file collated_trajectory_builder.h.
void cartographer::mapping::CollatedTrajectoryBuilder::AddSensorData | ( | const std::string & | sensor_id, |
const sensor::FixedFramePoseData & | fixed_frame_pose_data | ||
) | [inline, override, virtual] |
Implements cartographer::mapping::TrajectoryBuilderInterface.
Definition at line 70 of file collated_trajectory_builder.h.
void cartographer::mapping::CollatedTrajectoryBuilder::AddSensorData | ( | const std::string & | sensor_id, |
const sensor::LandmarkData & | landmark_data | ||
) | [inline, override, virtual] |
Implements cartographer::mapping::TrajectoryBuilderInterface.
Definition at line 81 of file collated_trajectory_builder.h.
void cartographer::mapping::CollatedTrajectoryBuilder::HandleCollatedSensorData | ( | const std::string & | sensor_id, |
std::unique_ptr< sensor::Data > | data | ||
) | [private] |
Definition at line 65 of file collated_trajectory_builder.cc.
CollatedTrajectoryBuilder& cartographer::mapping::CollatedTrajectoryBuilder::operator= | ( | const CollatedTrajectoryBuilder & | ) |
const bool cartographer::mapping::CollatedTrajectoryBuilder::collate_fixed_frame_ [private] |
Definition at line 103 of file collated_trajectory_builder.h.
const bool cartographer::mapping::CollatedTrajectoryBuilder::collate_landmarks_ [private] |
Definition at line 102 of file collated_trajectory_builder.h.
std::chrono::steady_clock::time_point cartographer::mapping::CollatedTrajectoryBuilder::last_logging_time_ [private] |
Definition at line 108 of file collated_trajectory_builder.h.
std::map<std::string, common::RateTimer<> > cartographer::mapping::CollatedTrajectoryBuilder::rate_timers_ [private] |
Definition at line 109 of file collated_trajectory_builder.h.
sensor::CollatorInterface* const cartographer::mapping::CollatedTrajectoryBuilder::sensor_collator_ [private] |
Definition at line 101 of file collated_trajectory_builder.h.
const int cartographer::mapping::CollatedTrajectoryBuilder::trajectory_id_ [private] |
Definition at line 104 of file collated_trajectory_builder.h.
std::unique_ptr<TrajectoryBuilderInterface> cartographer::mapping::CollatedTrajectoryBuilder::wrapped_trajectory_builder_ [private] |
Definition at line 105 of file collated_trajectory_builder.h.