Browse Source

Changed links from the main branch to the noetic branch.

noetic
Alan G. Sanchez 2 years ago
parent
commit
cb97b8c316
2 changed files with 3 additions and 3 deletions
  1. +1
    -1
      example_6.md
  2. +2
    -2
      example_9.md

+ 1
- 1
example_6.md View File

@ -280,7 +280,7 @@ A conditional statement is used to export the data to a .txt file. The file's na
<img src="stored_data/2022-06-30_11:26:20-AM.png"/> <img src="stored_data/2022-06-30_11:26:20-AM.png"/>
</p> </p>
We added a simple python script, [stored_data_plotter.py](https://github.com/hello-robot/stretch_tutorials/blob/main/src/stored_data_plotter.py), to this package for plotting the stored data. **Note** you have to change the name of the file you wish to see in the python script. This is shown below:
We added a simple python script, [stored_data_plotter.py](https://github.com/hello-robot/stretch_tutorials/blob/noetic/src/stored_data_plotter.py), to this package for plotting the stored data. **Note** you have to change the name of the file you wish to see in the python script. This is shown below:
```Python ```Python
####################### Copy the file name here! ####################### ####################### Copy the file name here! #######################

+ 2
- 2
example_9.md View File

@ -260,12 +260,12 @@ if __name__ == '__main__':
``` ```
### The Code Explained ### The Code Explained
This code is similar to that of the [multipoint_command](https://github.com/hello-robot/stretch_tutorials/blob/main/src/multipoint_command.py) and [joint_state_printer](https://github.com/hello-robot/stretch_tutorials/blob/main/src/joint_state_printer.py) node. Therefore, this example will highlight sections that are different from those tutorials. Now let's break the code down.
This code is similar to that of the [multipoint_command](https://github.com/hello-robot/stretch_tutorials/blob/noetic/src/multipoint_command.py) and [joint_state_printer](https://github.com/hello-robot/stretch_tutorials/blob/noetic/src/joint_state_printer.py) node. Therefore, this example will highlight sections that are different from those tutorials. Now let's break the code down.
```python ```python
#!/usr/bin/env python3 #!/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 math import math

Loading…
Cancel
Save