File tree Expand file tree Collapse file tree 1 file changed +1
-8
lines changed Expand file tree Collapse file tree 1 file changed +1
-8
lines changed Original file line number Diff line number Diff line change 1
- import time
2
-
3
1
from lerobot .calibrate import CalibrateConfig , calibrate
4
2
from lerobot .record import DatasetRecordConfig , RecordConfig , record
5
3
from lerobot .replay import DatasetReplayConfig , ReplayConfig , replay
@@ -18,17 +16,12 @@ def test_calibrate():
18
16
def test_teleoperate ():
19
17
robot_cfg = MockRobotConfig ()
20
18
teleop_cfg = MockTeleopConfig ()
21
- expected_duration = 0.1
22
19
cfg = TeleoperateConfig (
23
20
robot = robot_cfg ,
24
21
teleop = teleop_cfg ,
25
- teleop_time_s = expected_duration ,
22
+ teleop_time_s = 0.1 ,
26
23
)
27
- start = time .perf_counter ()
28
24
teleoperate (cfg )
29
- actual_duration = time .perf_counter () - start
30
-
31
- assert actual_duration <= expected_duration * 1.1
32
25
33
26
34
27
def test_record_and_resume (tmp_path ):
You can’t perform that action at this time.
0 commit comments