Make SparsePoseGraph::constraints() public. (#284)
parent
7d43eaa08c
commit
f26e4366c9
|
@ -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;
|
||||
};
|
||||
|
|
|
@ -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_);
|
||||
|
||||
|
|
|
@ -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_);
|
||||
|
||||
|
|
Loading…
Reference in New Issue