Skip to content

Commit bbc69c7

Browse files
authored
Default initialize TransformStorage's frame_id_ and child_frame_id_ with UINT32_MAX (#783)
* Fix comparison of TransformStorage with zero-initialized / default-constructed frame ids (#771) * Revert "Fix comparison of TransformStorage with zero-initialized / default-constructed frame ids (#771)" This reverts commit 4381a9d. * default initialize TransformStorage's frame_id_ and child_frame_id_ with UINT32_MAX
1 parent 906b659 commit bbc69c7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tf2/include/tf2/transform_storage.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,8 @@ class TransformStorage
8787
tf2::Quaternion rotation_;
8888
tf2::Vector3 translation_;
8989
TimePoint stamp_;
90-
CompactFrameID frame_id_;
91-
CompactFrameID child_frame_id_;
90+
CompactFrameID frame_id_{UINT32_MAX};
91+
CompactFrameID child_frame_id_{UINT32_MAX};
9292
};
9393
} // namespace tf2
9494
#endif // TF2__TRANSFORM_STORAGE_HPP_

0 commit comments

Comments
 (0)