Introduce PoseGraphInterface::ToProto() (#813)
parent
fee77c8a99
commit
1de696d45f
|
@ -109,8 +109,7 @@ class PoseGraph : public PoseGraphInterface {
|
||||||
// not exist (anymore).
|
// not exist (anymore).
|
||||||
virtual SubmapData GetSubmapData(const SubmapId& submap_id) = 0;
|
virtual SubmapData GetSubmapData(const SubmapId& submap_id) = 0;
|
||||||
|
|
||||||
// Serializes the constraints and trajectories.
|
proto::PoseGraph ToProto() override;
|
||||||
proto::PoseGraph ToProto();
|
|
||||||
|
|
||||||
// Returns the IMU data.
|
// Returns the IMU data.
|
||||||
virtual sensor::MapByTime<sensor::ImuData> GetImuData() = 0;
|
virtual sensor::MapByTime<sensor::ImuData> GetImuData() = 0;
|
||||||
|
|
|
@ -90,6 +90,9 @@ class PoseGraphInterface {
|
||||||
|
|
||||||
// Returns the collection of constraints.
|
// Returns the collection of constraints.
|
||||||
virtual std::vector<Constraint> constraints() = 0;
|
virtual std::vector<Constraint> constraints() = 0;
|
||||||
|
|
||||||
|
// Serializes the constraints and trajectories.
|
||||||
|
virtual proto::PoseGraph ToProto() = 0;
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace mapping
|
} // namespace mapping
|
||||||
|
|
|
@ -109,5 +109,9 @@ PoseGraphStub::constraints() {
|
||||||
return cartographer::mapping::FromProto(response.constraints());
|
return cartographer::mapping::FromProto(response.constraints());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
cartographer::mapping::proto::PoseGraph PoseGraphStub::ToProto() {
|
||||||
|
LOG(FATAL) << "Not implemented";
|
||||||
|
}
|
||||||
|
|
||||||
} // namespace mapping
|
} // namespace mapping
|
||||||
} // namespace cartographer_grpc
|
} // namespace cartographer_grpc
|
||||||
|
|
|
@ -47,6 +47,7 @@ class PoseGraphStub : public cartographer::mapping::PoseGraphInterface {
|
||||||
GetTrajectoryNodePoses() override;
|
GetTrajectoryNodePoses() override;
|
||||||
bool IsTrajectoryFinished(int trajectory_id) override;
|
bool IsTrajectoryFinished(int trajectory_id) override;
|
||||||
std::vector<Constraint> constraints() override;
|
std::vector<Constraint> constraints() override;
|
||||||
|
cartographer::mapping::proto::PoseGraph ToProto() override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
std::shared_ptr<grpc::Channel> client_channel_;
|
std::shared_ptr<grpc::Channel> client_channel_;
|
||||||
|
|
Loading…
Reference in New Issue