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

[windows][master] Use ros::Duration::sleep for portability. #1634

Merged
merged 1 commit into from
Aug 21, 2019

Conversation

seanyen
Copy link
Contributor

@seanyen seanyen commented Aug 21, 2019

In some code paths, it uses POSIX sleep. However, for non-POSIX systems, the sleep may not exist. This change is to use the abstract ros::Duration::sleep for portability.

Copy link
Contributor

@gavanderhoorn gavanderhoorn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems OK to me.

Would perhaps be nice to use std::this_thread::sleep_for(..), but it's all in moveit_ros and the MSA, so ROS infra is available.

@v4hn
Copy link
Contributor

v4hn commented Aug 21, 2019

Merging. This is a trivial cleanup.

Actually, a number of these could be rewritten in a way to avoid the sleep, but it's mostly minor demo code where timing does not really matter.

@v4hn v4hn merged commit 1f4de10 into moveit:master Aug 21, 2019
henningkayser pushed a commit to PickNikRobotics/moveit that referenced this pull request Nov 21, 2019
rhaschke pushed a commit to ubi-agni/moveit that referenced this pull request Feb 8, 2020
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.

3 participants