Make SparsePoseGraph::constraints() public. (#284)

master
Jihoon Lee 2017-05-15 16:06:20 +02:00 committed by Wolfgang Hess
parent 7d43eaa08c
commit f26e4366c9
3 changed files with 3 additions and 3 deletions

View File

@ -99,10 +99,10 @@ class SparsePoseGraph {
// Serializes the constraints and trajectories.
proto::SparsePoseGraph ToProto();
protected:
// Returns the collection of constraints.
virtual std::vector<Constraint> constraints() = 0;
protected:
// Returns the mapping from Submaps* to trajectory IDs.
virtual const std::unordered_map<const Submaps*, int>& trajectory_ids() = 0;
};

View File

@ -88,9 +88,9 @@ class SparsePoseGraph : public mapping::SparsePoseGraph {
EXCLUDES(mutex_) override;
std::vector<mapping::TrajectoryNode> GetTrajectoryNodes() override
EXCLUDES(mutex_);
std::vector<Constraint> constraints() override EXCLUDES(mutex_);
protected:
std::vector<Constraint> constraints() override EXCLUDES(mutex_);
const std::unordered_map<const mapping::Submaps*, int>& trajectory_ids()
override EXCLUDES(mutex_);

View File

@ -90,9 +90,9 @@ class SparsePoseGraph : public mapping::SparsePoseGraph {
EXCLUDES(mutex_) override;
std::vector<mapping::TrajectoryNode> GetTrajectoryNodes() override
EXCLUDES(mutex_);
std::vector<Constraint> constraints() override EXCLUDES(mutex_);
protected:
std::vector<Constraint> constraints() override EXCLUDES(mutex_);
const std::unordered_map<const mapping::Submaps*, int>& trajectory_ids()
override EXCLUDES(mutex_);