Skip to content

Fixes collision synchronization in cuRobo planner - #4212

Merged
kellyguo11 merged 2 commits into
isaac-sim:developfrom
lancel-nv:fix_curobo
Sep 26, 2026
Merged

kellyguo11 merged 2 commits into
isaac-sim:developfrom
lancel-nv:fix_curobo

Conversation

@lancel-nv

@lancel-nv lancel-nv commented Dec 15, 2025 •

Copy link
Copy Markdown
Contributor

Summary

Fix cuRobo collision synchronization when the robot base is away from the world origin. Each dynamic obstacle pose is converted from world coordinates into the robot frame used by the static collision world, then submitted once to cuRobo's collision checker. The checker also updates its CPU world-model reference, so the duplicate manual update and second pose-read loop are removed.

The fix uses Isaac Lab 3.0's XYZW quaternion convention and ProxyArray .torch access. The existing cube-stack test now checks the synchronized obstacle pose with a nonzero environment origin. A required isaaclab_mimic changelog fragment documents the fix.

Validation

  • uv run isaaclab -f and git diff --check passed.
  • The cuRobo simulator test could not complete locally: the available isaacsim, mimic, and test extras install the other dependencies, but cuRobo itself is installed by the dedicated Docker setup and is absent from this environment.

Release backport

  • Backport this pull request to the active release branch after it merges into develop

@lancel-nv
lancel-nv requested a review from xyao-nv as a code owner December 15, 2025 03:56
@github-actions github-actions Bot added bug Something isn't working isaac-mimic Related to Isaac Mimic team labels Dec 15, 2025
@greptile-apps

greptile-apps Bot commented Dec 15, 2025

Copy link
Copy Markdown
Contributor

Greptile Overview

Greptile Summary

Adds coordinate transformation from world frame to robot base frame when syncing object poses with cuRobo's world model, addressing collision detection issues when the robot is not at the origin.

However, the fix is incomplete. The PR correctly transforms object poses for the world model update (lines 631-637), but fails to apply the same transformation in the collision checker update loop (lines 673-686). This means the collision checker still receives world-frame coordinates instead of robot base-frame coordinates, which will cause the same collision detection bugs the PR intended to fix.

  • The world model update loop correctly uses subtract_frame_transforms() to convert poses to robot base frame
  • The collision checker update loop is missing the same transformation and still uses raw world-frame poses
  • Both loops must use the same coordinate frame for consistent collision detection

Confidence Score: 1/5

  • This PR contains a critical bug that leaves the collision checker with incorrect coordinate frames
  • The PR attempts to fix a coordinate frame bug but only applies the fix to half of the affected code. The collision checker update loop (lines 673-686) still uses world-frame coordinates, which will cause the exact same collision detection issues the PR claims to fix. This incomplete fix may give a false sense of security while leaving the core bug present in the collision checker.
  • The file source/isaaclab_mimic/isaaclab_mimic/motion_planners/curobo/curobo_planner.py needs immediate attention - specifically lines 673-686 require the same coordinate transformation applied to lines 631-637

Important Files Changed

File Analysis

Filename Score Overview
source/isaaclab_mimic/isaaclab_mimic/motion_planners/curobo/curobo_planner.py 1/5 Adds coordinate transformation for world model updates but misses same fix for collision checker updates - incomplete bug fix

Sequence Diagram

sequenceDiagram
    participant IL as Isaac Lab
    participant SP as _sync_object_poses
    participant RO as Rigid Objects
    participant WM as World Model
    participant CC as Collision Checker
    
    Note over SP: Collision Synchronization Flow
    
    SP->>RO: Get object mappings
    
    loop For each dynamic object
        SP->>RO: Get world-frame pose (root_pos_w, root_quat_w)
        SP->>SP: Subtract env_origin
        SP->>SP: Transform to robot base frame (subtract_frame_transforms)
        Note over SP: ✅ Lines 631-637: Added in this PR
        SP->>SP: Convert to cuRobo device
        SP->>WM: Update object pose in world model
    end
    
    alt If objects updated > 0
        loop For each dynamic object
            SP->>RO: Get world-frame pose (root_pos_w, root_quat_w)
            SP->>SP: Subtract env_origin
            Note over SP: ❌ Lines 673-680: Missing transformation!
            SP->>SP: Convert to cuRobo device
            SP->>CC: update_obstacle_pose() with world-frame coords
            Note right of CC: Incorrect: expects robot base frame
        end
    end
Loading

@greptile-apps greptile-apps Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Additional Comments (1)

  1. source/isaaclab_mimic/isaaclab_mimic/motion_planners/curobo/curobo_planner.py, line 673-680 (link)

    logic: Missing coordinate transformation from world frame to robot base frame. The world model update loop (lines 631-637) correctly transforms object poses, but this collision checker update loop still uses world-frame coordinates.

1 file reviewed, 1 comment

Edit Code Review Agent Settings | Greptile

@kellyguo11
kellyguo11 requested a review from njawale42 December 15, 2025 17:13
@StafaH
StafaH changed the base branch from main to develop September 25, 2026 19:08
@StafaH
StafaH requested a review from a team September 25, 2026 19:08
@StafaH

StafaH commented Sep 25, 2026

Copy link
Copy Markdown
Collaborator

run-ci

@isaaclab-bot isaaclab-bot Bot added ci:run-docker Trigger the on-demand Docker and GPU CI workflow and removed ci:run-docker Trigger the on-demand Docker and GPU CI workflow labels Sep 25, 2026
@kellyguo11

Copy link
Copy Markdown
Contributor

@njawale42 fyi

@kellyguo11
kellyguo11 merged commit 3baa7ac into isaac-sim:develop Sep 26, 2026
53 checks passed
@isaaclab-bot

isaaclab-bot Bot commented Sep 26, 2026

Copy link
Copy Markdown
Contributor

Backported to release/3.0.0 as 0b240d8.

isaaclab-bot Bot pushed a commit that referenced this pull request Sep 26, 2026
## Summary

Fix cuRobo collision synchronization when the robot base is away from
the world origin. Each dynamic obstacle pose is converted from world
coordinates into the robot frame used by the static collision world,
then submitted once to cuRobo's collision checker. The checker also
updates its CPU world-model reference, so the duplicate manual update
and second pose-read loop are removed.

The fix uses Isaac Lab 3.0's XYZW quaternion convention and ProxyArray
`.torch` access. The existing cube-stack test now checks the
synchronized obstacle pose with a nonzero environment origin. A required
`isaaclab_mimic` changelog fragment documents the fix.

## Validation

- `uv run isaaclab -f` and `git diff --check` passed.
- The cuRobo simulator test could not complete locally: the available
`isaacsim`, `mimic`, and `test` extras install the other dependencies,
but cuRobo itself is installed by the dedicated Docker setup and is
absent from this environment.

## Release backport

- [x] <!-- backport-active-release --> Backport this pull request to the
active release branch after it merges into `develop`

---------

Co-authored-by: Mustafa Haiderbhai <[email protected]>

(cherry picked from commit 3baa7ac)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working isaac-mimic Related to Isaac Mimic team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants