Skip to content

This sleep function affects the chai dynamic loop frequency a lot #1

@adnanmunawar

Description

@adnanmunawar

time.sleep(0.0005)

This method keeps checking the cur_sim_step number received from the chai_object_state msg. Only when the sim step has increased by the allows skip limit, does it go on and return from this method to provide an updated observation. If we do not sleep at all with this sleep, it blocks the variable from being set by the subscribed msg and slows down update. If we sleep for too long, we naturally waste time here and the update is slow. What's the best fix for this issue? State Table? Better sleep timing?

Metadata

Metadata

Assignees

No one assigned

    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