Skip to content

Commit

Permalink
fix QUAT type registration after clang-format (RainerKuemmerle#562)
Browse files Browse the repository at this point in the history
* fix QUAT type registration after clang-format
* fix QUAT type registration in interactive_slam example
  • Loading branch information
senselessDev authored Jan 14, 2022
1 parent 4736df5 commit 25e393e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,10 @@ G2O_REGISTER_TYPE_GROUP(online);
G2O_REGISTER_TYPE(ONLINE_EDGE_SE2, OnlineEdgeSE2);
G2O_REGISTER_TYPE(ONLINE_VERTEX_SE2, OnlineVertexSE2);

G2O_REGISTER_TYPE(ONLINE_VERTEX_SE3 : QUAT, OnlineVertexSE3);
G2O_REGISTER_TYPE(ONLINE_EDGE_SE3 : QUAT, OnlineEdgeSE3);
// clang-format off
// otherwise it will result in non-working "ONLINE_VERTEX_SE3 : QUAT"
G2O_REGISTER_TYPE(ONLINE_VERTEX_SE3:QUAT, OnlineVertexSE3);
G2O_REGISTER_TYPE(ONLINE_EDGE_SE3:QUAT, OnlineEdgeSE3);
// clang-format on

} // namespace g2o
7 changes: 5 additions & 2 deletions g2o/types/slam3d/types_slam3d.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,11 @@ namespace g2o {

G2O_REGISTER_TYPE_GROUP(slam3d);

G2O_REGISTER_TYPE(VERTEX_SE3 : QUAT, VertexSE3);
G2O_REGISTER_TYPE(EDGE_SE3 : QUAT, EdgeSE3);
// clang-format off
// otherwise it will result in non-working "VERTEX_SE3 : QUAT"
G2O_REGISTER_TYPE(VERTEX_SE3:QUAT, VertexSE3);
G2O_REGISTER_TYPE(EDGE_SE3:QUAT, EdgeSE3);
// clang-format on
G2O_REGISTER_TYPE(VERTEX_TRACKXYZ, VertexPointXYZ);

G2O_REGISTER_TYPE(PARAMS_SE3OFFSET, ParameterSE3Offset);
Expand Down

0 comments on commit 25e393e

Please sign in to comment.