feat(anyskin): adding support for anyskin sensors

This commit is contained in:
CarolinePascal
2025-12-24 08:57:12 +01:00
parent 8b9451b585
commit 764404a27e
10 changed files with 546 additions and 4 deletions
+3 -4
View File
@@ -20,8 +20,8 @@ from pathlib import Path
import numpy as np
import soundfile as sf
from lerobot.microphones.anyskin import AnyskinSensorConfig
from lerobot.microphones.configs import MicrophoneConfig
from lerobot.microphones.touchlab import TouchLabSensorConfig
from lerobot.microphones.utils import (
async_microphones_start_recording,
async_microphones_stop_recording,
@@ -120,9 +120,8 @@ if __name__ == "__main__":
args["sensors_channels"],
strict=False,
):
if isinstance(channels, int):
channels = [channels]
sensor_config = TouchLabSensorConfig(
channels = [1, 2, 3, 4, 5]
sensor_config = AnyskinSensorConfig(
sensor_port=port,
baud_rate=baud_rate,
sample_rate=sample_rate,