108640 Views
83860 Views
59555 Views
48723 Views
48311 Views
47806 Views
Build a laser-cut robot
Robots and Lasers
Arduino Plug and Make Kit Review
Pi to Pico W Bluetooth Communication
Two-Way Bluetooth Communication Between Raspberry Pi Picos
Gamepad 2
Introduction to the Linux Command Line on Raspberry Pi OS
How to install MicroPython
Wall Drawing Robot Tutorial
BrachioGraph Tutorial
Intermediate level MicroPython
Introduction to FreeCAD for Beginners
KevsRobots Learning Platform
90% Percent Complete
By Kevin McAleer, 2 Minutes
tf2 is the ROS2 transform library, which lets the user keep track of multiple coordinate frames over time. tf2 maintains the relationship between coordinate frames in a tree structure buffered in time and lets the user transform points, vectors, etc. between any two coordinate frames at any desired point in time.
tf2
Transformations allow us to convert (or translate) one set of coordiates to another. Our robot, and the coordinates of the parts of the robot can be considered to be local to the robot.
local
The robot exists in the real world (or virtual world) in a world coordinate space.
world
We neet to transform the data from the Lidar, know as the laser_frame (which is in the robots local coordinates), to the world coordinate space.
laser_frame
Local
World
Transformations translate coordinates between the local and real world
We will use TF2 to create the transform from the laser_frame to the world.
ros2 run tf2_ros static_transform_publisher 0 0 0 0 0 0 laser_frame world
< Previous Next >