Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
adnanmunawar opened this issue Feb 9, 2018 · 0 comments
Open

Comments

@adnanmunawar
Copy link
Member

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?

adnanmunawar added a commit that referenced this issue Feb 10, 2018
Tried using state read/write tables without sleep but no change in performace observed over no-sleep
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant