Fix root transform attribute shape for fixed-base articulations#403
Conversation
Signed-off-by: Lukasz Wawrzyniak <lwawrzyniak@nvidia.com>
📝 WalkthroughWalkthroughThe Changes
Sequence Diagram(s)sequenceDiagram
participant Caller
participant ArticulationView
participant Model/State/Control
Caller->>ArticulationView: get_root_transforms() / set_root_transforms()
ArticulationView->>ArticulationView: _get_attribute_array(..., _slice: int)
ArticulationView->>Model/State/Control: Access attribute array at index
Model/State/Control-->>ArticulationView: Return value
ArticulationView-->>Caller: Return result
📜 Recent review detailsConfiguration used: .coderabbit.yml 📒 Files selected for processing (1)
🔇 Additional comments (4)
✨ Finishing Touches
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
Documentation and Community
|
AntoineRichard
left a comment
There was a problem hiding this comment.
Thanks for the fix! I tested it on some of our envs and it looks good!
…on-physics#403) Signed-off-by: Lukasz Wawrzyniak <lwawrzyniak@nvidia.com>
…on-physics#403) Signed-off-by: Lukasz Wawrzyniak <lwawrzyniak@nvidia.com>
Description
Previously,
ArticulationView.get_root_transforms()returned an array with shape(n,)for floating articulations and shape(n, 1)for fixed-base articulations. Now it consistently returns shape(n,).Newton Migration Guide
Please ensure the migration guide for warp.sim users is up-to-date with the changes made in this MR.
docs/migration.rstis up-to dateBefore your PR is "Ready for review"
newton/tests/test_examples.py)pre-commit run -aSummary by CodeRabbit
Bug Fixes
Refactor