Skip to content

Default to identity quaternion when not set#377

Merged
mjcarroll merged 2 commits intogz-msgs10from
mjcarroll/fix_pose_conversion
Aug 30, 2023
Merged

Default to identity quaternion when not set#377
mjcarroll merged 2 commits intogz-msgs10from
mjcarroll/fix_pose_conversion

Conversation

@mjcarroll
Copy link
Contributor

🦟 Bug fix

Fixes PoseVector test from here: gazebosim/gz-sim#2087 (comment)

Previously, when quaternion wasn't set in a message (all zeros), we would return an identity quaternion. This adjusts the new conversion to match that.

Signed-off-by: Michael Carroll <mjcarroll@intrinsic.ai>
@mjcarroll mjcarroll requested a review from caguero as a code owner August 30, 2023 15:42
@github-actions github-actions bot added the 🎵 harmonic Gazebo Harmonic label Aug 30, 2023
Signed-off-by: Michael Carroll <mjcarroll@intrinsic.ai>
@codecov
Copy link

codecov bot commented Aug 30, 2023

Codecov Report

Merging #377 (4754092) into gz-msgs10 (1cb2374) will increase coverage by 0.00%.
The diff coverage is 100.00%.

❗ Current head 4754092 differs from pull request most recent head 259e9ef. Consider uploading reports for the commit 259e9ef to get more accurate results

@@            Coverage Diff             @@
##           gz-msgs10     #377   +/-   ##
==========================================
  Coverage      97.25%   97.26%           
==========================================
  Files             27       27           
  Lines           1165     1169    +4     
==========================================
+ Hits            1133     1137    +4     
  Misses            32       32           
Files Changed Coverage Δ
core/include/gz/msgs/convert/Pose.hh 100.00% <100.00%> (ø)

@mjcarroll mjcarroll merged commit 4630db1 into gz-msgs10 Aug 30, 2023
@mjcarroll mjcarroll deleted the mjcarroll/fix_pose_conversion branch August 30, 2023 15:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🎵 harmonic Gazebo Harmonic

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

3 participants