Browse Source

Included correct python version.

noetic
Alan G. Sanchez 2 years ago
parent
commit
c5b19a598a
1 changed files with 4 additions and 4 deletions
  1. +4
    -4
      example_13.md

+ 4
- 4
example_13.md View File

@ -26,13 +26,13 @@ Now we are going to use a node to send a a move base goal half a meter in front
```bash ```bash
# Terminal 2 # Terminal 2
cd catkin_ws/src/stretch_tutorials/src/ cd catkin_ws/src/stretch_tutorials/src/
python navigation.py
python3 navigation.py
``` ```
### The Code ### The Code
```python ```python
#!/usr/bin/env python
#!/usr/bin/env python3
import rospy import rospy
import actionlib import actionlib
@ -114,9 +114,9 @@ if __name__ == '__main__':
Now let's break the code down. Now let's break the code down.
```python ```python
#!/usr/bin/env python
#!/usr/bin/env python3
``` ```
Every Python ROS [Node](http://wiki.ros.org/Nodes) will have this declaration at the top. The first line makes sure your script is executed as a Python script.
Every Python ROS [Node](http://wiki.ros.org/Nodes) will have this declaration at the top. The first line makes sure your script is executed as a Python3 script.
```python ```python
import rospy import rospy

Loading…
Cancel
Save