Skip to content

Add reusable demo utilities and DemoBase lifecycle class#354

Draft
yuecideng wants to merge 14 commits into
mainfrom
feature/demo-base-class
Draft

Add reusable demo utilities and DemoBase lifecycle class#354
yuecideng wants to merge 14 commits into
mainfrom
feature/demo-base-class

Conversation

@yuecideng

Copy link
Copy Markdown
Contributor

Description

This PR introduces a shared demo utility layer for simulation scripts and refactors the six scripts/tutorials/atomic_action/ tutorials to use it.

New components:

  • embodichain.lab.sim.utility.demo_utils: argument parsing, default simulation setup, recording context manager, trajectory replay, and window/user helpers.
  • embodichain.lab.sim.demo_base.DemoBase: optional lifecycle base class for demos.

The existing scripts/tutorials/atomic_action/tutorial_utils.py now re-exports generic helpers while keeping UR5-specific configuration functions. All six atomic-action tutorials were migrated to DemoBase and the shared helpers; behavior is preserved.

Dependencies: 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

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.

yuecideng and others added 14 commits July 3, 2026 16:01
Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Claude <noreply@anthropic.com>
@yuecideng yuecideng added enhancement New feature or request refactor atomic action atomic action related functionality robot Module related to robot visualization Features or functions for visualization with the simulation labels Jul 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

atomic action atomic action related functionality enhancement New feature or request refactor 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.

1 participant