You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

105 lines
5.4 KiB

1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
  1. # Dex to Standard Wrist
  2. This tutorial will guide you through the steps of replacing a gripper with a Dex Wrist (3-DoF) for one with a Standard Wrist (1-DoF).
  3. ## Parts and Tools Required
  4. Please note that this procedure does not require any additional parts or tools apart from the ones that were shipped with the robot:
  5. - 8 [M2x6mm Torx FHCS bolts](https://www.mcmaster.com/90236A104/)
  6. - 4 [M2.5x4mm Torx FHCS bolts](https://www.mcmaster.com/92703A448/)
  7. - 2 [M2.5x8mm SHCS bolts](https://www.mcmaster.com/91290A102/)
  8. - T6 Torx wrench
  9. - T8 Torx wrench
  10. - 2mm Hex key
  11. ## Removing Dex Wrist Gripper
  12. Here we describe removing the Dex Wrist gripper. Please ensure that the robot is turned off before proceeding.
  13. First, inspect the parts and ensure that you have everything you need for the procedure.
  14. ![Dex Wrist](https://raw.githubusercontent.com/hello-robot/stretch_hardware_guides/master/docs/images/dex_wrist_cable_detail.png)
  15. Now, remove the cable clip by unscrewing the M2.5x8mm bolts and then unplug the Dynamixel cable out of the wrist pitch servo (pink).
  16. ![Remove the cable](https://raw.githubusercontent.com/hello-robot/stretch_hardware_guides/master/docs/images/dex_wrist_cable_route_rs.png)
  17. Next, rotate the wrist yaw joint so that the wrist pitch servo body is accessible. Detach the pitch servo from the mounting bracket by unscrewing the four M2.5x4mm screws (C) with the T8 Torx wrench.
  18. ![Remove screws](https://raw.githubusercontent.com/hello-robot/stretch_hardware_guides/master/docs/images/dex_wrist_pitch_bracket_attach_rs.png)
  19. Slide the wrist module out horizontally so that the bearing unmates from its post.
  20. ![Remove mating](https://raw.githubusercontent.com/hello-robot/stretch_hardware_guides/master/docs/images/dex_wrist_roll_install2_rs.png)
  21. Then, lower the wrist module vertically away from the mounting bracket.
  22. ![Remove from mounting bracket](https://raw.githubusercontent.com/hello-robot/stretch_hardware_guides/master/docs/images/dex_wrist_roll_install_rs.png)
  23. Lastly, detach the wrist mount bracket (A) from the bottom of the tool plate by removing the M2x6mm bolts (B) using a T6 Torx wrench.
  24. ![Remove tool plate](https://raw.githubusercontent.com/hello-robot/stretch_hardware_guides/master/docs/images/dex_wrist_bracket_install_rs.png)
  25. ## Attaching Standard Wrist Gripper
  26. Here we describe attaching the Standard Wrist gripper.
  27. First, note where the forward direction is on the wrist yaw tool plate. This is indicated by the additional alignment hole that is just outside the bolt pattern shown pointing down in the image.
  28. ![Alignment hole](https://raw.githubusercontent.com/hello-robot/stretch_hardware_guides/master/docs/images/dex_wrist_C_rs.png)
  29. Then, route the Dynamixel cable through the center of the standard gripper mounting bracket and install the bracket with the eight screws and T6 Torx wrench. Make sure the forward marking on the bracket matches the forward marking on the wrist yaw.
  30. ![image alt text](https://raw.githubusercontent.com/hello-robot/stretch_hardware_guides/master/docs/images/re2/gripper_mount_a_rs.png)
  31. Now, affix the four screws, with the shorter two going to the servo side, to hold the gripper to the bracket. Lastly, route the Dynamixel cable through the back of the gripper and plug it securely into the servo.
  32. ![image alt text](https://raw.githubusercontent.com/hello-robot/stretch_hardware_guides/master/docs/images/re2/gripper_mount_b_rs.png)
  33. ## Software Instructions
  34. Once the hardware has been replaced, it's time to make the software changes for Stretch to recognize the Standart Wrist gripper. Turn on the robot and follow the instructions below.
  35. To revert the changes in stretch_configuration_params.yaml, first download the [dex_to_standard_configure_params.py script](https://github.com/hello-robot/stretch_tutorials/blob/master/stretch_tool_share/dex_to_standard_configure_params.py) using:
  36. ```{. bash .shell-prompt}
  37. cd ~/Desktop
  38. wget https://raw.githubusercontent.com/hello-robot/stretch_tutorials/master/stretch_tool_share/dex_to_standard_configure_params.py
  39. ```
  40. Then, change execution permissions and execute it in a terminal as below:
  41. ```{.bash .shell-prompt}
  42. chmod +x dex_to_standard_configure_params.py
  43. python3 dex_to_standard_configure_params.py
  44. ```
  45. Ensure that the changes were written correctly to stretch_params:
  46. ```{.bash .shell-prompt}
  47. stretch_params.py | grep robot.tool
  48. ```
  49. This should return the tool as `tool_stretch_gripper`.
  50. Next, to ensure the correct gripper is recognized by ROS, we need to update the URDF. For this, first open the stretch_description.xacro file like below.
  51. ```{.bash .shell-prompt}
  52. cd ~/catkin_ws/src/stretch_ros/stretch_description/urdf
  53. gedit stretch_description.xacro
  54. ```
  55. Then, replace the contents of the file with that of the default [stretch_description.xacro](https://github.com/hello-robot/stretch_ros/blob/master/stretch_description/urdf/stretch_description.xacro) by copying and pasting the contents from the file in the link to the open file.
  56. Lastly, to generate the updated URDF, execute the following commands in a terminal.
  57. ```{.bash .shell-prompt}
  58. rosrun stretch_calibration update_urdf_after_xacro_change.sh
  59. cd ~/catkin_ws/src/stretch_ros/stretch_description/urdf
  60. ./export_urdf.sh
  61. ```
  62. You can ensure that the gripper is functional by homing the Dynamixel servos with the following commands:
  63. ```{.bash .shell-prompt}
  64. stretch_gripper_home.py
  65. ```
  66. ```{.bash .shell-prompt}
  67. stretch_wrist_yaw_home.py
  68. ```
  69. If you encounter any issues, please contact support.