File tree 5 files changed +12
-5
lines changed
5 files changed +12
-5
lines changed Original file line number Diff line number Diff line change @@ -52,6 +52,11 @@ PoseGraphStub::GetAllSubmapData() const {
52
52
LOG (FATAL) << " Not implemented" ;
53
53
}
54
54
55
+ mapping::PoseGraphInterface::SubmapData PoseGraphStub::GetSubmapData (
56
+ const mapping::SubmapId& submap_id) const {
57
+ LOG (FATAL) << " Not implemented" ;
58
+ }
59
+
55
60
mapping::MapById<mapping::SubmapId, mapping::PoseGraphInterface::SubmapPose>
56
61
PoseGraphStub::GetAllSubmapPoses () const {
57
62
google::protobuf::Empty request;
Original file line number Diff line number Diff line change @@ -34,6 +34,7 @@ class PoseGraphStub : public ::cartographer::mapping::PoseGraphInterface {
34
34
void RunFinalOptimization () override ;
35
35
mapping::MapById<mapping::SubmapId, SubmapData> GetAllSubmapData ()
36
36
const override ;
37
+ SubmapData GetSubmapData (const mapping::SubmapId& submap_id) const override ;
37
38
mapping::MapById<mapping::SubmapId, SubmapPose> GetAllSubmapPoses ()
38
39
const override ;
39
40
transform::Rigid3d GetLocalToGlobalTransform (
Original file line number Diff line number Diff line change @@ -34,6 +34,7 @@ class MockPoseGraph : public mapping::PoseGraphInterface {
34
34
MOCK_METHOD0 (RunFinalOptimization, void ());
35
35
MOCK_CONST_METHOD0 (GetAllSubmapData,
36
36
mapping::MapById<mapping::SubmapId, SubmapData>());
37
+ MOCK_CONST_METHOD1 (GetSubmapData, SubmapData(const SubmapId&));
37
38
MOCK_CONST_METHOD0 (GetAllSubmapPoses,
38
39
mapping::MapById<mapping::SubmapId, SubmapPose>());
39
40
MOCK_CONST_METHOD1 (GetLocalToGlobalTransform, transform::Rigid3d(int ));
Original file line number Diff line number Diff line change @@ -112,11 +112,6 @@ class PoseGraph : public PoseGraphInterface {
112
112
// Gets the current trajectory clusters.
113
113
virtual std::vector<std::vector<int >> GetConnectedTrajectories () const = 0;
114
114
115
- // Returns the current optimized transform and submap itself for the given
116
- // 'submap_id'. Returns 'nullptr' for the 'submap' member if the submap does
117
- // not exist (anymore).
118
- virtual SubmapData GetSubmapData (const SubmapId& submap_id) const = 0;
119
-
120
115
proto::PoseGraph ToProto (bool include_unfinished_submaps) const override ;
121
116
122
117
// Returns the IMU data.
Original file line number Diff line number Diff line change @@ -99,6 +99,11 @@ class PoseGraphInterface {
99
99
// Returns data for all submaps.
100
100
virtual MapById<SubmapId, SubmapData> GetAllSubmapData () const = 0;
101
101
102
+ // Returns the current optimized transform and submap itself for the given
103
+ // 'submap_id'. Returns 'nullptr' for the 'submap' member if the submap does
104
+ // not exist (anymore).
105
+ virtual SubmapData GetSubmapData (const SubmapId& submap_id) const = 0;
106
+
102
107
// Returns the global poses for all submaps.
103
108
virtual MapById<SubmapId, SubmapPose> GetAllSubmapPoses () const = 0;
104
109
You can’t perform that action at this time.
0 commit comments