Then run the tf2 broadcaster node to create the three static frames.
Then run the tf2 broadcaster node to create the three static frames.
```{.bash .shell-prompt}
```{.bash .shell-prompt}
ros2 run stretch_ros_tutorials tf2_broadcaster
ros2 run stretch_ros_tutorials tf_broadcaster
```
```
Finally, run the tf2 listener node to print the transform between two links.
Finally, run the tf2 listener node to print the transform between two links.
```{.bash .shell-prompt}
```{.bash .shell-prompt}
ros2 run stretch_ros_tutorials tf2_listener
ros2 run stretch_ros_tutorials tf_listener
```
```
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.
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.