Clarify quaternion ordering#6688
Open
pragad3sh wants to merge 2 commits into
Open
Conversation
7282fe3 to
8ce5ff0
Compare
8ce5ff0 to
9c2c156
Compare
Contributor
Author
|
@kscottz just added the clarification comments in the code block regarding the quaternion. Kindly check. Also, I am new to git, so I really don't know if I'm doing this right. Lmk if I did something wrong. Thank you. |
This was referenced May 12, 2026
tfoote
requested changes
May 12, 2026
Contributor
tfoote
left a comment
There was a problem hiding this comment.
Thanks for this comment it's helpful to clarify this. One request to move it up into the return value documentation to make it easier for tools to pick up and make this comment visible for those introspecting the API.
| # Create a 4 element array containing the final quaternion | ||
| final_quaternion = np.array([q0q1_w, q0q1_x, q0q1_y, q0q1_z]) | ||
Contributor
There was a problem hiding this comment.
Could you add this note in the return value docs above for better visibility to tools and users.
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.
Adds a clarification comment to the quaternion_multiply example in the Quaternion Fundamentals tutorial.
The helper function returns the quaternion in (w, x, y, z) order, while ROS 2 commonly represents quaternions as (x, y, z, w). This comment helps make the ordering difference clearer for readers following the tutorial.
Fixes ros2/lyrical_tutorial_party#2970 , ros2/lyrical_tutorial_party#2971 , ros2/lyrical_tutorial_party#2972 , ros2/lyrical_tutorial_party#2973
Did you use Generative AI?
No
This change only improves documentation clarity and does not modify the implementation logic.