diff --git a/example_2.md b/example_2.md index 9e0628e..d5234dd 100644 --- a/example_2.md +++ b/example_2.md @@ -60,7 +60,7 @@ python3 scan_filter.py Then run the following command to bring up a simple RViz configuration of the Stretch robot. ```bash -# Terminal 5 +# Terminal 4 rosrun rviz rviz -d `rospack find stretch_core`/rviz/stretch_simple_test.rviz ``` Change the topic name from the LaserScan display from */scan* to */filter_scan*. diff --git a/example_3.md b/example_3.md index 7a03c52..9cc1e6b 100644 --- a/example_3.md +++ b/example_3.md @@ -2,21 +2,21 @@ The aim of example 3 is to combine the two previous examples and have Stretch utilize its laser scan data to avoid collision with objects as it drives forward. -Begin by running `roscore` in a terminal. Then set the ros parameter to *manipulation* mode by running the following commands in a new terminal. +Begin by running `roscore` in a terminal. Then set the ros parameter to *navigation* mode by running the following commands in a new terminal. ```bash -# Terminal 1 -rosparam set /stretch_driver/mode "manipulation" +# Terminal 2 +rosparam set /stretch_driver/mode "navigation" roslaunch stretch_core stretch_driver.launch ``` Then in a new terminal type the following to activate the LiDAR sensor. ```bash -# Terminal 2 +# Terminal 3 roslaunch stretch_core rplidar.launch ``` To activate the avoider node, type the following in a new terminal. ```bash -# Terminal 3 +# Terminal 4 cd catkin_ws/src/stretch_ros_tutorials/src/ python3 avoider.py ``` diff --git a/src/multipoint_command.py b/src/multipoint_command.py index 7bea38f..b56fa23 100755 --- a/src/multipoint_command.py +++ b/src/multipoint_command.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python3 +#!/usr/bin/env python # Every python controller needs these lines import rospy diff --git a/src/stow_command.py b/src/stow_command.py index 57250cf..3372b98 100755 --- a/src/stow_command.py +++ b/src/stow_command.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python3 +#!/usr/bin/env python # Every python controller needs these lines import rospy