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

Use shorter wall sleeps in sim time for very short durations #137

Merged
merged 2 commits into from
Jun 13, 2023

Conversation

peci1
Copy link
Collaborator

@peci1 peci1 commented Jun 6, 2023

Closes #133 .

I chose quite arbitrarily number 10 so that sim time running up to 10x real-time is supported even for short sleeps. This is a trade-off between performance and accuracy. If anybody has a reason to change this number, let me know.

@peci1
Copy link
Collaborator Author

peci1 commented Jun 13, 2023

I'm merging this as the only maintainer.

@peci1 peci1 merged commit 25b6a6d into noetic-devel Jun 13, 2023
2 checks passed
@peci1
Copy link
Collaborator Author

peci1 commented Jun 14, 2023

@Mergifyio backport melodic-devel

@mergify
Copy link

mergify bot commented Jun 14, 2023

backport melodic-devel

✅ Backports have been created

peci1 added a commit that referenced this pull request Jun 14, 2023
Use shorter wall sleeps in sim time for very short durations (backport #137)
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

Successfully merging this pull request may close these issues.

Resolution of ros::Duration::sleep() limited by implicit sleep in nanoseconds
1 participant