Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
hello-fazil committed Aug 21, 2024
1 parent aa4993c commit d42bd2e
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions body/test/robot_tests/test_robot_home_stow.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,8 @@ def test_robot_home(self):

if self.robot.params['tool'] == 'eoa_wrist_dw3_tool_sg3':
home_poses['wrist_yaw'] = 0
home_poses['wrist_roll'] = self.bringup_test.robot_params[self.robot.params['tool']]['stow']['wrist_roll']
home_poses['wrist_pitch'] = self.bringup_test.robot_params[self.robot.params['tool']]['stow']['wrist_pitch']
home_poses['wrist_roll'] = self.robot.params['stow']['wrist_roll']
home_poses['wrist_pitch'] = self.robot.params['stow']['wrist_pitch']
home_poses['stretch_gripper'] = 0

if self.robot.params['tool'] == 'tool_stretch_gripper':
Expand All @@ -106,10 +106,9 @@ def test_robot_home(self):

if self.robot.params['tool'] == 'eoa_wrist_dw3_tool_nil':
home_poses['wrist_yaw'] = 0
home_poses['wrist_roll'] = self.bringup_test.robot_params[self.robot.params['tool']]['stow']['wrist_roll']
home_poses['wrist_pitch'] = self.bringup_test.robot_params[self.robot.params['tool']]['stow']['wrist_pitch']
home_poses['wrist_roll'] = self.robot.params['stow']['wrist_roll']
home_poses['wrist_pitch'] = self.robot.params['stow']['wrist_pitch']

self.bringup_test.log_params('home_poses', home_poses)
self.check_joint_poses(home_poses, 'Homing')

def test_robot_stow(self):
Expand Down Expand Up @@ -150,7 +149,6 @@ def test_robot_stow(self):
stow_poses['wrist_roll'] = self.robot.get_stow_pos('wrist_roll')
stow_poses['wrist_pitch'] = self.robot.get_stow_pos('wrist_pitch')

self.bringup_test.log_params('stow_poses', stow_poses)
self.check_joint_poses(stow_poses, 'Stowing')


Expand Down

0 comments on commit d42bd2e

Please sign in to comment.