Skip to content

fix race condition - #824

Merged
v4hn merged 1 commit into
moveit:kinetic-develfrom
ubi-agni:fix-race-condition
Apr 20, 2018
Merged

v4hn merged 1 commit into
moveit:kinetic-develfrom
ubi-agni:fix-race-condition

Conversation

@rhaschke

@rhaschke rhaschke commented Apr 5, 2018 •

Copy link
Copy Markdown
Contributor

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
rhaschke force-pushed the fix-race-condition branch from 942ce96 to bc48c1d Compare April 6, 2018 12:45
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
rhaschke force-pushed the fix-race-condition branch from bc48c1d to f734d75 Compare April 19, 2018 07:13
rhaschke added a commit that referenced this pull request Apr 20, 2018
explicitly enforce updateSceneWithCurrentState() in waitForCurrentRobotState()
@v4hn

v4hn commented Apr 20, 2018

Copy link
Copy Markdown
Contributor

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.

2 participants