Skip to content

Timeout msg should switch between 'cm' and 'deg' #90

Description

@hello-binit

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",

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions