Skip to content

Commit 25e393e

Browse files
authored
fix QUAT type registration after clang-format (#562)
* fix QUAT type registration after clang-format * fix QUAT type registration in interactive_slam example
1 parent 4736df5 commit 25e393e

2 files changed

Lines changed: 10 additions & 4 deletions

File tree

g2o/examples/interactive_slam/g2o_interactive/types_online.cpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,10 @@ G2O_REGISTER_TYPE_GROUP(online);
3535
G2O_REGISTER_TYPE(ONLINE_EDGE_SE2, OnlineEdgeSE2);
3636
G2O_REGISTER_TYPE(ONLINE_VERTEX_SE2, OnlineVertexSE2);
3737

38-
G2O_REGISTER_TYPE(ONLINE_VERTEX_SE3 : QUAT, OnlineVertexSE3);
39-
G2O_REGISTER_TYPE(ONLINE_EDGE_SE3 : QUAT, OnlineEdgeSE3);
38+
// clang-format off
39+
// otherwise it will result in non-working "ONLINE_VERTEX_SE3 : QUAT"
40+
G2O_REGISTER_TYPE(ONLINE_VERTEX_SE3:QUAT, OnlineVertexSE3);
41+
G2O_REGISTER_TYPE(ONLINE_EDGE_SE3:QUAT, OnlineEdgeSE3);
42+
// clang-format on
4043

4144
} // namespace g2o

g2o/types/slam3d/types_slam3d.cpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,11 @@ namespace g2o {
3535

3636
G2O_REGISTER_TYPE_GROUP(slam3d);
3737

38-
G2O_REGISTER_TYPE(VERTEX_SE3 : QUAT, VertexSE3);
39-
G2O_REGISTER_TYPE(EDGE_SE3 : QUAT, EdgeSE3);
38+
// clang-format off
39+
// otherwise it will result in non-working "VERTEX_SE3 : QUAT"
40+
G2O_REGISTER_TYPE(VERTEX_SE3:QUAT, VertexSE3);
41+
G2O_REGISTER_TYPE(EDGE_SE3:QUAT, EdgeSE3);
42+
// clang-format on
4043
G2O_REGISTER_TYPE(VERTEX_TRACKXYZ, VertexPointXYZ);
4144

4245
G2O_REGISTER_TYPE(PARAMS_SE3OFFSET, ParameterSE3Offset);

0 commit comments

Comments
 (0)