diff --git a/example_1.md b/example_1.md index 9cc2a06..2cb5503 100644 --- a/example_1.md +++ b/example_1.md @@ -18,7 +18,7 @@ Switch the mode to *navigation* mode using a rosservice call. Then drive the rob # Terminal 2 rosservice call /switch_to_navigation_mode cd catkin_ws/src/stretch_tutorials/src/ -python move.py +python3 move.py ``` To stop the node from sending twist messages, type **Ctrl** + **c**. @@ -152,7 +152,7 @@ After saving the edited node, bringup [Stretch in the empty world simulation](ga ```bash cd catkin_ws/src/stretch_tutorials/src/ -python move.py +python3 move.py ``` To stop the node from sending twist messages, type **Ctrl** + **c**. diff --git a/example_10.md b/example_10.md index c2b23c3..5d8c116 100644 --- a/example_10.md +++ b/example_10.md @@ -24,7 +24,7 @@ Then run the tf2 broadcaster node to visualize three static frames. ```bash # Terminal 3 cd catkin_ws/src/stretch_tutorials/src/ -python tf2_broadcaster.py +python3 tf2_broadcaster.py ``` The gif below visualizes what happens when running the previous node. @@ -37,7 +37,7 @@ The gif below visualizes what happens when running the previous node. ```bash # Terminal 4 cd catkin_ws/src/stretch_tutorials/src/ -python stow_command.py +python3 stow_command.py ``` @@ -214,7 +214,7 @@ Then run the tf2 broadcaster node to create the three static frames. ```bash # Terminal 2 cd catkin_ws/src/stretch_tutorials/src/ -python tf2_broadcaster.py +python3 tf2_broadcaster.py ``` Finally, run the tf2 listener node to print the transform between two links. @@ -222,7 +222,7 @@ Finally, run the tf2 listener node to print the transform between two links. ```bash # Terminal 3 cd catkin_ws/src/stretch_tutorials/src/ -python tf2_listener.py +python3 tf2_listener.py ``` Within the terminal the transform will be printed every 1 second. Below is an example of what will be printed in the terminal. There is also an image for reference of the two frames. diff --git a/example_11.md b/example_11.md index 5df4e07..c88f777 100644 --- a/example_11.md +++ b/example_11.md @@ -22,7 +22,7 @@ Then run the `PointCloud` transformer node. ```bash # Terminal 3 cd catkin_ws/src/stretch_tutorials/src/ -python pointcloud_transformer.py +python3 pointcloud_transformer.py ``` Within this tutorial package, there is an RViz config file with the `PointCloud` in the Display tree. You can visualize this topic and the robot model by running the command below in a new terminal. diff --git a/example_2.md b/example_2.md index 68457ec..5d44d01 100644 --- a/example_2.md +++ b/example_2.md @@ -55,7 +55,7 @@ To filter the lidar scans for ranges that are directly in front of Stretch (widt ```bash # Terminal 3 cd catkin_ws/src/stretch_tutorials/src/ -python scan_filter.py +python3 scan_filter.py ``` Then run the following command to bring up a simple RViz configuration of the Stretch robot. diff --git a/example_3.md b/example_3.md index de7be4f..37367a2 100644 --- a/example_3.md +++ b/example_3.md @@ -20,7 +20,7 @@ To set *navigation* mode and to activate the avoider node, type the following in # Terminal 3 rosservice call /switch_to_navigation_mode cd catkin_ws/src/stretch_tutorials/src/ -python avoider.py +python3 avoider.py ``` To stop the node from sending twist messages, type **Ctrl** + **c** in the terminal running the avoider node. diff --git a/example_4.md b/example_4.md index 5e096c1..398aa70 100644 --- a/example_4.md +++ b/example_4.md @@ -16,7 +16,7 @@ the `rviz` flag will open an RViz window to visualize a variety of ROS topics. ```bash # Terminal 2 cd catkin_ws/src/stretch_tutorials/src/ -python marker.py +python3 marker.py ``` The gif below demonstrates how to add a new *Marker* display type, and change the topic name from `visualization_marker` to `balloon`. A red sphere Marker should appear above the Stretch robot. diff --git a/example_5.md b/example_5.md index 591501b..888f663 100644 --- a/example_5.md +++ b/example_5.md @@ -15,7 +15,7 @@ You can then hit the run-stop button (you should hear a beep and the LED light i ```bash cd catkin_ws/src/stretch_tutorials/src/ -python joint_state_printer.py +python3 joint_state_printer.py ``` Your terminal will output the `position` information of the previously mentioned joints shown below. ``` diff --git a/example_6.md b/example_6.md index a4aab27..344a5f0 100644 --- a/example_6.md +++ b/example_6.md @@ -20,7 +20,7 @@ Switch the mode to *position* mode using a rosservice call. Then run the single # Terminal 2 rosservice call /switch_to_position_mode cd catkin_ws/src/stretch_tutorials/src/ -python effort_sensing.py +python3 effort_sensing.py ``` This will send a `FollowJointTrajectory` command to move Stretch's arm or head while also printing the effort of the lift. @@ -302,7 +302,7 @@ Once you have changed the file name, then run the following in a new command. ```bash cd catkin_ws/src/stretch_tutorials/src/ -python stored_data_plotter.py +python3 stored_data_plotter.py ``` diff --git a/example_7.md b/example_7.md index 117c959..cf52f8f 100644 --- a/example_7.md +++ b/example_7.md @@ -64,7 +64,7 @@ In this section, you can use a Python node to capture an image from the RealSens ```bash # Terminal 4 cd ~/catkin_ws/src/stretch_tutorials/src -python capture_image.py +python3 capture_image.py ``` An image named **camera_image.jpeg** is saved in the **stored_data** folder in this package. @@ -214,7 +214,7 @@ In this section, we highlight a node that utilizes the [Canny Edge filter](https ```bash # Terminal 4 cd ~/catkin_ws/src/stretch_tutorials/src -python edge_detection.py +python3 edge_detection.py ``` The node will publish a new Image topic named */image_edge_detection*. This can be visualized in RViz and a gif is provided below for reference. diff --git a/example_8.md b/example_8.md index cc17f2d..8683206 100644 --- a/example_8.md +++ b/example_8.md @@ -20,7 +20,7 @@ Then run the speech_text node. ```bash # Terminal 2 cd catkin_ws/src/stretch_tutorials/src/ -python speech_text.py +python3 speech_text.py ``` The ReSpeaker will be listening and will start to interpret speech and save the transcript to a text file. To stop shutdown the node, type **Ctrl** + **c** in the terminal. diff --git a/example_9.md b/example_9.md index 3e5784b..7675e48 100644 --- a/example_9.md +++ b/example_9.md @@ -22,7 +22,7 @@ Then run the voice teleoperation base node in a new terminal. ```bash # Terminal 3 cd catkin_ws/src/stretch_tutorials/src/ -python voice_teleoperation_base.py +python3 voice_teleoperation_base.py ``` In terminal 3, a menu of voice commands is printed. You can reference this menu layout below. diff --git a/follow_joint_trajectory.md b/follow_joint_trajectory.md index 77741fc..d245f22 100644 --- a/follow_joint_trajectory.md +++ b/follow_joint_trajectory.md @@ -22,7 +22,7 @@ Switch the mode to *position* mode using a rosservice call. Then run the stow co # Terminal 2 rosservice call /switch_to_position_mode cd catkin_ws/src/stretch_tutorials/src/ -python stow_command.py +python3 stow_command.py ``` @@ -174,7 +174,7 @@ Switch the mode to *position* mode using a rosservice call. Then run the multipo # Terminal 2 rosservice call /switch_to_position_mode cd catkin_ws/src/stretch_tutorials/src/ -python multipoint_command.py +python3 multipoint_command.py ``` This will send a list of `JointTrajectoryPoint` message types to move Stretch's arm. @@ -324,7 +324,7 @@ Switch the mode to *position* mode using a rosservice call. Then run the single # Terminal 2 rosservice call /switch_to_position_mode cd catkin_ws/src/stretch_tutorials/src/ -python single_joint_actuator.py +python3 single_joint_actuator.py ``` This will send a list of `JointTrajectoryPoint` message types to move Stretch's arm.