17 #ifndef CARTOGRAPHER_MAPPING_INTERNAL_TESTING_FAKE_TRIMMABLE_H_ 18 #define CARTOGRAPHER_MAPPING_INTERNAL_TESTING_FAKE_TRIMMABLE_H_ 44 std::vector<SubmapId>
GetSubmapIds(
int trajectory_id)
const override {
45 std::vector<SubmapId> submap_ids;
47 submap_ids.push_back(submap.id);
80 const std::vector<PoseGraphInterface::Constraint>& constraints) {
97 bool IsFinished(
const int trajectory_id)
const override {
return false; }
113 #endif // CARTOGRAPHER_MAPPING_INTERNAL_TESTING_FAKE_TRIMMABLE_H_ ~FakeTrimmable() override
const std::vector< PoseGraphInterface::Constraint > & GetConstraints() const override
MapById< SubmapId, PoseGraphInterface::SubmapData > * mutable_submap_data()
int num_submaps(const int trajectory_id) const override
FakeTrimmable(int trajectory_id, int num_submaps)
std::vector< SubmapId > trimmed_submaps_
MapById< SubmapId, PoseGraphInterface::SubmapData > GetOptimizedSubmapData() const override
const MapById< NodeId, TrajectoryNode > & GetTrajectoryNodes() const override
MapById< NodeId, TrajectoryNode > * mutable_trajectory_nodes()
bool IsFinished(const int trajectory_id) const override
void set_submap_data(const MapById< SubmapId, PoseGraphInterface::SubmapData > &submap_data)
void set_trajectory_nodes(const MapById< NodeId, TrajectoryNode > &trajectory_nodes)
void MarkSubmapAsTrimmed(const SubmapId &submap_id) override
std::vector< PoseGraphInterface::Constraint > constraints_
std::vector< PoseGraphInterface::Constraint > * mutable_constraints()
MapById< NodeId, TrajectoryNode > trajectory_nodes_
std::vector< SubmapId > GetSubmapIds(int trajectory_id) const override
MapById< SubmapId, PoseGraphInterface::SubmapData > submap_data_
std::vector< SubmapId > trimmed_submaps()
void set_constraints(const std::vector< PoseGraphInterface::Constraint > &constraints)