Make SparsePoseGraph::constraints() public. (#284)
parent
7d43eaa08c
commit
f26e4366c9
|
@ -99,10 +99,10 @@ class SparsePoseGraph {
|
||||||
// Serializes the constraints and trajectories.
|
// Serializes the constraints and trajectories.
|
||||||
proto::SparsePoseGraph ToProto();
|
proto::SparsePoseGraph ToProto();
|
||||||
|
|
||||||
protected:
|
|
||||||
// Returns the collection of constraints.
|
// Returns the collection of constraints.
|
||||||
virtual std::vector<Constraint> constraints() = 0;
|
virtual std::vector<Constraint> constraints() = 0;
|
||||||
|
|
||||||
|
protected:
|
||||||
// Returns the mapping from Submaps* to trajectory IDs.
|
// Returns the mapping from Submaps* to trajectory IDs.
|
||||||
virtual const std::unordered_map<const Submaps*, int>& trajectory_ids() = 0;
|
virtual const std::unordered_map<const Submaps*, int>& trajectory_ids() = 0;
|
||||||
};
|
};
|
||||||
|
|
|
@ -88,9 +88,9 @@ class SparsePoseGraph : public mapping::SparsePoseGraph {
|
||||||
EXCLUDES(mutex_) override;
|
EXCLUDES(mutex_) override;
|
||||||
std::vector<mapping::TrajectoryNode> GetTrajectoryNodes() override
|
std::vector<mapping::TrajectoryNode> GetTrajectoryNodes() override
|
||||||
EXCLUDES(mutex_);
|
EXCLUDES(mutex_);
|
||||||
|
std::vector<Constraint> constraints() override EXCLUDES(mutex_);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
std::vector<Constraint> constraints() override EXCLUDES(mutex_);
|
|
||||||
const std::unordered_map<const mapping::Submaps*, int>& trajectory_ids()
|
const std::unordered_map<const mapping::Submaps*, int>& trajectory_ids()
|
||||||
override EXCLUDES(mutex_);
|
override EXCLUDES(mutex_);
|
||||||
|
|
||||||
|
|
|
@ -90,9 +90,9 @@ class SparsePoseGraph : public mapping::SparsePoseGraph {
|
||||||
EXCLUDES(mutex_) override;
|
EXCLUDES(mutex_) override;
|
||||||
std::vector<mapping::TrajectoryNode> GetTrajectoryNodes() override
|
std::vector<mapping::TrajectoryNode> GetTrajectoryNodes() override
|
||||||
EXCLUDES(mutex_);
|
EXCLUDES(mutex_);
|
||||||
|
std::vector<Constraint> constraints() override EXCLUDES(mutex_);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
std::vector<Constraint> constraints() override EXCLUDES(mutex_);
|
|
||||||
const std::unordered_map<const mapping::Submaps*, int>& trajectory_ids()
|
const std::unordered_map<const mapping::Submaps*, int>& trajectory_ids()
|
||||||
override EXCLUDES(mutex_);
|
override EXCLUDES(mutex_);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue