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 for joint trajectory action cancel and overwrite #1070

Merged
merged 6 commits into from
Dec 18, 2019

Conversation

pazeshun
Copy link
Collaborator

@pazeshun pazeshun commented Oct 25, 2019

For k-okada#10 (comment)
Test part of #1071
Travis test of this PR should be failed.

@pazeshun
Copy link
Collaborator Author

This PR tests the following three points against PA10 and samplerobot:

Test failures are fixed with the commits of #765.
So I created #1071, which also includes k-okada#10 fixing an issue specifically critical for HIRONX.

@pazeshun
Copy link
Collaborator Author

Travis test correctly failed:

  <testcase classname="__main__.TestPA10Robot" name="test_jta_cancel_goal" time="10.9525">
    <failure type="AssertionError">0.36908914153100636 != 0 within 0.1 delta
  File "/usr/lib/python2.7/unittest/case.py", line 327, in run
    testMethod()
  File "/workspace/ros/ws_rtmros_common/src/rtmros_common/hrpsys_ros_bridge/test/test-pa10.py", line 163, in test_jta_cancel_goal
    self.impl_test_jta_cancel_goal(larm, JointTrajectoryGoal())
  File "/workspace/ros/ws_rtmros_common/src/rtmros_common/hrpsys_ros_bridge/test/test-pa10.py", line 187, in impl_test_jta_cancel_goal
    self.jta_cancel_goal_template(larm, goal, [point1])
  File "/workspace/ros/ws_rtmros_common/src/rtmros_common/hrpsys_ros_bridge/test/test-pa10.py", line 209, in jta_cancel_goal_template
    self.assertAlmostEqual(linalg.norm(array(trans1)-array(trans2)), 0, delta=0.1)
  File "/usr/lib/python2.7/unittest/case.py", line 559, in assertAlmostEqual
    raise self.failureException(msg)
    </failure>
  </testcase>
  <testcase classname="__main__.TestPA10Robot" name="test_jta_overwrite_goal" time="18.5075">
    <failure type="AssertionError">0.71282626947711192 != 0 within 0.1 delta
  File "/usr/lib/python2.7/unittest/case.py", line 327, in run
    testMethod()
  File "/workspace/ros/ws_rtmros_common/src/rtmros_common/hrpsys_ros_bridge/test/test-pa10.py", line 218, in test_jta_overwrite_goal
    self.impl_test_jta_overwrite_goal(larm, JointTrajectoryGoal())
  File "/workspace/ros/ws_rtmros_common/src/rtmros_common/hrpsys_ros_bridge/test/test-pa10.py", line 266, in impl_test_jta_overwrite_goal
    self.jta_overwrite_goal_template(larm, goal, trans1, [point1], [point2, point3])
  File "/workspace/ros/ws_rtmros_common/src/rtmros_common/hrpsys_ros_bridge/test/test-pa10.py", line 325, in jta_overwrite_goal_template
    self.assertAlmostEqual(linalg.norm(array(trans1)-array(trans2)), 0, delta=0.1)
  File "/usr/lib/python2.7/unittest/case.py", line 559, in assertAlmostEqual
    raise self.failureException(msg)
    </failure>
  </testcase>
  <testcase classname="__main__.TestSampleRobot" name="test_jta_cancel_goal" time="10.0140">
    <failure type="AssertionError">0.12036482272553561 != 0 within 0.1 delta
  File "/usr/lib/python2.7/unittest/case.py", line 327, in run
    testMethod()
  File "/workspace/ros/ws_rtmros_common/src/rtmros_common/hrpsys_ros_bridge/test/test-samplerobot.py", line 258, in test_jta_cancel_goal
    self.impl_test_jta_cancel_goal(larm, JointTrajectoryGoal())
  File "/workspace/ros/ws_rtmros_common/src/rtmros_common/hrpsys_ros_bridge/test/test-samplerobot.py", line 291, in impl_test_jta_cancel_goal
    self.jta_cancel_goal_template(larm, goal, [point1])
  File "/workspace/ros/ws_rtmros_common/src/rtmros_common/hrpsys_ros_bridge/test/test-samplerobot.py", line 313, in jta_cancel_goal_template
    self.assertAlmostEqual(linalg.norm(array(trans1)-array(trans2)), 0, delta=0.1)
  File "/usr/lib/python2.7/unittest/case.py", line 559, in assertAlmostEqual
    raise self.failureException(msg)
    </failure>
  </testcase>

(from USE_JENKINS=true ROS_DISTRO=hydro USE_DEB=false NOT_TEST_INSTALL=true)

@k-okada k-okada merged commit d51fcac into start-jsk:master Dec 18, 2019
@pazeshun pazeshun deleted the test-cancel-overwrite branch December 18, 2019 05:52
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