Skip to content

[joint_trajectory_controller] tests fails randomly about 1/3 chance #344

@7675t

Description

@7675t

I have noticed the tests for joint_trajectory_controller sometimes fail. The chance of failure is about 1/3, so I believe you can reproduce it to run catkin run_test several times locally. The branch is kinetic-devel.

$ catkin run_tests joint_trajectory_controller | tee log.txt | grep FAILURES

Warnings << joint_trajectory_controller:make /home/tajima/Codes/ws/logs/
joint_trajectory_controller/build.make.010.log
...............................................................................
 * FAILURES: 0
 * FAILURES: 0
 * FAILURES: 0
 * FAILURES: 0
 * FAILURES: 4

And one of the failures is:

[joint_trajectory_controller.rosunit-joint_trajectory_controller_vel_test/topicSingleTraj][FAILURE]
/home/tajima/Codes/ws/src/ros_controllers/joint_trajectory_controller/test/joint_trajectory_controller_test.cpp:427
The difference between traj.points.back().positions[i] and state->desired.positions[i] is 0.78539816339744828, which exceeds EPS, where
traj.points.back().positions[i] evaluates to -0.78539816339744828,
state->desired.positions[i] evaluates to 0, and
EPS evaluates to 0.01.

@k-okada #336 may fix some of this, but I'm afraid it is not enough.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions