Skip to content

Fix cuRobo planner example startup - #429

Merged
yuecideng merged 1 commit into
mainfrom
fix/curobo-planner-startup
Jul 27, 2026
Merged

Fix cuRobo planner example startup#429
yuecideng merged 1 commit into
mainfrom
fix/curobo-planner-startup

Conversation

@yuecideng

Copy link
Copy Markdown
Contributor

Description

This PR fixes the standalone cuRobo planner example startup by defaulting num_envs to one when no Gym configuration merge occurs. It also builds the simulation in headless mode first and opens the interactive viewer only after the robot and obstacles are loaded and placed at their final initial poses.

This prevents the example from raising a TypeError when --num_envs is omitted and avoids opening the viewer before scene setup is complete.

Dependencies: None.

Issue: N/A (reported directly; no linked GitHub issue).

Type of change

  • Bug fix (non-breaking change which fixes an issue)

Screenshots

Not applicable.

Testing

  • black .
  • black --check --diff --color ./
  • pytest tests/sim/planners/test_curobo_planner.py (31 passed, 3 skipped)
  • pytest tests (772 passed, 103 skipped)
  • Interactive cuRobo example run with delayed viewer startup, forward planning, trajectory replay, and return planning

Checklist

  • I have run the black . command to format the code base.
  • I have made corresponding changes to the documentation
  • I have added tests that prove my fix is effective or that my feature works
  • Dependencies have been updated, if applicable.

Default the standalone example to one environment and build the simulation headlessly before opening the viewer after robot and obstacle setup.
Copilot AI review requested due to automatic review settings July 27, 2026 04:08

Copilot AI 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.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@yuecideng yuecideng added bug Something isn't working motion gen Things related to motion generation for robot rendering Things related to rendering (eg, performace, efficiency, bug) labels Jul 27, 2026
@yuecideng
yuecideng merged commit d7f56b6 into main Jul 27, 2026
1 check passed
@yuecideng
yuecideng deleted the fix/curobo-planner-startup branch July 27, 2026 04:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working motion gen Things related to motion generation for robot rendering Things related to rendering (eg, performace, efficiency, bug)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants