Repository navigation
fix inconsistent results of tf2::getEulerYPR and tf2::getYaw compared to tf2::Matrix3x3::getEulerYPR - #1001
Open
fabianhirmann wants to merge 1 commit into
Open
fix inconsistent results of tf2::getEulerYPR and tf2::getYaw compared to tf2::Matrix3x3::getEulerYPR#1001fabianhirmann wants to merge 1 commit into
fabianhirmann wants to merge 1 commit into
Conversation
… to tf2::Matrix3x3::getEulerYPR by simply using the seemingly stable version of tf2::Matrix3x3::getEulerYPR; extend test cases for util functions (mostly taken from ros2#811 but extended with cases that were still different at that PR) Signed-off-by: Fabian Hirmann <f.hirmann@arti-robots.com>
Author
|
Since there is no API/ABI change, please backport this change to at least humble as well. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
tf2::getEulerYPRandtf2::getYawcompared totf2::Matrix3x3::getEulerYPRby simply using the seemingly more stable version oftf2::Matrix3x3::getEulerYPRtf2::Matrix3x3::getEulerYPRreturns the expected result (roll=0°, pitch=90°, yaw=0°) (the same as the original input), whiletf2::getEulerYPRandtf2::getYawreturn (roll=0°, pitch=45°, yaw=180°).Assuming the test cases from #811 are representing the issue in #796, this also fixes #796.
Is this user-facing behavior change?
Yes, before
tf2::getEulerYPRandtf2::getYawcould produce different results thantf2::Matrix3x3::getEulerYPR(although stated in the comment oftf2::getEulerYPRthat the results should be the same). Now with this change since simplytf2::Matrix3x3::getEulerYPRis reused, the results are exactly the same.Did you use Generative AI?
Additional Information