#include <map_builder_stub.h>
Public Member Functions | |
int | AddTrajectoryBuilder (const std::set< SensorId > &expected_sensor_ids, const mapping::proto::TrajectoryBuilderOptions &trajectory_options, LocalSlamResultCallback local_slam_result_callback) override |
int | AddTrajectoryForDeserialization (const mapping::proto::TrajectoryBuilderOptionsWithSensorIds &options_with_sensor_ids_proto) override |
void | FinishTrajectory (int trajectory_id) override |
const std::vector < mapping::proto::TrajectoryBuilderOptionsWithSensorIds > & | GetAllTrajectoryBuilderOptions () const override |
mapping::TrajectoryBuilderInterface * | GetTrajectoryBuilder (int trajectory_id) const override |
std::map< int, int > | LoadState (io::ProtoStreamReaderInterface *reader, bool load_frozen_state) override |
std::map< int, int > | LoadStateFromFile (const std::string &filename, bool load_frozen_state) override |
MapBuilderStub (const std::string &server_address, const std::string &client_id) | |
MapBuilderStub (const MapBuilderStub &) | |
int | num_trajectory_builders () const override |
MapBuilderStub & | operator= (const MapBuilderStub &) |
mapping::PoseGraphInterface * | pose_graph () override |
void | SerializeState (bool include_unfinished_submaps, io::ProtoStreamWriterInterface *writer) override |
bool | SerializeStateToFile (bool include_unfinished_submaps, const std::string &filename) override |
std::string | SubmapToProto (const mapping::SubmapId &submap_id, mapping::proto::SubmapQuery::Response *response) override |
Private Attributes | |
std::shared_ptr<::grpc::Channel > | client_channel_ |
const std::string | client_id_ |
std::unique_ptr < mapping::PoseGraphInterface > | pose_graph_stub_ |
std::map< int, std::unique_ptr < mapping::TrajectoryBuilderInterface > > | trajectory_builder_stubs_ |
Definition at line 30 of file map_builder_stub.h.
cartographer::cloud::MapBuilderStub::MapBuilderStub | ( | const std::string & | server_address, |
const std::string & | client_id | ||
) |
Definition at line 46 of file map_builder_stub.cc.
int cartographer::cloud::MapBuilderStub::AddTrajectoryBuilder | ( | const std::set< SensorId > & | expected_sensor_ids, |
const mapping::proto::TrajectoryBuilderOptions & | trajectory_options, | ||
LocalSlamResultCallback | local_slam_result_callback | ||
) | [override] |
Definition at line 62 of file map_builder_stub.cc.
int cartographer::cloud::MapBuilderStub::AddTrajectoryForDeserialization | ( | const mapping::proto::TrajectoryBuilderOptionsWithSensorIds & | options_with_sensor_ids_proto | ) | [override] |
Definition at line 89 of file map_builder_stub.cc.
void cartographer::cloud::MapBuilderStub::FinishTrajectory | ( | int | trajectory_id | ) | [override, virtual] |
Implements cartographer::mapping::MapBuilderInterface.
Definition at line 104 of file map_builder_stub.cc.
const std::vector< mapping::proto::TrajectoryBuilderOptionsWithSensorIds > & cartographer::cloud::MapBuilderStub::GetAllTrajectoryBuilderOptions | ( | ) | const [override, virtual] |
Implements cartographer::mapping::MapBuilderInterface.
Definition at line 244 of file map_builder_stub.cc.
mapping::TrajectoryBuilderInterface * cartographer::cloud::MapBuilderStub::GetTrajectoryBuilder | ( | int | trajectory_id | ) | const [override, virtual] |
Implements cartographer::mapping::MapBuilderInterface.
Definition at line 95 of file map_builder_stub.cc.
std::map< int, int > cartographer::cloud::MapBuilderStub::LoadState | ( | io::ProtoStreamReaderInterface * | reader, |
bool | load_frozen_state | ||
) | [override, virtual] |
Implements cartographer::mapping::MapBuilderInterface.
Definition at line 175 of file map_builder_stub.cc.
std::map< int, int > cartographer::cloud::MapBuilderStub::LoadStateFromFile | ( | const std::string & | filename, |
bool | load_frozen_state | ||
) | [override, virtual] |
Implements cartographer::mapping::MapBuilderInterface.
Definition at line 223 of file map_builder_stub.cc.
int cartographer::cloud::MapBuilderStub::num_trajectory_builders | ( | ) | const [override, virtual] |
Implements cartographer::mapping::MapBuilderInterface.
Definition at line 235 of file map_builder_stub.cc.
MapBuilderStub& cartographer::cloud::MapBuilderStub::operator= | ( | const MapBuilderStub & | ) |
mapping::PoseGraphInterface * cartographer::cloud::MapBuilderStub::pose_graph | ( | ) | [override, virtual] |
Implements cartographer::mapping::MapBuilderInterface.
Definition at line 239 of file map_builder_stub.cc.
void cartographer::cloud::MapBuilderStub::SerializeState | ( | bool | include_unfinished_submaps, |
io::ProtoStreamWriterInterface * | writer | ||
) | [override, virtual] |
Implements cartographer::mapping::MapBuilderInterface.
Definition at line 132 of file map_builder_stub.cc.
bool cartographer::cloud::MapBuilderStub::SerializeStateToFile | ( | bool | include_unfinished_submaps, |
const std::string & | filename | ||
) | [override, virtual] |
Implements cartographer::mapping::MapBuilderInterface.
Definition at line 156 of file map_builder_stub.cc.
std::string cartographer::cloud::MapBuilderStub::SubmapToProto | ( | const mapping::SubmapId & | submap_id, |
mapping::proto::SubmapQuery::Response * | response | ||
) | [override] |
Definition at line 121 of file map_builder_stub.cc.
std::shared_ptr<::grpc::Channel> cartographer::cloud::MapBuilderStub::client_channel_ [private] |
Definition at line 65 of file map_builder_stub.h.
const std::string cartographer::cloud::MapBuilderStub::client_id_ [private] |
Definition at line 69 of file map_builder_stub.h.
std::unique_ptr<mapping::PoseGraphInterface> cartographer::cloud::MapBuilderStub::pose_graph_stub_ [private] |
Definition at line 66 of file map_builder_stub.h.
std::map<int, std::unique_ptr<mapping::TrajectoryBuilderInterface> > cartographer::cloud::MapBuilderStub::trajectory_builder_stubs_ [private] |
Definition at line 68 of file map_builder_stub.h.