Skip to content

Use +Z as default up axis for capsules, cones, cylinders, planes #365#378

Closed
vreutskyy wants to merge 5 commits into
newton-physics:mainfrom
vreutskyy:365-use-z-as-default-up-axis-for-capsules-cones-cylinders-planes
Closed

Use +Z as default up axis for capsules, cones, cylinders, planes #365#378
vreutskyy wants to merge 5 commits into
newton-physics:mainfrom
vreutskyy:365-use-z-as-default-up-axis-for-capsules-cones-cylinders-planes

Conversation

@vreutskyy

@vreutskyy vreutskyy commented Jul 11, 2025

Copy link
Copy Markdown
Member

Description

This PR standardizes the internal representation of primitive shapes (capsules, cones, cylinders, and planes) to use the +Z axis as their primary axis or normal. This change, which closes #365, aligns Newton's conventions with other simulation environments like MuJoCo and simplifies the conversion process between them.

Key changes include:

  • Collision Kernels (newton/geometry/kernels.py):
    • SDFs and collision functions for capsules, cones, and cylinders now assume the primary axis is along +Z.
    • Planes are now defined as XY planes with a +Z normal.
  • ModelBuilder (newton/sim/builder.py):
    • Shape creation methods (add_shape_capsule, add_shape_cylinder, add_shape_cone) now apply a rotation to align the user-specified axis with the internal +Z axis.
    • The misleading up_axis parameter has been renamed to axis for clarity.
    • add_shape_plane has been updated to correctly handle plane equations and compute robust rotations, including for normals opposite to +Z.
  • Rendering (newton/utils/render.py):
    • A corrective rotation is applied during rendering to transform the internal +Z aligned shapes to the Y-up convention expected by the Warp renderer.
  • MuJoCo Solver (newton/solvers/mujoco/solver_mujoco.py):
    • Removed unnecessary Y-to-Z axis conversion logic, as both Newton and MuJoCo now share the same Z-axis convention for these shapes.
  • Importers (newton/utils/import_*.py):
    • Updated URDF, MJCF, and USD importers to use the new axis parameter correctly.

Newton Migration Guide

Please ensure the migration guide for warp.sim users is up-to-date with the changes made in this MR.

  • The migration guide in docs/migration.rst is up-to date

Before your PR is "Ready for review"

  • All commits are signed-off to indicate that your contribution adheres to the Developer Certificate of Origin requirements
  • I understand that GitHub does not perform any GPU testing of this pull request
  • Necessary tests have been added
  • Documentation is up-to-date
  • Code passes formatting and linting checks with pre-commit run -a

Summary by CodeRabbit

  • New Features

    • Unified axis conventions for capsules, cylinders, cones, and planes, now defaulting to the Z-axis for height and orientation.
    • Updated API parameter names from up_axis to axis for shape creation methods, improving clarity and consistency.
  • Bug Fixes

    • Adjusted geometric calculations and collision handling to ensure consistent axis alignment across all shape types.
    • Improved numerical tolerance in collision test assertions for more robust floating-point comparisons.
  • Style

    • Updated documentation and parameter names to reflect new axis conventions.
  • Tests

    • Refined tests to match updated axis conventions and parameter names, ensuring continued accuracy and coverage.
  • Chores

    • Simplified orientation logic in rendering and MuJoCo integration to match unified axis standards.

@coderabbitai

coderabbitai Bot commented Jul 11, 2025

Copy link
Copy Markdown
Contributor
📝 Walkthrough
## Walkthrough

This set of changes standardizes the default axis orientation for capsules, cones, cylinders, and planes to use the +Z axis as the "up" direction throughout the codebase. Adjustments are made to geometric kernels, model building APIs, import utilities, tests, and rendering logic to consistently use the Z-axis convention and update parameter names accordingly.

## Changes

| File(s) | Change Summary |
|---------|----------------|
| `newton/geometry/kernels.py` | All SDFs, collision, and contact routines updated to use Z-axis for vertical/height, replacing Y-axis references; plane logic now uses XY plane at Z=0. |
| `newton/sim/builder.py` | Plane, capsule, cylinder, and cone shape creation now use +Z as default axis; parameter `up_axis` renamed to `axis`; method signatures updated. |
| `newton/solvers/mujoco/solver_mujoco.py`, `newton/tests/test_mujoco_solver.py` | Removed special-case quaternion rotations for capsules/cylinders with Z-up; simplified orientation logic. |
| `newton/tests/test_collision.py` | Added numerical tolerance to array equality assertions in mesh-ground collision test. |
| `newton/tests/test_import_urdf.py` | Updated expected capsule orientation quaternion in URDF import test to identity (no rotation). |
| `newton/tests/test_rigid_contact.py`, `newton/tests/test_up_axis.py` | Changed `up_axis` argument to `axis` in capsule shape addition calls. |
| `newton/utils/import_mjcf.py`, `newton/utils/import_urdf.py`, `newton/utils/import_usd.py` | Changed `up_axis` to `axis` in all relevant shape import functions for capsules, cylinders, and cones. |
| `newton/utils/render.py` | Ground plane normal and shape orientation in rendering updated to Z-up; capsules, cylinders, and cones now rendered with -90° X rotation. |

## Sequence Diagram(s)

```mermaid
sequenceDiagram
    participant User
    participant ModelBuilder
    participant GeometryKernels
    participant Renderer

    User->>ModelBuilder: add_shape_capsule(..., axis=Axis.Z)
    ModelBuilder->>GeometryKernels: Compute SDF/collision with Z as up axis
    ModelBuilder->>Renderer: Provide shape with Z-up orientation
    Renderer->>Renderer: Render ground plane normal as (0,0,1)

Assessment against linked issues

Objective (Issue #) Addressed Explanation
Default up axis is +Z for capsules, cones, cylinders, planes in ModelBuilder and geometry kernels (#365)
Update parameter naming (up_axisaxis) and default values in APIs and imports (#365)
Plane, capsule, cylinder, cone SDFs and collision routines use Z for height/normal (#365)
Remove special-case axis conversions in MuJoCo solver and tests (#365)

Suggested reviewers

  • AntoineRichard

Poem

A hop, a skip, a Z-up leap,
Now cones and capsules climb so steep!
Cylinders stand with pride anew,
Planes lie flat, as rabbits do.
The axes now are all aligned—
Geometry, so redefined!
🐇✨


</details>

<!-- walkthrough_end -->


---

<details>
<summary>📜 Recent review details</summary>

**Configuration used: .coderabbit.yml**
**Review profile: CHILL**
**Plan: Pro**


<details>
<summary>📥 Commits</summary>

Reviewing files that changed from the base of the PR and between ef18409a9b8738f6ac20fed54e32a25536d0f9ce and 81f3a53b0c8de5fe3e1694e8532efaced6579034.

</details>

<details>
<summary>📒 Files selected for processing (1)</summary>

* `newton/solvers/mujoco/solver_mujoco.py` (0 hunks)

</details>

<details>
<summary>💤 Files with no reviewable changes (1)</summary>

* newton/solvers/mujoco/solver_mujoco.py

</details>

<details>
<summary>⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (3)</summary>

* GitHub Check: run-asv-benchmarks
* GitHub Check: run-newton-tests / newton-unittests (ubuntu-latest)
* GitHub Check: run-newton-tests / newton-unittests (windows-latest)

</details>

</details>
<!-- internal state start -->


<!-- DwQgtGAEAqAWCWBnSTIEMB26CuAXA9mAOYCmGJATmriQCaQD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EBoA3Es83tG4mxHbB9gG8kgL/LQCmwr55cxpNYn2Alle028mefsF2AgLsgpsA5G4l7RNJaA5sEsiQG2BAK3E5sc2GbFoDYLCu0bbuOXP2DrztgaAUhQIF7QMB9gSgc2E0m2AkBrEpsB+SQH2CkK3EjSA5HQAti7Biu2wMsmPK7nOx1Avc3BgPPDC55+4+gIAA== -->

<!-- internal state end -->
<!-- finishing_touch_checkbox_start -->

<details open="true">
<summary>✨ Finishing Touches</summary>

- [ ] <!-- {"checkboxId": "7962f53c-55bc-4827-bfbf-6a18da830691"} --> 📝 Generate Docstrings

</details>

<!-- finishing_touch_checkbox_end -->
<!-- tips_start -->

---



<details>
<summary>🪧 Tips</summary>

### Chat

There are 3 ways to chat with [CodeRabbit](https://coderabbit.ai?utm_source=oss&utm_medium=github&utm_campaign=newton-physics/newton&utm_content=378):

- Review comments: Directly reply to a review comment made by CodeRabbit. Example:
  - `I pushed a fix in commit <commit_id>, please review it.`
  - `Explain this complex logic.`
  - `Open a follow-up GitHub issue for this discussion.`
- Files and specific lines of code (under the "Files changed" tab): Tag `@coderabbitai` in a new review comment at the desired location with your query. Examples:
  - `@coderabbitai explain this code block.`
  -	`@coderabbitai modularize this function.`
- PR comments: Tag `@coderabbitai` in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
  - `@coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.`
  - `@coderabbitai read src/utils.ts and explain its main purpose.`
  - `@coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.`
  - `@coderabbitai help me debug CodeRabbit configuration file.`

### Support

Need help? Create a ticket on our [support page](https://www.coderabbit.ai/contact-us/support) 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)

- `@coderabbitai pause` to pause the reviews on a PR.
- `@coderabbitai resume` to resume the paused reviews.
- `@coderabbitai review` to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
- `@coderabbitai full review` to do a full review from scratch and review all the files again.
- `@coderabbitai summary` to regenerate the summary of the PR.
- `@coderabbitai generate docstrings` to [generate docstrings](https://docs.coderabbit.ai/finishing-touches/docstrings) for this PR.
- `@coderabbitai generate sequence diagram` to generate a sequence diagram of the changes in this PR.
- `@coderabbitai resolve` resolve all the CodeRabbit review comments.
- `@coderabbitai configuration` to show the current CodeRabbit configuration for the repository.
- `@coderabbitai help` to get help.

### Other keywords and placeholders

- Add `@coderabbitai ignore` anywhere in the PR description to prevent this PR from being reviewed.
- Add `@coderabbitai summary` to generate the high-level summary at a specific location in the PR description.
- Add `@coderabbitai` anywhere in the PR title to generate the title automatically.

### Documentation and Community

- Visit our [Documentation](https://docs.coderabbit.ai) for detailed information on how to use CodeRabbit.
- Join our [Discord Community](http://discord.gg/coderabbit) to get help, request features, and share feedback.
- Follow us on [X/Twitter](https://twitter.com/coderabbitai) for updates and announcements.

</details>

<!-- tips_end -->

Signed-off-by: Viktor Reutskyy <vreutskyy@nvidia.com>

@adenzler-nvidia adenzler-nvidia left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good from my side. Unfortunately I have no idea if we're missing any other places - I hope we have testing for this.

Comment thread newton/solvers/mujoco/solver_mujoco.py Outdated
…nes-cylinders-planes

Signed-off-by: Viktor Reutskyy <vreutskyy@nvidia.com>
Signed-off-by: Viktor Reutskyy <vreutskyy@nvidia.com>

@eric-heiden eric-heiden left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will merge it together with #376 because in this PR the up axis handling for the USD parsing of planes is missing so some assets will not work if we don't merge #376 simultaneously.

@vreutskyy

Copy link
Copy Markdown
Member Author

@eric-heiden should I close this PR then?

@eric-heiden

Copy link
Copy Markdown
Member

OK, let's close this PR then - your changes are included in #376.

vidurv-nvidia pushed a commit to vidurv-nvidia/newton that referenced this pull request Mar 6, 2026
# Description

Bumps version to 2.1.0

## Type of change

- This change requires a documentation update

## Checklist

- [x] I have run the [`pre-commit` checks](https://pre-commit.com/) with
`./isaaclab.sh --format`
- [x] I have made corresponding changes to the documentation
- [x] My changes generate no new warnings
- [ ] I have added tests that prove my fix is effective or that my
feature works
- [ ] I have updated the changelog and the corresponding version in the
extension's `config/extension.toml` file
- [ ] I have added my name to the `CONTRIBUTORS.md` or my name already
exists there

<!--
As you go through the checklist above, you can mark something as done by
putting an x character in it

For example,
- [x] I have done this task
- [ ] I have not done this task
-->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Use +Z as default up axis for capsules, cones, cylinders, planes

3 participants