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 32c3d56 commit b5c9b8a
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 14 deletions.
1 change: 0 additions & 1 deletion .github/workflows/build_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,4 @@ jobs:
run: |
export HELLO_FLEET_PATH=/home/hello-robot/stretch_user
export HELLO_FLEET_ID=stretch-se3-3002
sudo chown -R hello-robot:hello-robot /dev/
pytest-3 body/test/robot_tests/test_robot_home_stow.py
26 changes: 13 additions & 13 deletions body/test/robot_tests/test_robot_home_stow.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,27 +127,27 @@ def test_robot_stow(self):


if self.robot.params['tool'] == 'tool_stretch_dex_wrist':
stow_poses['wrist_yaw'] = self.robot.get_stow_pos('wrist_yaw')
stow_poses['wrist_roll'] = self.robot.get_stow_pos('wrist_roll')
stow_poses['wrist_pitch'] = self.robot.get_stow_pos('wrist_pitch')
stow_poses['stretch_gripper'] = self.robot.get_stow_pos('stretch_gripper')
stow_poses['wrist_yaw'] = self.robot.end_of_arm.params['stow']['wrist_yaw']
stow_poses['wrist_roll'] = self.robot.end_of_arm.params['stow']['wrist_roll']
stow_poses['wrist_pitch'] = self.robot.end_of_arm.params['stow']['wrist_pitch']
stow_poses['stretch_gripper'] = self.robot.end_of_arm.params['stow']['stretch_gripper']


if self.robot.params['tool'] == 'eoa_wrist_dw3_tool_sg3':
stow_poses['wrist_yaw'] = self.robot.get_stow_pos('wrist_yaw')
stow_poses['wrist_roll'] = self.robot.get_stow_pos('wrist_roll')
stow_poses['wrist_pitch'] = self.robot.get_stow_pos('wrist_pitch')
stow_poses['stretch_gripper'] = self.robot.get_stow_pos('stretch_gripper')
stow_poses['wrist_yaw'] = self.robot.end_of_arm.params['stow']['wrist_yaw']
stow_poses['wrist_roll'] = self.robot.end_of_arm.params['stow']['wrist_roll']
stow_poses['wrist_pitch'] = self.robot.end_of_arm.params['stow']['wrist_pitch']
stow_poses['stretch_gripper'] = self.robot.end_of_arm.params['stow']['stretch_gripper']


if self.robot.params['tool'] == 'tool_stretch_gripper':
stow_poses['wrist_yaw'] = self.robot.get_stow_pos('wrist_yaw')
stow_poses['stretch_gripper'] = self.robot.get_stow_pos('stretch_gripper')
stow_poses['wrist_yaw'] = self.robot.end_of_arm.params['stow']['wrist_yaw']
stow_poses['stretch_gripper'] = self.robot.end_of_arm.params['stow']['stretch_gripper']

if self.robot.params['tool'] == 'eoa_wrist_dw3_tool_nil':
stow_poses['wrist_yaw'] = self.robot.get_stow_pos('wrist_yaw')
stow_poses['wrist_roll'] = self.robot.get_stow_pos('wrist_roll')
stow_poses['wrist_pitch'] = self.robot.get_stow_pos('wrist_pitch')
stow_poses['wrist_yaw'] = self.robot.end_of_arm.params['stow']['wrist_yaw']
stow_poses['wrist_roll'] = self.robot.end_of_arm.params['stow']['wrist_roll']
stow_poses['wrist_pitch'] = self.robot.end_of_arm.params['stow']['wrist_pitch']

self.check_joint_poses(stow_poses, 'Stowing')

Expand Down

0 comments on commit b5c9b8a

Please sign in to comment.