17 #ifndef CARTOGRAPHER_MAPPING_MAP_BUILDER_INTERFACE_H_ 18 #define CARTOGRAPHER_MAPPING_MAP_BUILDER_INTERFACE_H_ 24 #include "Eigen/Geometry" 30 #include "cartographer/mapping/proto/submap_visualization.pb.h" 31 #include "cartographer/mapping/proto/trajectory_builder_options.pb.h" 55 const std::set<SensorId>& expected_sensor_ids,
56 const proto::TrajectoryBuilderOptions& trajectory_options,
62 const proto::TrajectoryBuilderOptionsWithSensorIds&
63 options_with_sensor_ids_proto) = 0;
69 int trajectory_id)
const = 0;
78 proto::SubmapQuery::Response* response) = 0;
85 bool load_frozen_state) = 0;
91 virtual const std::vector<proto::TrajectoryBuilderOptionsWithSensorIds>&
98 #endif // CARTOGRAPHER_MAPPING_MAP_BUILDER_INTERFACE_H_
TrajectoryBuilderInterface::LocalSlamResultCallback LocalSlamResultCallback
virtual ~MapBuilderInterface()
virtual std::string SubmapToProto(const SubmapId &submap_id, proto::SubmapQuery::Response *response)=0
virtual void FinishTrajectory(int trajectory_id)=0
virtual void LoadState(io::ProtoStreamReaderInterface *reader, bool load_frozen_state)=0
virtual int AddTrajectoryBuilder(const std::set< SensorId > &expected_sensor_ids, const proto::TrajectoryBuilderOptions &trajectory_options, LocalSlamResultCallback local_slam_result_callback)=0
virtual const std::vector< proto::TrajectoryBuilderOptionsWithSensorIds > & GetAllTrajectoryBuilderOptions() const =0
virtual mapping::PoseGraphInterface * pose_graph()=0
virtual int num_trajectory_builders() const =0
virtual int AddTrajectoryForDeserialization(const proto::TrajectoryBuilderOptionsWithSensorIds &options_with_sensor_ids_proto)=0
virtual void SerializeState(io::ProtoStreamWriterInterface *writer)=0
virtual mapping::TrajectoryBuilderInterface * GetTrajectoryBuilder(int trajectory_id) const =0
::cartographer::mapping::TrajectoryBuilderInterface::SensorId SensorId
std::function< void(int, common::Time, transform::Rigid3d, sensor::RangeData, std::unique_ptr< const InsertionResult >)> LocalSlamResultCallback
MapBuilderInterface & operator=(const MapBuilderInterface &)=delete