Skip main navigation

Transformation of Pose in 2D

How to transform the pose of a robot from its body frame to a fixed frame? This article dives into that.
© Luleå Tekniska Universitet

To transform a pose in 2D from the body frame {B} to the fixed frame {A}, we perform two main operations: translation and rotation. The combined operation is known as transformation.

Let t be the 2 x 1 translation vector of the robot’s body frame {B} given with respect to the fixed frame {A}. Let theta be the orientation of the robot, i.e the heading angle. Therefore, the corresponding 2 x 2 rotation matrix R obtained for the frame {B} with respect to an intermediate frame {V} is given as [cos(theta) -sin(theta);sin(theta) cos(theta)]. The elements comprising the rotation matrix are dependent on the axis of the rotation taken into account.

In the simple 2D case, the robot is constrained to rotate around its Z-axis, known as yaw. The sign of the rotation follows the right-hand rule. A homogenous matrix that considers both the rotational components and the translation components is known as the transformation matrix T. This is a 3 x 3 matrix given as [R;t;0 0 1] .

Finally, the pose of the robot in the {B}-frame, [x y theta], is transformed to {A}-frame by multiplying the transformation matrix T x [x y 1].

© Luleå Tekniska Universitet
This article is from the free online

Introduction to Application of Robotic Tools

Created by
FutureLearn - Learning For Life

Our purpose is to transform access to education.

We offer a diverse selection of courses from leading universities and cultural institutions from around the world. These are delivered one step at a time, and are accessible on mobile, tablet and desktop, so you can fit learning around your life.

We believe learning should be an enjoyable, social experience, so our courses offer the opportunity to discuss what you’re learning with others as you go, helping you make fresh discoveries and form new ideas.
You can unlock new opportunities with unlimited access to hundreds of online short courses for a year by subscribing to our Unlimited package. Build your knowledge with top universities and organisations.

Learn more about how FutureLearn is transforming access to education