Skip to content

Add recorded demos#52

Merged
fracapuano merged 6 commits into
mainfrom
fracapuano/add-recorded-demos
Jun 6, 2026
Merged

Add recorded demos#52
fracapuano merged 6 commits into
mainfrom
fracapuano/add-recorded-demos

Conversation

@fracapuano

@fracapuano fracapuano commented Apr 8, 2026

Copy link
Copy Markdown
Collaborator

This PR allows to record and execute demos with very compact instructions, such as:

from orca_core import OrcaHand

hand = OrcaHand()

success, message = hand.connect()
print(f"connect() -> success={success}, message={message}")
if not success:
    raise RuntimeError(message)

# Enables torque, sets control mode/current, and computes wrap offsets.
hand.init_joints(move_to_neutral=True)

hand.run_demo("main", cycles=3)

In theory this should also zero-day support the sim backend. Effectively, here we demo presets directly in orca_core, unifying backends under a shared hand.run_demo(...) command. It also mildly touches scripts/, as the hard coded presents there recorded are now stored within a demo_presets.py file.

@fracapuano
fracapuano requested a review from clemens-chr May 16, 2026 10:42
@fracapuano
fracapuano merged commit 6bc62a8 into main Jun 6, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant