Skip to content

Commit

Permalink
fixed test_wiggle1 and test_wiggle4
Browse files Browse the repository at this point in the history
  • Loading branch information
ichumuh committed Sep 18, 2020
1 parent 5696ce4 commit 5a34aa0
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions test/test_integration_pr2.py
Original file line number Diff line number Diff line change
Expand Up @@ -1361,9 +1361,16 @@ def test_wiggle1(self, kitchen_setup):
[0, 0, 1, 0],
[0, 0, 0, 1]]))

kitchen_setup.set_cart_goal(l_goal, kitchen_setup.l_tip)
kitchen_setup.set_cart_goal(r_goal, kitchen_setup.r_tip)
kitchen_setup.set_cart_goal(l_goal, kitchen_setup.l_tip, weight=WEIGHT_BELOW_CA)
kitchen_setup.set_cart_goal(r_goal, kitchen_setup.r_tip, weight=WEIGHT_BELOW_CA)
# kitchen_setup.allow_collision([], tray_name, [])
# kitchen_setup.allow_all_collisions()
kitchen_setup.add_json_goal(u'CartesianVelocityLimit',
root_link=kitchen_setup.default_root,
tip_link=u'base_footprint',
max_linear_velocity=0.1,
max_angular_velocity=0.2
)
kitchen_setup.send_and_check_goal()

def test_wiggle2(self, zero_pose):
Expand Down Expand Up @@ -1438,7 +1445,8 @@ def test_wiggle4(self, pocky_pose_setup):
p.header.frame_id = pocky_pose_setup.r_tip
p.pose.position = Point(0.1, 0, 0)
p.pose.orientation = Quaternion(0, 0, 0, 1)
pocky_pose_setup.set_and_check_cart_goal(p, pocky_pose_setup.r_tip, pocky_pose_setup.default_root)
pocky_pose_setup.set_and_check_cart_goal(p, pocky_pose_setup.r_tip, pocky_pose_setup.default_root,
expected_error_code=MoveResult.INSOLVABLE)

# box_setup.wrapper.avoid_collision()

Expand Down

0 comments on commit 5a34aa0

Please sign in to comment.