Skip to content

Commit c594dac

Browse files
committed
Update installation instructions and command syntax in TF2 tutorial
1 parent c8734fd commit c594dac

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

workshop/source/_source/navigation/ROS2-TF2.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ ros2 pkg create --build-type ament_python <package_name> --dependencies tf2_ros
2121

2222
Make sure the scipy library is installed:
2323
```bash
24-
pip3 install scipy
24+
sudo apt install python3-scipy
2525
```
2626

2727
Copy the code shown below into the new file, save it, and build it.
@@ -148,20 +148,20 @@ entry_points={
148148
### 1.3 Testing the Broadcaster
149149

150150
First, start the turtlesim node :
151-
```python
151+
```bash
152152
ros2 run turtlesim turtlesim_node
153153
```
154154
Then start the broadcaster, with your chosen name for the turtle as the only argument. Here we assume `turtle1`:
155155

156-
```python
156+
```bash
157157
ros2 run tf2_workshop broadcaster turtle1
158158
```
159159
If all works well, the broadcaster is now sending the TF data for turtle1. This can be verified with:
160-
```python
160+
```bash
161161
ros2 run tf2_ros tf2_echo turtle1 world
162162
```
163163
or by simply running:
164-
```python
164+
```bash
165165
ros2 run tf2_ros tf2_monitor
166166
```
167167
or also through rviz2 by adding the `TF` display module.

0 commit comments

Comments
 (0)