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.

234 lines
9.6 KiB

2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
1 year ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
  1. # Stretch 2: Quick Start Guide
  2. Congratulations on your Stretch 2! This guide will get you started with your new robot.
  3. ## Safety
  4. Stretch has the potential to cause harm if not properly used. All users should review the [Stretch Safety Guide](./safety_guide.md) before operating the robot.
  5. ## Unboxing
  6. Please watch the [Stretch Unboxing Video](https://youtu.be/O-6VrqqGlig). Please note that the unboxing instructions for a Stretch 2 are the same as for a Stretch RE1.
  7. ## Robot Tour
  8. A few items you'll want to know about before getting started.
  9. ### Power
  10. The entire robot powers up and down with the On/Off switch. When powering down, we recommend selecting 'Power Off' from the Ubuntu Desktop prior to hitting the Off switch
  11. ![](./images/trunk_re2_rs2.png)
  12. ### Runstop
  13. The illuminated button on the head is its Runstop. Just tap it, you'll hear a beep and it will start flashing. This will pause the motion of the primary robot joints during operation. This can be useful if the robot makes an unsafe motion, or if you just want to free up the robot motors while you roll it around.
  14. To allow motion once again, hold the button down for two seconds. After the beep, the motion can resume.
  15. ![](./images/runstop_rs.png)
  16. ### LED Lightbar
  17. The LED lightbar in the base provides a simple way to quickly ascertain the robot's state. At all times its color indicates the battery voltage.
  18. ![](./images/lightbar_voltage.png)
  19. More information on the voltage display is available in the [Battery Maintenance Guide](https://docs.hello-robot.com/0.2/stretch-hardware-guides/docs/battery_maintenance_guide_re2/#state-of-battery-charge)
  20. The lightbar will also flash as follows:
  21. | Mode | Flashing |
  22. |--------------------|-----------------------|
  23. | Normal Operation | None |
  24. | Runstopped | Rapid flash at 1 Hz |
  25. | Charger plugged in | Slow strobe at 0.5 Hz |
  26. ## Hello World Demo
  27. Stretch comes ready to run out of the box. The Xbox Teleoperation demo will let you quickly test out the robot's capabilities by teleoperating it with an Xbox Controller.
  28. ![](./images/xbox.png)
  29. **Note**: You will find the USB Dongle already plugged into the USB port of the base trunk.
  30. To start the demo after unboxing and turning the power on:
  31. * Wait for about 45 seconds. You will hear the Ubuntu startup sound, followed by two beeps (indicating the demo is running).
  32. * Hit the Connect button on the controller. The upper two LEDs of the ring will illuminate.
  33. * Hit the Home Robot button. Stretch will go through its homing calibration routine.
  34. * **Note**: make sure the space around the robot is clear before running the Home function
  35. You're ready to go! A few things to try:
  36. * Hit the Stow Robot button. The robot will assume the stow pose.
  37. * Practice driving the robot around.
  38. * Pull the Fast Base trigger while driving. When stowed, it will make Stretch drive faster
  39. * Manually stop the arm or lift from moving to make it stop upon contact.
  40. * Try picking up your cellphone from the floor
  41. * Try grasping a cup from a countertop
  42. * Try delivering an object to a person
  43. If you're done, let's power down. First, attach the clip-clamp just below the shoulder as shown.
  44. ![](./images/clip-clamp_rs.png)
  45. Hold down the Shutdown PC button on the Xbox controller for 2 seconds. This will cause the PC to turn off. You can then power down the robot with the On/Off switch.
  46. Now that you're familiar with the robot, take a minute to watch the [Stretch Powered Best Practices Video](https://youtu.be/iEaapHNfEWA). Please note that the best practice instructions for a Stretch 2 are the same as for a Stretch RE1.
  47. ### Safe Handling
  48. Like any robot, it is possible to break Stretch if you're not careful. Use common sense when applying forces to its joints, transporting it, etc.
  49. The [Stretch Unpowered Best Practices Video](https://youtu.be/mQdOGEksdYM) provides a quick overview of how to work with the robot. Please note that the best practice instructions for a Stretch 2 are the same as for a Stretch RE1.
  50. **Things that won't hurt the robot**:
  51. * Manually push and pull the arm (when the motor isn't holding a position).
  52. * Manually raise and lower the lift (when the motor isn't holding a position).
  53. * Manually tilt and roll the base around (when the motors aren't holding a position).
  54. * Pick up and carry Stretch (while holding it by the mast, two people for safety).
  55. **Things to be mindful of**:
  56. * Manually moving the head and wrist. They will move but they want to go at their own speed.
  57. * The lift will slowly descend when the robot is powered off. If the arm is retracted it may come to rest the tool on the base. If desired to hold the arm up when un-powered, the provided 'clip-clamp' can be clipped onto the mast below the shoulder to support it.
  58. **Things that can hurt the robot**:
  59. * Driving the wrist and gripper into the base. When the arm and wrist are stowed it is possible to collide the two.
  60. * Getting the gripper stuck on something and then driving the arm, lift, or base.
  61. * Laying the robot down with its weight on its camera.
  62. * Trying to ride on the robot, getting it wet, etc. (eg, common sense)
  63. ### Charging the Battery
  64. The provided battery charger can be plugged and unplugged at any time during operation. Stretch uses the following charger modes:
  65. | Mode | Function |
  66. | ------- | ------------------------------------------------------------ |
  67. | STANDBY | Charger not charging the robot |
  68. | 12V AGM | Charging while robot is powered down |
  69. | SUPPLY | 1) Power the robot during tethered use<br/>2) Repair damaged batteries. |
  70. | REPAIR | Repair damaged batteries. |
  71. Please review the [Battery Maintenance Guide](https://docs.hello-robot.com/0.2/stretch-hardware-guides/docs/battery_maintenance_guide_re2/) for proper care and charging of Stretch batteries.
  72. ![](./images/NOCO_Genius10_UI_rs.png)
  73. ## Get Plugged In
  74. Let's get plugged in.
  75. * Power up the robot
  76. * Plug in a mouse, keyboard and HDMI monitor to the robot trunk
  77. * Plug in the battery charger
  78. * Place the charger in SUPPLY mode
  79. Log in to the robot computer. The default user credentials came in the box with the robot.
  80. ## Start Coding
  81. Python is the easiest way to begin writing code for the robot. This section will give you a quick look at Stretch Body, which is the low-level Python interface to the robot. Detailed information on the [Stretch Body Interface](../stretch_body/README.md) can be found here.
  82. Stretch is configured to run the Xbox Controller demo in the background at startup. To run your own code you'll need to kill this process so that it doesn't contend with your code.
  83. ```{.bash .shell-prompt}
  84. pkill -f stretch_xbox*
  85. ```
  86. While you're at it, disable this autoboot feature. You can always turn it back on later.
  87. Search for 'Startup' from Ubuntu Activities. Uncheck the box for 'hello_robot_xbox_teleop'
  88. ![](./images/xbox_off_rs.png)
  89. Now open up a Terminal. From the command line, first, verify that all of the hardware is present and happy
  90. ```{.bash .shell-prompt}
  91. stretch_robot_system_check.py
  92. ```
  93. You may see a few joints reported in red because they haven't yet been calibrated. If so, home the robot
  94. ```{.bash .shell-prompt}
  95. stretch_robot_home.py
  96. ```
  97. Once the robot has homed, let's write some quick test code:
  98. ```{.bash .shell-prompt}
  99. ipython
  100. ```
  101. Now let's move the robot around using the [Stretch Body Robot API](https://docs.hello-robot.com/0.2/stretch-tutorials/stretch_body/tutorial_stretch_body_api/). Try typing in these interactive commands in the iPython prompt:
  102. ```{.python .no-copy}
  103. import stretch_body.robot
  104. robot=stretch_body.robot.Robot()
  105. robot.startup()
  106. robot.stow()
  107. robot.arm.move_to(0.25)
  108. robot.push_command()
  109. robot.arm.move_to(0.0)
  110. robot.push_command()
  111. robot.lift.move_to(0.4)
  112. robot.push_command()
  113. robot.pretty_print()
  114. robot.lift.pretty_print()
  115. robot.head.pose('tool')
  116. robot.head.pose('ahead')
  117. robot.end_of_arm.move_to('wrist_yaw',0)
  118. robot.end_of_arm.move_to('stretch_gripper',50)
  119. robot.end_of_arm.move_to('stretch_gripper',-50)
  120. robot.stow()
  121. robot.stop()
  122. ```
  123. ## Change Credentials
  124. Finally, we recommend that you change the login credentials for the default user, hello-robot.
  125. ```{.bash .shell-prompt}
  126. sudo passwd hello-robot
  127. ```
  128. If you'd like to set up a new user account, check out the [Stretch Installation Guide](https://github.com/hello-robot/stretch_install/blob/master/README.md). In a lab setting, it's useful for lab members to have their own user accounts to run experiments.
  129. ## Power Down
  130. The recommended power-down procedure is
  131. 1. Place a clamp on the mast below the shoulder to prevent a slow drop (if this is a concern)
  132. 2. Shutdown the computer from the Desktop
  133. 3. When the laser range finder has stopped spinning, turn off the main power switch
  134. 4. Attach the charger
  135. 5. Place the charger in 12V AGM mode
  136. ## Join the Community Forum
  137. Join the [Hello Robot Community](https://forum.hello-robot.com). We'd welcome hearing your feedback as you get to know your robot.
  138. Hello Robot support monitors the forum closely and will quickly get back to you on any questions or issues you post.
  139. ## Further Exploration
  140. Encounter any issues while getting started? Please let us know at support@hello-robot.com. Also, take a minute to review the [Stretch Troubleshooting Guide](./troubleshooting_guide.md)
  141. We recommend next exploring the ROS-based demos that ship with Stretch. These [are found in the stretch_ros repository](https://docs.hello-robot.com/0.2/stretch-ros/stretch_demos/).
  142. That's it. Happy coding!
  143. ------
  144. <div align="center"> All materials are Copyright 2022 by Hello Robot Inc. Hello Robot and Stretch are registered trademarks.</div>