mirror of
https://github.com/huggingface/lerobot.git
synced 2026-05-21 11:39:50 +00:00
chore(busy_wait): renaming busy_wait into precise_sleep
This commit is contained in:
@@ -29,7 +29,7 @@ from lerobot.microphones.utils import (
|
||||
make_microphones_from_configs,
|
||||
)
|
||||
from lerobot.utils.robot_utils import (
|
||||
busy_wait,
|
||||
precise_sleep,
|
||||
)
|
||||
|
||||
|
||||
@@ -70,7 +70,7 @@ def main(
|
||||
|
||||
# Record audio chunks
|
||||
for j in range(audio_chunks_number):
|
||||
busy_wait(audio_chunks_duration)
|
||||
precise_sleep(audio_chunks_duration)
|
||||
|
||||
for microphone_key, microphone in microphones.items():
|
||||
audio_chunk = microphone.read()
|
||||
|
||||
@@ -28,7 +28,7 @@ from lerobot.microphones.utils import (
|
||||
make_microphones_from_configs,
|
||||
)
|
||||
from lerobot.utils.robot_utils import (
|
||||
busy_wait,
|
||||
precise_sleep,
|
||||
)
|
||||
|
||||
|
||||
@@ -59,7 +59,7 @@ def main(
|
||||
)
|
||||
|
||||
# Record audio chunks
|
||||
busy_wait(10.0)
|
||||
precise_sleep(10.0)
|
||||
|
||||
for sensor_key, sensor in sensors.items():
|
||||
data_chunk = sensor.read()
|
||||
|
||||
Reference in New Issue
Block a user