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

Add test of feedback from joint trajectory action #1072

Merged
merged 2 commits into from
Dec 12, 2019

Conversation

pazeshun
Copy link
Collaborator

This PR adds tests to catch jsk-ros-pkg/jsk_pr2eus#233 (comment) and #1049 (comment).
Travis test of this PR should fail.

@pazeshun
Copy link
Collaborator Author

Travis correctly failed:

<testsuite errors="0" failures="1" name="unittest.suite.TestSuite" tests="4" time="35.169"><testcase classname="__main__.TestPA10Robot" name="test_follow_joint_trajectory_action" time="11.2812"><failure type="AssertionError">0.0 != 2.5 within 1 delta
  File "/usr/lib/python2.7/unittest/case.py", line 329, in run
    testMethod()
  File "/workspace/ros/ws_rtmros_common/src/rtmros_common/hrpsys_ros_bridge/test/test-pa10.py", line 71, in test_follow_joint_trajectory_action
    self.impl_test_joint_trajectory_action(larm, FollowJointTrajectoryGoal())
  File "/workspace/ros/ws_rtmros_common/src/rtmros_common/hrpsys_ros_bridge/test/test-pa10.py", line 111, in impl_test_joint_trajectory_action
    self.assertAlmostEqual(mid_feedback.desired.time_from_start.to_sec(), 2.5, delta=1)
  File "/usr/lib/python2.7/unittest/case.py", line 561, in assertAlmostEqual
    raise self.failureException(msg)
<testsuite errors="0" failures="1" name="unittest.suite.TestSuite" tests="7" time="23.612"><testcase classname="__main__.TestSampleRobot" name="test_follow_joint_angles" time="5.4048"><failure type="AssertionError">0.0 != 2.5 within 1 delta
  File "/usr/lib/python2.7/unittest/case.py", line 329, in run
    testMethod()
  File "/workspace/ros/ws_rtmros_common/src/rtmros_common/hrpsys_ros_bridge/test/test-samplerobot.py", line 173, in test_follow_joint_angles
    self.impl_test_joint_angles(larm, FollowJointTrajectoryGoal())
  File "/workspace/ros/ws_rtmros_common/src/rtmros_common/hrpsys_ros_bridge/test/test-samplerobot.py", line 132, in impl_test_joint_angles
    self.assertAlmostEqual(mid_feedback.desired.time_from_start.to_sec(), 2.5, delta=1)
  File "/usr/lib/python2.7/unittest/case.py", line 561, in assertAlmostEqual
    raise self.failureException(msg)

(from USE_JENKINS=true ROS_DISTRO=kinetic USE_DEB=true)

@k-okada k-okada merged commit 5aa0009 into start-jsk:master Dec 12, 2019
@pazeshun pazeshun deleted the test-feedback branch December 12, 2019 06:58
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