Reference/API

Teleop configs

Each named rig run by scripts/teleop/ is an instance of one of these configs. See Teleoperation for rig names and overrides.

retargetingkit.configs.teleop.config.HandTeleopConfig(
source: SourceConfig[HandFrame],
target: TargetConfig,
retargeter: RetargeterConfig[HandFrame, QPosCommand],
side: Side = 'right',
rate: float = 30.0,
mode: Literal['viser', 'real', 'both'] = 'viser',
device: str = 'cuda:0'
)

One hand source retargeted to one robot hand.

Parameters
sourceSourceConfig[HandFrame]required
targetTargetConfigrequired
retargeterRetargeterConfig[HandFrame, QPosCommand]required
sideSide= 'right'
ratefloat= 30.0
modeLiteral['viser', 'real', 'both']= 'viser'
devicestr= 'cuda:0'
Members
attribute[source]
HandTeleopConfig.source: SourceConfig[HandFrame]

Hand motion source blueprint.

attribute[source]
HandTeleopConfig.target: TargetConfig

Robot hand blueprint.

attribute[source]
HandTeleopConfig.retargeter: RetargeterConfig[HandFrame, QPosCommand]

Optimization or neural hand retargeting blueprint.

attribute[source]
HandTeleopConfig.side: Side = 'right'

Hand side shared by the source and retargeter.

attribute[source]
HandTeleopConfig.rate: float = 30.0

Control-loop frequency in Hz.

attribute[source]
HandTeleopConfig.mode: Literal['viser', 'real', 'both'] = 'viser'

Viser only, hardware only, or both.

attribute[source]
HandTeleopConfig.device: str = 'cuda:0'

Warp device used by RoboKit.

retargetingkit.configs.teleop.config.ArmTeleopConfig(
source: SourceConfig[ArmFrame],
arms: dict[Side, TargetConfig],
retargeters: dict[Side, ArmRetargeterConfig],
mode: Literal['viser', 'real', 'both'] = 'viser',
device: str = 'cuda:0'
)

One arm source controlling one robot arm per side.

Parameters
sourceSourceConfig[ArmFrame]required
armsdict[Side, TargetConfig]required
retargetersdict[Side, ArmRetargeterConfig]required
modeLiteral['viser', 'real', 'both']= 'viser'
devicestr= 'cuda:0'
Members
attribute[source]
ArmTeleopConfig.source: SourceConfig[ArmFrame]

Wrist motion source blueprint.

attribute[source]
ArmTeleopConfig.arms: dict[Side, TargetConfig]

Robot arm blueprint per side.

attribute[source]
ArmTeleopConfig.retargeters: dict[Side, ArmRetargeterConfig]

Wrist-to-arm retargeting blueprint per side.

attribute[source]
ArmTeleopConfig.mode: Literal['viser', 'real', 'both'] = 'viser'

Viser only, hardware only, or both.

attribute[source]
ArmTeleopConfig.device: str = 'cuda:0'

Warp device used by RoboKit.

retargetingkit.configs.teleop.config.ArmHandTeleopConfig(
source: SourceConfig[ArmHandFrame],
arms: dict[Side, TargetConfig],
hands: dict[Side, TargetConfig],
arm_retargeters: dict[Side, ArmRetargeterConfig],
hand_retargeters: dict[Side, RetargeterConfig[HandFrame, QPosCommand]],
assembly_urdf: Path,
mode: Literal['viser', 'real', 'both'] = 'viser',
device: str = 'cuda:0'
)

One arm-and-hand source controlling one robot arm and one robot hand per side.

Parameters
sourceSourceConfig[ArmHandFrame]required
armsdict[Side, TargetConfig]required
handsdict[Side, TargetConfig]required
arm_retargetersdict[Side, ArmRetargeterConfig]required
hand_retargetersdict[Side, RetargeterConfig[HandFrame, QPosCommand]]required
assembly_urdfPathrequired
modeLiteral['viser', 'real', 'both']= 'viser'
devicestr= 'cuda:0'
Members
attribute[source]
ArmHandTeleopConfig.source: SourceConfig[ArmHandFrame]

Wrist and hand motion source blueprint.

attribute[source]
ArmHandTeleopConfig.arms: dict[Side, TargetConfig]

Robot arm blueprint per side.

attribute[source]
ArmHandTeleopConfig.hands: dict[Side, TargetConfig]

Robot hand blueprint per side.

attribute[source]
ArmHandTeleopConfig.arm_retargeters: dict[Side, ArmRetargeterConfig]

Wrist-to-arm retargeting blueprint per side.

attribute[source]
ArmHandTeleopConfig.hand_retargeters: dict[Side, RetargeterConfig[HandFrame, QPosCommand]]

Hand retargeting blueprint per side.

attribute[source]
ArmHandTeleopConfig.assembly_urdf: Path

Combined arm-and-hand URDF used only for visualization.

attribute[source]
ArmHandTeleopConfig.mode: Literal['viser', 'real', 'both'] = 'viser'

Viser only, hardware only, or both.

attribute[source]
ArmHandTeleopConfig.device: str = 'cuda:0'

Warp device used by RoboKit.

retargetingkit.configs.teleop.config.HumanoidTeleopConfig(
source: SourceConfig[BodyFrame],
retargeter: HumanoidRetargeterConfig,
targets: tuple[TargetConfig, ...],
device: str = 'cuda:0'
)

One body source retargeted to one or more humanoid targets.

Parameters
sourceSourceConfig[BodyFrame]required
retargeterHumanoidRetargeterConfigrequired
targetstuple[TargetConfig, ...]required
devicestr= 'cuda:0'
Members
attribute[source]
HumanoidTeleopConfig.source: SourceConfig[BodyFrame]

Body motion source blueprint.

attribute[source]
HumanoidTeleopConfig.retargeter: HumanoidRetargeterConfig

Body-to-humanoid retargeting blueprint.

attribute[source]
HumanoidTeleopConfig.targets: tuple[TargetConfig, ...]

Humanoid target blueprints fed the same command.

attribute[source]
HumanoidTeleopConfig.device: str = 'cuda:0'

Warp device used by RoboKit.

retargetingkit.configs.teleop.config.HumanoidHandTeleopConfig(
source: PicoSourceConfig,
retargeter: HumanoidRetargeterConfig,
targets: tuple[TargetConfig, ...],
left_hand: TargetConfig,
right_hand: TargetConfig,
open_qpos: tuple[float, ...],
closed_qpos: tuple[float, ...],
device: str = 'cuda:0'
)

One PICO connection controlling a humanoid and two robot hands.

Parameters
sourcePicoSourceConfigrequired
retargeterHumanoidRetargeterConfigrequired
targetstuple[TargetConfig, ...]required
left_handTargetConfigrequired
right_handTargetConfigrequired
open_qpostuple[float, ...]required
closed_qpostuple[float, ...]required
devicestr= 'cuda:0'
Members
attribute[source]
HumanoidHandTeleopConfig.source: PicoSourceConfig

PICO body and controller source blueprint.

attribute[source]
HumanoidHandTeleopConfig.retargeter: HumanoidRetargeterConfig

Body-to-humanoid retargeting blueprint.

attribute[source]
HumanoidHandTeleopConfig.targets: tuple[TargetConfig, ...]

Humanoid target blueprints fed the same command.

attribute[source]
HumanoidHandTeleopConfig.left_hand: TargetConfig

Left robot hand blueprint.

attribute[source]
HumanoidHandTeleopConfig.right_hand: TargetConfig

Right robot hand blueprint.

attribute[source]
HumanoidHandTeleopConfig.open_qpos: tuple[float, ...]

Hand joint positions commanded when the trigger is released.

attribute[source]
HumanoidHandTeleopConfig.closed_qpos: tuple[float, ...]

Hand joint positions commanded when the trigger is pressed.

attribute[source]
HumanoidHandTeleopConfig.device: str = 'cuda:0'

Warp device used by RoboKit.