Update tutorial script defaults#347
Merged
Merged
Conversation
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.
Contributor
There was a problem hiding this comment.
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]toJoint[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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This PR updates the remaining branch-only tutorial script changes on top of
main.It:
This PR supersedes #345.
Dependencies: None.
Issue reference: None.
Type of change
Screenshots
Not applicable.
Checklist
black .command to format the code base.Verification
pytest tests/sim/test_tutorial_action_switch_frequency.py -v