17 #ifndef CARTOGRAPHER_MAPPING_MAP_BUILDER_H_ 18 #define CARTOGRAPHER_MAPPING_MAP_BUILDER_H_ 26 #include "cartographer/mapping/proto/map_builder_options.pb.h" 33 common::LuaParameterDictionary *
const parameter_dictionary);
39 explicit MapBuilder(
const proto::MapBuilderOptions &options);
46 const std::set<SensorId> &expected_sensor_ids,
47 const proto::TrajectoryBuilderOptions &trajectory_options,
51 const proto::TrajectoryBuilderOptionsWithSensorIds
52 &options_with_sensor_ids_proto)
override;
57 proto::SubmapQuery::Response *response)
override;
62 bool load_frozen_state)
override;
73 int trajectory_id)
const override {
77 const std::vector<proto::TrajectoryBuilderOptionsWithSensorIds>
89 std::vector<std::unique_ptr<mapping::TrajectoryBuilderInterface>>
91 std::vector<proto::TrajectoryBuilderOptionsWithSensorIds>
98 #endif // CARTOGRAPHER_MAPPING_MAP_BUILDER_H_ void SerializeState(io::ProtoStreamWriterInterface *writer) override
void FinishTrajectory(int trajectory_id) override
std::vector< proto::TrajectoryBuilderOptionsWithSensorIds > all_trajectory_builder_options_
TrajectoryBuilderInterface::LocalSlamResultCallback LocalSlamResultCallback
mapping::TrajectoryBuilderInterface * GetTrajectoryBuilder(int trajectory_id) const override
int num_trajectory_builders() const override
std::string SubmapToProto(const SubmapId &submap_id, proto::SubmapQuery::Response *response) override
const std::vector< proto::TrajectoryBuilderOptionsWithSensorIds > & GetAllTrajectoryBuilderOptions() const override
proto::MapBuilderOptions CreateMapBuilderOptions(common::LuaParameterDictionary *const parameter_dictionary)
const proto::MapBuilderOptions options_
void LoadState(io::ProtoStreamReaderInterface *reader, bool load_frozen_state) override
std::unique_ptr< PoseGraph > pose_graph_
std::vector< std::unique_ptr< mapping::TrajectoryBuilderInterface > > trajectory_builders_
std::unique_ptr< sensor::CollatorInterface > sensor_collator_
common::ThreadPool thread_pool_
int AddTrajectoryBuilder(const std::set< SensorId > &expected_sensor_ids, const proto::TrajectoryBuilderOptions &trajectory_options, LocalSlamResultCallback local_slam_result_callback) override
int AddTrajectoryForDeserialization(const proto::TrajectoryBuilderOptionsWithSensorIds &options_with_sensor_ids_proto) override
MapBuilder(const proto::MapBuilderOptions &options)
mapping::PoseGraphInterface * pose_graph() override
MapBuilder & operator=(const MapBuilder &)=delete