ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

How to get last frame's pose relative to base frame

asked 2022-05-29 07:03:23 -0600

CroCo gravatar image

I'm wondering if tf is capable of providing the pose (position and orientation) of the last frame in the tree relative to the base frame in the same tree? Also, does tf use Denavit Hartenberg to establish the forward kinematic tree?

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
1

answered 2022-05-30 01:38:19 -0600

Joe28965 gravatar image

I'm not sure what you mean with 'the last'. With a lot of tf trees, there is not 1 last link.

As for getting the pose of the link relative to the base_link, that's what tf listeners are for. The tutorials:

  1. tf listener C++
  2. tf listener Python
  3. tf2 listener C++
  4. tf2 listener Python
edit flag offensive delete link more
1

answered 2022-05-29 11:50:09 -0600

ljaniec gravatar image

By this question and its replies there: https://answers.ros.org/question/3007... I assume no standard DH for this forward kinematic, but it's not so sure.

You may find KDL documentation useful for this kind of calculations: http://wiki.ros.org/kdl and https://www.orocos.org/kdl.html

What can I use KDL for?

  1. 3D frame and vector transformations: KDL includes excellent support to work with vectors, points, frame transformations, etc. You can calculate a vector product, transform a point into a different reference frame, or even change the reference point of a 6d twist. For more information take a look at the geometry documentation on the KDL homepage.

  2. Kinematics and Dynamics of kinematic chains: You can represent a kinematic chain by a KDL Chain object, and use KDL solvers to compute anything from forward position kinematics, to inverse dynamics. For more information take a look at the chain documentation on the KDL homepage.The kdl_parser includes support to construct a KDL chain from a XML Robot Description Format (URDF) file.

  3. Kinematics of kinematic trees: You can represent a kinematic chain by a KDL Chain object, and use KDL solvers to compute forward position kinematics. Currently no other solvers are provided.

edit flag offensive delete link more

Question Tools

2 followers

Stats

Asked: 2022-05-29 07:03:23 -0600

Seen: 190 times

Last updated: May 30 '22