Skip to content

Update tutorial script defaults#347

Merged
yuecideng merged 1 commit into
mainfrom
fix/tutorial-branch-updates
Jul 1, 2026
Merged

Update tutorial script defaults#347
yuecideng merged 1 commit into
mainfrom
fix/tutorial-branch-updates

Conversation

@yuecideng

Copy link
Copy Markdown
Contributor

Description

This PR updates the remaining branch-only tutorial script changes on top of main.

It:

  • adjusts the grasp tutorial robot joint-name regex patterns
  • forces headless initialization in selected simulation tutorials and opens the motion-generator window explicitly
  • removes the outdated tutorial action-switch regression test

This PR supersedes #345.

Dependencies: None.

Issue reference: None.

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • Enhancement (non-breaking change which improves an existing functionality)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (existing functionality will not work without user modification)
  • Documentation update

Screenshots

Not applicable.

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.

Verification

  • pytest tests/sim/test_tutorial_action_switch_frequency.py -v
    • Fails because this branch removes that test file.

Adjust tutorial script defaults on top of main by updating robot joint name patterns, forcing headless setup in selected simulation tutorials, opening the motion generator window explicitly, and removing the outdated tutorial action-switch regression test.
Copilot AI review requested due to automatic review settings July 1, 2026 11:18
@yuecideng yuecideng added bug Something isn't working robot Module related to robot visualization Features or functions for visualization with the simulation labels Jul 1, 2026
@yuecideng yuecideng merged commit c97cd68 into main Jul 1, 2026
2 checks passed
@yuecideng yuecideng deleted the fix/tutorial-branch-updates branch July 1, 2026 11:19

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.

Pull request overview

Updates simulation/grasp tutorial scripts to align defaults with the branch-only tutorial behavior being brought onto main, including explicit window handling and updated joint-name patterns.

Changes:

  • Update grasp tutorial joint-name regex patterns from JOINT[0-9] to Joint[0-9].
  • Force headless initialization in selected sim tutorials and explicitly open the viewer window where needed.
  • Remove the tutorial action-switch regression test.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
scripts/tutorials/grasp/grasp_generator.py Adjusts UR10 arm joint regex patterns used for drive properties and control parts.
scripts/tutorials/sim/motion_generator.py Switches to headless initialization and explicitly opens the simulation window.
scripts/tutorials/sim/create_scene.py Forces headless initialization (while still conditionally opening a window / recording based on CLI args).
tests/sim/test_tutorial_action_switch_frequency.py Removes the regression test that enforced a shared tutorial action-switch interval.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines 79 to 83
# Initialize simulation
sim = SimulationManager(SimulationManagerCfg(headless=False, sim_device="cpu"))
sim = SimulationManager(SimulationManagerCfg(headless=True, sim_device="cpu"))
sim.set_manual_update(False)

# Robot configuration
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working robot Module related to robot visualization Features or functions for visualization with the simulation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants