Skip to content

[Bug Report] dt in play.py is incorrect, should be step_dt, not physics_dt #2230

@tylerlum

Description

@tylerlum

When running play.py with --real-time, the dt used to calculate this is incorrect. It is currently using env.physics_dt, which is sim_dt. However, if the decimation is >1, then the effective dt is env.step_dt, which is sim_dt * decimation. We are running 1 env.step() per loop, so this should definitely be env.step_dt.

This affects all reinforcement_learning/<rl_library>/play.py files

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions