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.

31 lines
1.5 KiB

  1. ## Changing the Tool
  2. If you wish to remove the default gripper and add a different tool, you will typically edit /stretch_description/urdf/stretch_description.xacro. Specifically, you will replace the following line to include the XACRO for the new tool and then follow directions within stretch_ros/stretch_calibration to generate a new calibrated URDF file (stretch.urdf) that includes the new tool.
  3. `<xacro:include filename="stretch_gripper.xacro" />`
  4. As an example, we provide the `stretch_dry_erase_marker.xacro` file and its dependent mesh files with stretch_ros.
  5. Some of the tools found in the [Stretch Body Tool Share](https://github.com/hello-robot/stretch_tool_share/) include URDF data. To integrate these tools into the URDF for your Stretch
  6. ```{.bash .shell-prompt}
  7. cd ~/repos
  8. git clone https://github.com/hello-robot/stretch_tool_share
  9. cd stretch_tool_share/<tool name>
  10. cp stretch_description/urdf/* ~/catkin_ws/src/stretch_ros/stretch_description/urdf/
  11. cp stretch_description/meshes/* ~/catkin_ws/src/stretch_ros/stretch_description/meshes/
  12. ```
  13. Next add the XACRO file for the particular tool to `/stretch_description/urdf/stretch_description.xacro`. Then you can generate and preview the uncalibrated URDF:
  14. ```{.bash .shell-prompt}
  15. cd ~/catkin_ws/src/stretch_ros/stretch_description/urdf
  16. cp stretch.urdf stretch.urdf.bak
  17. rosrun stretch_calibration update_urdf_after_xacro_change.sh
  18. ```
  19. Now visualize the new tool
  20. ```{.bash .shell-prompt}
  21. roslaunch stretch_calibration simple_test_head_calibration.launch
  22. ```