mirror of
https://github.com/huggingface/lerobot.git
synced 2026-05-18 18:20:08 +00:00
fix(tests) fixes for reachy2 tests; removing reachy2 references from the script
This commit is contained in:
@@ -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