mirror of
https://github.com/huggingface/lerobot.git
synced 2026-07-24 02:06:15 +00:00
@@ -192,9 +192,8 @@ def _teleop_smooth_move_to(
|
|||||||
) -> None:
|
) -> None:
|
||||||
"""Smoothly move an actuated teleop to ``target_pos`` via linear interpolation.
|
"""Smoothly move an actuated teleop to ``target_pos`` via linear interpolation.
|
||||||
|
|
||||||
Enables torque for the duration of the move, then disables it so the
|
Requires the teleoperator to support feedback
|
||||||
operator can move the arm freely. ``target_pos`` must use the same key
|
(i.e. have non-empty ``feedback_features`` and implement ``disable_torque`` / ``enable_torque``).
|
||||||
space as ``teleop.feedback_features`` (i.e. ``"{motor}.pos"`` keys).
|
|
||||||
"""
|
"""
|
||||||
teleop.enable_torque()
|
teleop.enable_torque()
|
||||||
current = teleop.get_action()
|
current = teleop.get_action()
|
||||||
|
|||||||
Reference in New Issue
Block a user