fix(cuda): correct revolute joint axis direction for right-handed rotation#408
Conversation
…ation Reverse UnitE from (P0 - P1) to (P1 - P0) so that positive angles follow right-handed spiral rotation around the joint axis. Made-with: Cursor
Summary of ChangesHello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request resolves an issue in the CUDA backend where the revolute joint axis direction was incorrectly defined. By reversing the vector subtraction used to calculate the Highlights
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request modifies the calculation of the UnitE vector in two files related to affine body revolute joints: affine_body_revolute_joint.cu and affine_body_revolute_joint_external_force_constraint.cu. The change reverses the order of subtraction from (P0 - P1) to (P1 - P0) when determining UnitE, likely correcting the vector's direction for physical accuracy. There are no review comments to address.
Summary
UnitE) by reversing it from(P0 - P1)to(P1 - P0), ensuring positive angles follow right-handed spiral rotation around the joint axis.