Skip to content

feat(lerobot-robot-livekit): add action_features config field#33

Open
pham-tuan-binh wants to merge 1 commit into
mainfrom
feat/action-features-config
Open

feat(lerobot-robot-livekit): add action_features config field#33
pham-tuan-binh wants to merge 1 commit into
mainfrom
feat/action-features-config

Conversation

@pham-tuan-binh
Copy link
Copy Markdown
Collaborator

Summary

  • Adds action_features: dict | None = None to LiveKitRobotConfig
  • Wires it into _resolve_schema as the explicit action schema when no local Teleoperator is passed — higher priority than config.motors, lower than a live teleop instance
  • Works with or without observation_features: standalone (state mirrors action) or alongside it (disjoint obs/action schemas)
  • Documents the new field in the config reference table and with a dedicated "Declaring action keys explicitly" section

Test plan

  • No teleop, action_features only: action keys match provided dict; state keys mirror action
  • No teleop, observation_features + action_features: state keys from obs, action keys from action_features
  • No teleop, observation_features only (no action_features, no motors): state and action keys both come from obs (existing behavior unchanged)
  • Teleop passed alongside action_features: teleop wins, action_features is ignored

Lets callers declare an explicit action schema on LiveKitRobotConfig
when the action keys differ from observation keys and can't be derived
from config.motors. Ignored when a local Teleoperator is 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