Skip to content

Commit

Permalink
Activate the absolute position test in the driver
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanscherzinger committed Aug 5, 2024
1 parent 90dce50 commit 8640deb
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions schunk_egu_egk_gripper_tests/test/test_functionality.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,17 +29,18 @@ def test_driver_is_ready_after_acknowledge(launch_context, isolated, gripper_dum


@pytest.mark.launch(fixture=launch_description)
@pytest.mark.skip()
def test_driver_moves_to_absolute_position(launch_context, isolated, gripper_dummy):
node = Node("move_test")
# activate_srv = node.create_client(Acknowledge, "/acknowledge")
# future = activate_srv.call_async(Acknowledge.Request())
# rclpy.spin_until_future_complete(node, future)

client = ActionClient(node, MoveToAbsolutePosition, "/move_to_absolute_position")
client.wait_for_server()
goal = MoveToAbsolutePosition.Goal()
future = client.send_goal_async(goal)
rclpy.spin_until_future_complete(node, future)
print("done :)")
assert False

goal_future = client.send_goal_async(goal)
rclpy.spin_until_future_complete(node, goal_future)
goal_handle = goal_future.result()

result_future = goal_handle.get_result_async()
rclpy.spin_until_future_complete(node, result_future)
result = result_future.result().result
assert result.position_reached

0 comments on commit 8640deb

Please sign in to comment.