Given code like
sim.move_to('head_tilt', -0.5)
sim.wait_until_at_setpoint('head_tilt')
you'll sometimes see wait_until_at_setpoint times out, especially if the sim is running slowly. The warning message printed out says
Timeout: Joint head_tilt did not reach -0.5. Actual: -0.0213 Diff: -47.8702cm
The Diff: -47.8702cm doesn't make sense for head_tilt which is a rotary joint. The printout should switch between centimeters and degrees as needed. Also, let's limit to one decimal place.
|
f"Timeout: Joint {actuator.name} did not reach {pos}. Actual: {actual:.4f} Diff: {error*100:.4f}cm", |
Given code like
you'll sometimes see
wait_until_at_setpointtimes out, especially if the sim is running slowly. The warning message printed out saysThe
Diff: -47.8702cmdoesn't make sense forhead_tiltwhich is a rotary joint. The printout should switch between centimeters and degrees as needed. Also, let's limit to one decimal place.stretch_mujoco/stretch_mujoco/stretch_mujoco_simulator.py
Line 285 in fd1d374