diff --git a/ReleaseNotes.md b/ReleaseNotes.md index 19f0c3f8..c15ec819 100644 --- a/ReleaseNotes.md +++ b/ReleaseNotes.md @@ -1,5 +1,13 @@ # Release Notes +## Version 3.3.1 + +Bug fix + +| Module | Feature | Brief summary | Pull request | Contributor | +| ----------- | ------------- | -------------------------- | --------------------------------------------------------------- | --------------------------------------------- | +| `pose_node` | message field | convert int value to float | [#82](https://github.com/tier4/driving_log_replayer_v2/pull/82) | [hayato-m126](https://github.com/hayato-m126) | + ## Version 3.3.0 Major changes diff --git a/driving_log_replayer_v2/CHANGELOG.rst b/driving_log_replayer_v2/CHANGELOG.rst index 131e9a63..1ad69fd5 100644 --- a/driving_log_replayer_v2/CHANGELOG.rst +++ b/driving_log_replayer_v2/CHANGELOG.rst @@ -2,6 +2,14 @@ Changelog for package driving_log_replayer ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +Forthcoming +----------- +* Merge pull request `#82 `_ from tier4/fix/cast-pose-value-to-float + fix: convert int value to float +* fix: add copyright +* fix: convert int value to float +* Contributors: Hayato Mizushima + 3.3.0 (2025-01-24) ------------------ * Merge tag '2.7.0' into chore/merge-v1-2.7.0 diff --git a/driving_log_replayer_v2/test/unittest/test_pose.py b/driving_log_replayer_v2/test/unittest/test_pose.py index 241e1983..1dda2c6a 100644 --- a/driving_log_replayer_v2/test/unittest/test_pose.py +++ b/driving_log_replayer_v2/test/unittest/test_pose.py @@ -21,7 +21,15 @@ def test_pose_str_to_dict() -> None: ) pose_dict = pose_str_to_dict(pose_str) - assert pose_dict == { - "position": {"x": 1.0, "y": 2.0, "z": 3.0}, - "orientation": {"x": 0.0, "y": 0.0, "z": 0.0, "w": 1.0}, - } + # The line below doesn't throw AssertionError + assert 3.0 == 3 # noqa + # Need to check the value type, not the value + assert isinstance(pose_dict["position"]["x"], float) + assert pose_dict["position"]["x"] == 1.0 + assert pose_dict["position"]["x"] == 1 # This also doesn't throw AssertionError + assert isinstance(pose_dict["position"]["y"], float) + assert isinstance(pose_dict["position"]["z"], float) + assert isinstance(pose_dict["orientation"]["x"], float) + assert isinstance(pose_dict["orientation"]["y"], float) + assert isinstance(pose_dict["orientation"]["z"], float) + assert isinstance(pose_dict["orientation"]["w"], float) diff --git a/driving_log_replayer_v2_analyzer/CHANGELOG.rst b/driving_log_replayer_v2_analyzer/CHANGELOG.rst index 1fd5a05a..2b6fdff8 100644 --- a/driving_log_replayer_v2_analyzer/CHANGELOG.rst +++ b/driving_log_replayer_v2_analyzer/CHANGELOG.rst @@ -2,6 +2,9 @@ Changelog for package driving_log_replayer_v2_analyzer ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +Forthcoming +----------- + 3.3.0 (2025-01-24) ------------------ diff --git a/driving_log_replayer_v2_msgs/CHANGELOG.rst b/driving_log_replayer_v2_msgs/CHANGELOG.rst index cf4a1296..d6c9cfef 100644 --- a/driving_log_replayer_v2_msgs/CHANGELOG.rst +++ b/driving_log_replayer_v2_msgs/CHANGELOG.rst @@ -2,6 +2,9 @@ Changelog for package driving_log_replayer_v2_msgs ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +Forthcoming +----------- + 3.3.0 (2025-01-24) ------------------ diff --git a/pyproject.toml b/pyproject.toml index 8757af34..6a990a5c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "driving-log-replayer-v2" -version = "3.3.0" +version = "3.3.1" authors = [ { name = "Hayato Mizushima", email = "hayato.mizushima@tier4.jp" }, { name = "Kotaro Uetake", email = "kotaro.uetake@tier4.jp" },