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 Executor not executing tasks if there are no ready entities in the wait set #272

Merged
merged 2 commits into from
Feb 11, 2019

Commits on Feb 11, 2019

  1. Fix Executor not executing tasks if there are no ready entities in th…

    …e wait set
    
    If a task is created, then trigger the Executors guard condition. This will wake any blocking call to `rcl_wait()`.
    In this scenario, no work is yielded, so we also have to move the check for 'in-progress' tasks into the wait loop.
    
    Added a unit test to reproduce the issue.
    
    This resolves an issue in some cases where the result response from the action server is never processed, therefore never reaching the action client.
    
    Signed-off-by: Jacob Perron <jacob@openrobotics.org>
    jacobperron committed Feb 11, 2019
    Configuration menu
    Copy the full SHA
    cdd8414 View commit details
    Browse the repository at this point in the history
  2. Address review

    * Fix logic bug in test
    * Mitigate race in test
    
    Signed-off-by: Jacob Perron <jacob@openrobotics.org>
    jacobperron committed Feb 11, 2019
    Configuration menu
    Copy the full SHA
    1ee031a View commit details
    Browse the repository at this point in the history