You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: course/manipulation/custom_functions.rst
+13-12Lines changed: 13 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,27 +2,28 @@ Picking up a Basket
2
2
===================
3
3
4
4
Now that we've covered how to move the XRP arm to specific angles, we can start to think about how to use the arm
5
-
to pick up objects. In this section, we'll cover how to use the arm to pick up a basket used for your final project.
5
+
to pick up objects. In this section, we'll cover how to use the arm to pick up a basket which is one of the challenges for your final project described in detail in the next module.
6
6
7
7
The Process
8
8
-----------
9
9
10
-
Let's first think about what the process of picking up a basket would look like.
10
+
Let's first think about what the process of picking up a basket would look like. Imagine the a small paper
11
+
cup with a bail attached over the top to that you can hook with the servo arm. An example of a basket is
12
+
shown in the video below.
11
13
12
-
First, we can assume that the robot is right in front of the basket. We can also assume that the basket is on the ground,
13
-
and that the robot is able to move its arm to a position where it can reach the basket.
14
+
An example of the steps required to aquire the basket are:
14
15
15
-
Then, we can back up until the robot is a safe distance away from the basket. We can then move the arm down until the arm is at the right height.
16
16
17
-
Finally, we can move the arm forward until the basket is in the robot's grasp and then raise the arm back up to gain control of the basket.
17
+
#. Lower the arm to a height where it will be inside the bail.
18
+
#. Back up the robot so that the arm goes inside the bail.
19
+
#. Raise the arm to lift the bucket off the ground.
20
+
#. Drive away carying the bucket.
18
21
22
+
Now the robot can drive away while carrying the basket.
19
23
20
-
.. admonition:: Try it out
24
+
Try placing your robot in front of a basket and then writing a program to pick it up as shown in the
25
+
following video.
21
26
22
-
Try placing your robot in front of a basket and then writing a program to pick up the basket.
23
-
24
-
25
-
Here is a video of the robot picking up a basket:
26
27
27
28
.. image::
28
29
RobotGrab.gif
@@ -33,4 +34,4 @@ Integrating Locating and Pickup
33
34
34
35
Now that we've covered how to pick up a basket, we can start to think about how to integrate this with code that we have previously written to locate a nearby object.
35
36
36
-
To do this, you will essentially re-use the code that you have written to how execute the pickup process when the robot is in front of the basket.
37
+
To do this, you will re-use the code that you have written to how execute the pickup process when the robot is in front of the basket.
0 commit comments