Using ROS 2? Check out the ROS 2 tf2 tutorials.
Many of the tf2 tutorials are available for both C++ and Python. The tutorials are streamlined to complete either the C++ track or the Python track. If you want to learn both C++ and Python, you should run through the tutorials once for C++ and once for Python.
Contents
Workspace Setup
If you have not yet created a workspace in which to complete the tutorials, click here for some brief instructions .
Learning tf2
1. tf2/Tutorials/Introduction to tf2
- This tutorial will give you a good idea of what tf2 can do for you. It shows off some of the tf2 power in a multi-robot example using turtlesim. This also introduces using tf2_echo, view_frames, and rviz.
C++ |
Python |
|
|
Debugging tf2
Using sensor messages with tf2
Setting up your robot with tf2
- Setting up your robot using tf
This tutorial provides a guide to set up your robot to start using tf.
- Using the robot state publisher on your own robot
This tutorial explains how you can publish the state of your robot to tf, using the robot state publisher.
- Using urdf with robot_state_publisher
This tutorial gives a full example of a robot model with URDF that uses robot_state_publisher. First, we create the URDF model with all the necessary parts. Then we write a node which publishes the JointState and transforms. Finally, we run all the parts together.
Extending tf2