Skip to content

Commit d9124d4

Browse files
Added an example to the Trajectory Control docs (#33)
* Added an example to the Trajectory Control docs This resolves hello-robot/hello-robot.github.io#6 and hello-robot/hello-robot.github.io#12 * Added an example to the Trajectory Control docs * Removed the "WIP" note * Changed to position mode in the example ros2 run commands
1 parent e7a0b6d commit d9124d4

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

mkdocs_rt.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ nav:
101101
- Perception: ./perception.md
102102
- Examples:
103103
- Move Stretch with Twist Controller: ./example_1.md
104+
- Trajectory Control: ./follow_joint_trajectory.md
104105
- Obstacle Avoidance: ./obstacle_avoider.md
105106
- Collision Avoidance: ./example_3.md
106107
- Rviz Markers: ./example_4.md

ros2/follow_joint_trajectory.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
## FollowJointTrajectory Commands
2-
!!! note
3-
ROS 2 tutorials are still under active development. For this exercise you'll need to have Ubuntu 22.04 and ROS Iron for it to work completly.
42

53
Stretch driver offers a [`FollowJointTrajectory`](http://docs.ros.org/en/api/control_msgs/html/action/FollowJointTrajectory.html) action service for its arm. Within this tutorial, we will have a simple FollowJointTrajectory command sent to a Stretch robot to execute.
64

@@ -13,9 +11,11 @@ Stretch driver offers a [`FollowJointTrajectory`](http://docs.ros.org/en/api/con
1311
Begin by launching stretch_driver in a terminal.
1412

1513
```{.bash .shell-prompt}
16-
ros2 launch stretch_core stretch_driver.launch.py mode:=trajectory
14+
ros2 launch stretch_core stretch_driver.launch.py mode:=position
1715
```
1816

17+
> Note: `mode:=position` uses a trapezoidal motion profile. For advanced control, you may use `mode:=trajectory`.
18+
1919
In a new terminal type the following commands.
2020

2121
```{.bash .shell-prompt}
@@ -182,9 +182,13 @@ To make the script executable call the main() function like above.
182182
If you have killed the above instance of stretch_driver relaunch it again through the terminal.
183183

184184
```{.bash .shell-prompt}
185-
ros2 launch stretch_core stretch_driver.launch.py mode:=trajectory
185+
ros2 launch stretch_core stretch_driver.launch.py mode:=position
186186
```
187187

188+
> Note: `mode:=position` uses a trapezoidal motion profile. For advanced control, you may use `mode:=trajectory`.
189+
190+
191+
188192
In a new terminal type the following commands.
189193

190194
```{.bash .shell-prompt}

0 commit comments

Comments
 (0)