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

fix race condition #824

Merged
merged 1 commit into from
Apr 20, 2018
Merged

Conversation

rhaschke
Copy link
Contributor

@rhaschke rhaschke commented Apr 5, 2018

As pointed out in #350 (comment), the race condition in waitForCurrentState() was not fully resolved yet.
The reason was that only the first incoming joint_state update triggered a PlanningScene update, while later updates were throttled. To overcome this issue, we should explicitly trigger a scene update in waitForCurrentState(), if there were (further) updates.
As verified by @mmoerdijk, this PR finally resolves the issue.
The unittest so far only involved fake controllers that didn't revealed the timing issue.

rhaschke added a commit to ubi-agni/moveit that referenced this pull request Apr 19, 2018
explicitly enforce updateSceneWithCurrentState() in waitForCurrentRobotState()
rhaschke added a commit to ubi-agni/moveit that referenced this pull request Apr 19, 2018
explicitly enforce updateSceneWithCurrentState() in waitForCurrentRobotState()
rhaschke added a commit that referenced this pull request Apr 20, 2018
explicitly enforce updateSceneWithCurrentState() in waitForCurrentRobotState()
@v4hn
Copy link
Contributor

v4hn commented Apr 20, 2018

Code simplification, horray!

Merging.

@v4hn v4hn merged commit b352bad into moveit:kinetic-devel Apr 20, 2018
rhaschke added a commit that referenced this pull request Apr 22, 2018
explicitly enforce updateSceneWithCurrentState() in waitForCurrentRobotState()
@rhaschke rhaschke deleted the fix-race-condition branch April 22, 2018 18:55
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.

None yet

2 participants