17 #ifndef CARTOGRAPHER_MAPPING_POSE_GRAPH_INTERFACE_H_ 18 #define CARTOGRAPHER_MAPPING_POSE_GRAPH_INTERFACE_H_ 72 std::shared_ptr<const Submap>
submap;
77 double gravity_constant = 9.8;
78 std::array<double, 4> imu_calibration{{1., 0., 0., 0.}};
83 std::function<void(
const std::map<int /* trajectory_id */, SubmapId>&,
84 const std::map<int /* trajectory_id */, NodeId>&)>;
105 int trajectory_id)
const = 0;
132 virtual std::vector<Constraint>
constraints()
const = 0;
135 virtual proto::PoseGraph
ToProto()
const = 0;
146 #endif // CARTOGRAPHER_MAPPING_POSE_GRAPH_INTERFACE_H_
virtual void SetGlobalSlamOptimizationCallback(GlobalSlamOptimizationCallback callback)=0
enum cartographer::mapping::PoseGraphInterface::Constraint::Tag tag
common::optional< transform::Rigid3d > global_landmark_pose
virtual bool IsTrajectoryFinished(int trajectory_id) const =0
double translation_weight
common::optional< transform::Rigid3d > fixed_frame_origin_in_map
virtual void SetLandmarkPose(const std::string &landmark_id, const transform::Rigid3d &global_pose)=0
std::function< void(const std::map< int, SubmapId > &, const std::map< int, NodeId > &)> GlobalSlamOptimizationCallback
virtual std::map< std::string, transform::Rigid3d > GetLandmarkPoses() const =0
virtual void RunFinalOptimization()=0
virtual transform::Rigid3d GetLocalToGlobalTransform(int trajectory_id) const =0
UniversalTimeScaleClock::time_point Time
transform::Rigid3d zbar_ij
virtual proto::PoseGraph ToProto() const =0
virtual MapById< NodeId, TrajectoryNodePose > GetTrajectoryNodePoses() const =0
PoseGraphInterface & operator=(const PoseGraphInterface &)=delete
virtual std::map< int, TrajectoryData > GetTrajectoryData() const =0
transform::Rigid3d landmark_to_tracking_transform
double translation_weight
std::vector< LandmarkObservation > landmark_observations
virtual std::vector< Constraint > constraints() const =0
virtual MapById< SubmapId, SubmapData > GetAllSubmapData() const =0
virtual MapById< SubmapId, SubmapPose > GetAllSubmapPoses() const =0
virtual MapById< NodeId, TrajectoryNode > GetTrajectoryNodes() const =0
std::shared_ptr< const Submap > submap
virtual bool IsTrajectoryFrozen(int trajectory_id) const =0
virtual ~PoseGraphInterface()