20 namespace mapping_2d {
23 const proto::LocalTrajectoryBuilderOptions& options,
25 : trajectory_id_(trajectory_id),
36 const int submap_index) {
45 std::unique_ptr<LocalTrajectoryBuilder::InsertionResult> insertion_result =
48 if (insertion_result !=
nullptr) {
50 insertion_result->time, insertion_result->tracking_to_tracking_2d,
51 insertion_result->range_data_in_tracking_2d,
53 insertion_result->matching_submap, insertion_result->insertion_submaps);
59 const Eigen::Vector3d& angular_velocity) {
GlobalTrajectoryBuilder(const proto::LocalTrajectoryBuilderOptions &options, int trajectory_id, SparsePoseGraph *sparse_pose_graph)
const mapping::GlobalTrajectoryBuilderInterface::PoseEstimate & pose_estimate() const
transform::Rigid3d GetSubmapTransform(const mapping::SubmapId &submap_id) EXCLUDES(mutex_) override
std::unique_ptr< SparsePoseGraph > sparse_pose_graph_
SparsePoseGraph *const sparse_pose_graph_
const Submap * Get(int index) const override
UniversalTimeScaleClock::time_point Time
std::unique_ptr< InsertionResult > AddHorizontalRangeData(common::Time, const sensor::RangeData &range_data)
void AddImuData(int trajectory_id, common::Time time, const Eigen::Vector3d &linear_acceleration, const Eigen::Vector3d &angular_velocity)
void AddOdometerData(common::Time time, const transform::Rigid3d &pose) override
void AddOdometerData(common::Time time, const transform::Rigid3d &pose)
void AddScan(common::Time time, const transform::Rigid3d &tracking_to_pose, const sensor::RangeData &range_data_in_pose, const transform::Rigid2d &pose, int trajectory_id, const mapping::Submap *matching_submap, const std::vector< const mapping::Submap * > &insertion_submaps) EXCLUDES(mutex_)
int num_submaps() override
std::vector< Eigen::Vector3f > PointCloud
void AddImuData(common::Time time, const Eigen::Vector3d &linear_acceleration, const Eigen::Vector3d &angular_velocity)
void AddRangefinderData(common::Time time, const Eigen::Vector3f &origin, const sensor::PointCloud &ranges) override
const mapping::GlobalTrajectoryBuilderInterface::PoseEstimate & pose_estimate() const override
std::unique_ptr< KalmanLocalTrajectoryBuilder > local_trajectory_builder_
~GlobalTrajectoryBuilder() override
int num_submaps(int trajectory_id) EXCLUDES(mutex_) override
void AddImuData(common::Time time, const Eigen::Vector3d &linear_acceleration, const Eigen::Vector3d &angular_velocity) override
SubmapData GetSubmapData(int submap_index) override
LocalTrajectoryBuilder local_trajectory_builder_