17 #ifndef CARTOGRAPHER_MAPPING_INTERNAL_OPTIMIZATION_OPTIMIZATION_PROBLEM_3D_H_ 18 #define CARTOGRAPHER_MAPPING_INTERNAL_OPTIMIZATION_OPTIMIZATION_PROBLEM_3D_H_ 26 #include "Eigen/Geometry" 33 #include "cartographer/mapping/proto/pose_graph/optimization_problem_options.pb.h" 42 namespace optimization {
59 const optimization::proto::OptimizationProblemOptions& options);
65 void AddImuData(
int trajectory_id,
const sensor::ImuData& imu_data)
override;
66 void AddOdometryData(
int trajectory_id,
68 void AddTrajectoryNode(
int trajectory_id,
70 void InsertTrajectoryNode(
const NodeId& node_id,
72 void TrimTrajectoryNode(
const NodeId& node_id)
override;
73 void AddSubmap(
int trajectory_id,
75 void InsertSubmap(
const SubmapId& submap_id,
77 void TrimSubmap(
const SubmapId& submap_id)
override;
78 void SetMaxNumIterations(
int32 max_num_iterations)
override;
81 const std::vector<Constraint>& constraints,
82 const std::set<int>& frozen_trajectories,
83 const std::map<std::string, LandmarkNode>& landmark_nodes)
override;
93 return landmark_data_;
100 return odometry_data_;
103 void AddFixedFramePoseData(
106 void SetTrajectoryData(
111 return fixed_frame_pose_data_;
115 return trajectory_data_;
120 std::unique_ptr<transform::Rigid3d> CalculateOdometryBetweenNodes(
121 int trajectory_id,
const NodeSpec3D& first_node_data,
124 optimization::proto::OptimizationProblemOptions
options_;
138 #endif // CARTOGRAPHER_MAPPING_INTERNAL_OPTIMIZATION_OPTIMIZATION_PROBLEM_3D_H_ transform::Rigid3d global_pose
const sensor::MapByTime< sensor::OdometryData > & odometry_data() const override
sensor::MapByTime< sensor::ImuData > imu_data_
MapById< NodeId, NodeSpec3D > node_data_
const sensor::MapByTime< sensor::ImuData > & imu_data() const override
std::map< std::string, transform::Rigid3d > landmark_data_
sensor::MapByTime< sensor::OdometryData > odometry_data_
const MapById< SubmapId, SubmapSpec3D > & submap_data() const override
UniversalTimeScaleClock::time_point Time
const std::map< int, PoseGraphInterface::TrajectoryData > & trajectory_data() const
sensor::MapByTime< sensor::FixedFramePoseData > fixed_frame_pose_data_
std::map< int, PoseGraphInterface::TrajectoryData > trajectory_data_
MapById< SubmapId, SubmapSpec3D > submap_data_
const sensor::MapByTime< sensor::FixedFramePoseData > & fixed_frame_pose_data() const
const MapById< NodeId, NodeSpec3D > & node_data() const override
const std::map< std::string, transform::Rigid3d > & landmark_data() const override
transform::Rigid3d local_pose
transform::Rigid3d global_pose
optimization::proto::OptimizationProblemOptions options_