Repository navigation
Conversation
8f55cd9 to
4e0c340
Compare
4d355f6 to
bd33df5
Compare
[Medium impact] The change reaches Docker users who run placement workflows and the CI image workflow. The PR appears safe to merge, with non-blocking gaps in automated GPU coverage and Docker upgrade guidance. FindingsSummaryMoves cuRoboV2 into the default Docker image and updates Arena’s solver calls and DROID configuration.
The removal of the separate image variant and proprietary license is intentional, as stated in the PR description supplied for Diagram%%{init: {'theme': 'neutral'}}%%
flowchart LR
A[Default dev image] --> B[Main test job]
B --> C[cuRobo checks]
C --> D[Publish latest]
A --> E[cuRoboV2 solver]
E --> F[Placement reachability]
Reviews (1) · Last reviewed commit: "Add native cuRoboV2 DROID configuration" · Reviewed by Greptile |
| def solve_pose(self, goal_tool_poses, seed_config=None) -> _FakeIKResult: | ||
| config = self.kinematics.config.kinematics_config | ||
| self.radii_during_solve = {name: config.radius(name) for name in config.link_name_to_idx_map} | ||
| if self._raises: | ||
| raise RuntimeError("solve blew up") | ||
| return _FakeIKResult(goal_pose.position.shape[0], self._success) | ||
| return _FakeIKResult(goal_tool_poses.batch_size, self._success) | ||
|
|
||
| def compute_kinematics(self, joint_state): | ||
| """Return one set of link spheres per given joint configuration.""" | ||
| config = self.kinematics.config.kinematics_config | ||
| spheres = torch.stack([config.get_link_spheres(name)[0] for name in config.link_name_to_idx_map]) | ||
| batch_spheres = spheres.expand(joint_state.position.shape[0], 1, -1, -1) | ||
| return type("_State", (), {"robot_spheres": batch_spheres})() |
There was a problem hiding this comment.
The updated tests replace solve_pose and compute_kinematics with fakes. The dependency checks only import modules and inspect YAML. No test builds the real solver, updates its world, or solves a pose, so CI does not check the new runtime or tensor shapes before publishing the default image. Turn the manual GPU validation into a small repeatable smoke test.
Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!
| The container will build (if needed) and drop you into an interactive shell. | ||
|
|
||
| For :doc:`cuRobo-based reachability validation | ||
| </pages/concepts/object_placement/validation>`, launch with the ``-c`` flag | ||
| instead (native ``uv`` installs do not support this check): | ||
|
|
||
| :docker_run_curobo: | ||
| The default image includes :doc:`cuRobo-based reachability validation | ||
| </pages/concepts/object_placement/validation>`; native ``uv`` installs do not support this check. |
There was a problem hiding this comment.
Docker upgrade step is missing
If a user already has the old isaaclab_arena:latest image, the new default launcher reuses it without rebuilding. That image lacks cuRobo, despite the promise here. The launcher also attaches to an existing running container. Add a one-time upgrade note telling users to stop the old container and rebuild with ./docker/run_docker.sh -r.
| position_threshold=position_threshold, | ||
| rotation_threshold=rotation_threshold, | ||
| position_tolerance=position_threshold, | ||
| orientation_tolerance=rotation_threshold, |
There was a problem hiding this comment.
🟡 Same rotation threshold, about half the angle
The two cuRobo versions measure rotation error differently:
- v1 reported
rotation_erroras |sin(θ/2)|, the length of the error quaternion's vector part (pose_distance_kernel.cu). - v2 reports the angle θ in radians (
curobo/_src/cost/wp_tool_pose.py:angle = 2.0 * wp.atan2(...), stored asgeometric_rotation_distance).
ik_rotation_threshold_rad = 0.1 feeds both orientation_tolerance here and the check in solve_ik_feasibility. It used to accept up to about 0.20 rad (11.5°) and now accepts 0.1 rad (5.7°).
Is the tighter check intended?
- If not, doubling the defaults keeps the v1 behavior:
ReachabilityConfig.ik_rotation_threshold_rad0.1 → 0.2, and theCuroboIKSolverdefault 0.05 → 0.1. - If it is, could the PR description say so? It may explain part of the lower pass rates in the parity table.
| with _disabled_link_spheres(ik_solver, muted_links): | ||
| ik_result = ik_solver.solve_batch(goal_pose, seed_config=ik_seed) | ||
| goal_tool_poses = GoalToolPose.from_poses({ik_solver.tool_frames[0]: goal_pose}) | ||
| ik_result = ik_solver.solve_pose(goal_tool_poses, seed_config=ik_seed) |
There was a problem hiding this comment.
🟡 v2 solve_pose accepts only one pose here
InverseKinematicsCfg.create defaults to max_batch_size=1, and solve_pose raises when goal_tool_poses.batch_size is larger (curobo/_src/solver/solver_ik.py:671). CuroboIKSolver doesn't set it, so solve_ik_feasibility, which is documented for (b, 4, 4), now fails for b > 1.
Nothing breaks today, because the validator sends one pose at a time. The unit tests use two poses (_identity_grasps()), though, and pass only because _FakeIKSolver.solve_pose accepts any batch size.
Could we do one of these?
- Pass
max_batch_sizethroughCuroboIKSolver.__init__. - Make the single-pose contract explicit: assert
target_poses.shape[0] == 1, update the docstring, and use one pose in the test fixtures.
| RUN --mount=type=cache,target=/root/.cache/uv \ | ||
| --mount=type=bind,source=docker/setup/repair_venv_permissions.sh,target=/tmp/repair_venv_permissions.sh \ | ||
| uv pip install \ | ||
| "nvidia-curobo[cu13] @ git+https://github.com/NVlabs/curobo.git@${CUROBO_COMMIT}" && \ |
There was a problem hiding this comment.
🟡 ik_reachable now runs by default in Docker
isaaclab_arena_curobo/__init__.py registers ik_reachable whenever cuRobo imports, and ObjectPlacerParams runs and requires every registered check by default. With cuRobo in the default image, every DROID pick-and-place spec that doesn't set placer_params (kitchen_bench, maple_table_top, robolab) now rejects unreachable layouts in Docker but not in native uv.
The same spec and placement_seed therefore give different layouts depending on the install route. Each environment build also now pays for a solver build and per-candidate IK.
Should ik_reachable become opt-in, for example via placer_params.enabled_checks, now that installing cuRobo no longer means someone asked for it? If the new default is intended, could the PR description and release notes say so?
| ARG CUROBO_COMMIT=78fd485fa82d9b9a063fb4985e371814587e666a | ||
| RUN --mount=type=cache,target=/root/.cache/uv \ | ||
| --mount=type=bind,source=docker/setup/repair_venv_permissions.sh,target=/tmp/repair_venv_permissions.sh \ | ||
| uv pip install \ |
There was a problem hiding this comment.
🔵 cuRobo is installed outside Arena's lock
The removed install_curobo_runtime_deps.sh held torch, numpy, warp-lang and a few other packages at Isaac Sim's versions with pip constraints. This step now relies on cuRobo's current requirements happening to match.
There is already one mismatch:
- viser, a cuRobo dependency, requires
rich<15. uv.lockpinsrich==15.0.0, which comes in throughpytetwild[all].- The later
uv sync --frozen --inexactrestores 15.0.0, so the image would likely end up with an unmet requirement.
Could we do one of these?
- Keep a constraints file for the Isaac Sim pins here.
- Add cuRobo as an optional dependency in
pyproject.toml, souv.lockresolves it together with everything else. The planned uv follow-up will need that anyway.
| ./docker/run_docker.sh""" | ||
|
|
||
| # Docker run with Curobo dependencies | ||
| # Keep the cuRobo marker as an alias now that the default image includes cuRobo. |
There was a problem hiding this comment.
🔵 Unused :docker_run_curobo: alias
After this PR no page uses :docker_run_curobo:, so curobo_replacer and its re.sub line are dead code. Could we delete them instead of keeping an alias?
|
|
||
| For native ``uv``, ``isaaclab_arena_curobo`` is not installed; use the Docker | ||
| container with ``-c`` if you need | ||
| For native ``uv``, ``isaaclab_arena_curobo`` is not installed; use the default Docker |
There was a problem hiding this comment.
🔵 It's cuRobo that's missing in native uv
isaaclab_arena_curobo is part of the native install: it's in the pyproject.toml package list and test_packaging.py checks it. Only curobo itself is missing. Suggest matching the wording in installation.rst:
| For native ``uv``, ``isaaclab_arena_curobo`` is not installed; use the default Docker | |
| For native ``uv``, cuRobo is not installed; use the default Docker |
|
|
||
| kinematics = robot_cfg_utils.load_robot_yaml(config)["robot_cfg"]["kinematics"] | ||
|
|
||
| assert kinematics["format_version"] == 2.0 |
There was a problem hiding this comment.
🔵 Leftover assertions from the conversion step
load_robot_yaml now only overwrites urdf_path. The format_version, tool_frames, grasp_contact_link_names and cspace assertions therefore only check that yaml.safe_load reads the fixture back unchanged.
Could we keep just the urdf_path assertion and trim the fixture to match? The module docstring also still says "pure import checks", which is no longer true.
🤖 Isaac Lab-Arena Review BotSummaryThis PR moves Design, Boundaries & Scope
Findings🟡 Warning: isaaclab_arena_curobo/ik_solver.py:90 — v1 reported rotation error as |sin(θ/2)| and v2 reports θ in radians. The same The PR description still says Arena "converts the existing DROID robot configuration fields to the cuRoboV2 schema when loading them". The final commit ships a native v2 YAML instead. Test Coverage and CI Cost
VerdictMinor fixes needed |
Signed-off-by: Qian Lin <qianl@nvidia.com>
Signed-off-by: Qian Lin <qianl@nvidia.com>
Signed-off-by: Qian Lin <qianl@nvidia.com>
Signed-off-by: Qian Lin <qianl@nvidia.com>
bd33df5 to
cb2552d
Compare
Make cuRobo v2 a locked Arena dependency (nvidia-curobo[cu13], pinned to NVlabs/curobo@78fd485 through tool.uv.sources), so the native uv install and the Docker image both get the same cuRobo from uv.lock under the existing torch/numpy/warp overrides. The lock adds cuRobo and its runtime deps; the only version change is rich 15.0.0 -> 14.3.4, which cuRobo's viser dependency requires. With cuRobo installed everywhere, drop the separate dev-curobo image: remove the cuRobo builder stage, its scripts, the -c launcher flag and the cuRobo-only CI job. Docs and the setup-arena skill now describe ik_reachable validation as available in both routes, and the agentic env-gen workflow pages show the cuRobo v2 placement output. Docker, CI, launcher, docs and skill changes adapted from #1514. Co-authored-by: Qian Lin <qianl@nvidia.com> Signed-off-by: Xinjie Yao <xyao@nvidia.com>
|
moving to #1550 |
Update Arena to cuRoboV2 and its
cuda.coreruntime backend. Include cuRobo in the default developer image and remove the separate cuRobo image variant.Why this change?
The pinned cuRobo revision uses APIs removed by Warp 1.17 and requires a separate CUDA extension build. Current cuRobo supports Warp 1.17 and compiles kernels at runtime through
cuda.core.Keeping cuRobo in a separate image also duplicates Docker build, test, and publication paths for functionality used by Arena's placement reachability validation.
What changes?
78fd485fa82d9b9a063fb4985e371814587e666awith its CUDA 13 runtime dependencies.cuRobo-license.txt; the pinned upstream cuRoboV2 revision is Apache-2.0, and the installednvidia-curobodistribution includes its Apache license under*.dist-info/licenses/LICENSE.devimage through uv and remove the CUDA toolkit, wheel-builder, and runtime-wheel installation stages.dev-curobotarget and the-coptions from Docker launch and publication scripts.:latest../docker/run_docker.shfor cuRobo workflows.The native uv environment still does not install cuRobo. This change affects the Docker workflow only. uv support for curobo will be added in a follow up PR.
Usage example
Before:
After:
Validation
devDocker image successfully.curobo_depstests.cuda.corebackend.Compared documented agentic-environment-generation
ik_reachablepass rates with live runs inisaaclab_arena:curobo-v2-dev:The 600-candidate heterogeneous case provides the strongest parity signal and differs by 1.01 percentage points. The 50-candidate cases have wider sampling variability, so exact count equality is not expected.
Placement reachability visualization
Collected deterministic Maple-table placement samples with:
For collection,
max_placement_attemptswas set to 25 andplacement_seedto 42, then restored. Of 125 candidates, 124 reached IK after geometry checks. The cube was reachable in 98/124 poses, the bowl in 122/124 poses, and both targets were reachable in 96/124 layouts.The six isolated red cube samples are not one stable unreachable region. Layouts 11, 16, 48, 75, and 103 place the cube close enough to the bowl that two active robot collision spheres enter cuRobo's 10 mm collision-activation margin; removing the bowl obstacle makes all five reachable. Layout 68 has no nearby bowl collision and succeeds when replayed, indicating seed/convergence variability near the IK threshold. The cube heatmap projects away the independently varying bowl position, so neighboring points do not represent identical collision worlds.
Reachable example (layout 1; both targets reachable):
Unreachable example (layout 93; destination unreachable):