Skip to content

Commit

Permalink
Relax send time in test
Browse files Browse the repository at this point in the history
  • Loading branch information
iory committed Nov 1, 2024
1 parent 9a6bb4c commit 0db3535
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ros/kxr_controller/test/test_kxr_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@ def setUp(self):

def test_follow_joint_trajectory(self):
self.ri.servo_on()
self.ri.angle_vector(self.robot_model.init_pose(), 1.0)
self.ri.angle_vector(self.robot_model.init_pose(), 3.0)
self.ri.wait_interpolation()
self.robot_model.HEAD_JOINT0.joint_angle(np.deg2rad(45))
self.robot_model.HEAD_JOINT1.joint_angle(np.deg2rad(45))
self.ri.angle_vector(self.robot_model.angle_vector(), 1.0)
self.ri.angle_vector(self.robot_model.angle_vector(), 3.0)
self.ri.wait_interpolation()
rospy.sleep(1.0)
current_angles = self.ri.angle_vector()
Expand All @@ -43,7 +43,7 @@ def test_follow_joint_trajectory(self):
+ f"Current angles = {current_angles}, "
+ f"Expected angles = {expected_angles}",
)
self.ri.angle_vector(self.robot_model.init_pose(), 1.0)
self.ri.angle_vector(self.robot_model.init_pose(), 3.0)
self.ri.wait_interpolation()
self.ri.servo_off()

Expand Down

0 comments on commit 0db3535

Please sign in to comment.