Skip to content

Fix instabilities in JTC unittests #457

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

Merged
merged 25 commits into from
Feb 19, 2020

Conversation

martiniil
Copy link
Contributor

@martiniil martiniil commented Feb 12, 2020

The unittests of the joint_trajectory_controller are highly unstable. See #344 and recent Travis logs.

This PR aims to stabilize the existing test cases in unittest_joint_trajectory_controller.cpp.

  • Introduced waiting-functions in order to make the tests more deterministic. E.g.
    • wait for start of trajectory execution
    • wait for stop
    • wait for action result
    • wait for (smoothing/delay-)parameter updated.
  • Fix how we assert that controller is running (especially after reloading)
  • Increased time-limits
  • Revised all test cases (especially stop-ramp tests).

Copy link
Member

@bmagyar bmagyar left a comment

Choose a reason for hiding this comment

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

This is only half of my review

Copy link
Member

@bmagyar bmagyar left a comment

Choose a reason for hiding this comment

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

Thank you so much for this, this is great!

@bmagyar bmagyar merged commit 0c3f608 into ros-controls:melodic-devel Feb 19, 2020
@martiniil martiniil deleted the fix/jtc_test branch February 20, 2020 08:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants