mirror of
https://github.com/huggingface/lerobot.git
synced 2026-05-26 22:20:06 +00:00
fix(tests) fixes for reachy2 tests; removing reachy2 references from the script
This commit is contained in:
@@ -138,6 +138,7 @@ Reachy 2 is fully supported by LeRobot’s recording features.
|
||||
If you choose this option but still want to use the VR teleoperation application, select "Standard session" in the app.
|
||||
|
||||
**Example: start a recording without the mobile base:**
|
||||
First add reachy2 and reachy2_teleoperator to the imports of the record script. Then you can use the following command:
|
||||
|
||||
```bash
|
||||
python -m lerobot.record \
|
||||
|
||||
@@ -83,7 +83,6 @@ from lerobot.robots import ( # noqa: F401
|
||||
hope_jr,
|
||||
koch_follower,
|
||||
make_robot_from_config,
|
||||
reachy2,
|
||||
so100_follower,
|
||||
so101_follower,
|
||||
)
|
||||
@@ -94,7 +93,6 @@ from lerobot.teleoperators import ( # noqa: F401
|
||||
homunculus,
|
||||
koch_leader,
|
||||
make_teleoperator_from_config,
|
||||
reachy2_teleoperator,
|
||||
so100_leader,
|
||||
so101_leader,
|
||||
)
|
||||
|
||||
@@ -23,6 +23,8 @@ import pytest
|
||||
from lerobot.cameras.reachy2_camera import Reachy2Camera, Reachy2CameraConfig
|
||||
from lerobot.errors import DeviceNotConnectedError
|
||||
|
||||
pytest.importorskip("reachy2_sdk")
|
||||
|
||||
PARAMS = [
|
||||
("teleop", "left"),
|
||||
("teleop", "right"),
|
||||
|
||||
@@ -51,6 +51,8 @@ PARAMS = [
|
||||
{"with_left_teleop_camera": False, "with_torso_camera": True},
|
||||
]
|
||||
|
||||
pytest.importorskip("reachy2_sdk")
|
||||
|
||||
|
||||
def _make_reachy2_sdk_mock():
|
||||
class JointSpy:
|
||||
|
||||
@@ -28,6 +28,8 @@ from lerobot.teleoperators.reachy2_teleoperator import (
|
||||
Reachy2TeleoperatorConfig,
|
||||
)
|
||||
|
||||
pytest.importorskip("reachy2_sdk")
|
||||
|
||||
# {lerobot_keys: reachy2_sdk_keys}
|
||||
REACHY2_JOINTS = {
|
||||
**REACHY2_NECK_JOINTS,
|
||||
|
||||
Reference in New Issue
Block a user