Getting transformation matrixes [closed]

asked 2022-02-23 22:54:26 -0500

distro gravatar image

updated 2022-02-23 23:00:18 -0500

Is it at all possible to get the transformation matrix that the robot navigation system is using? For example, when the navigation sets up the transformation matrixes from a known map to odom to base_footprint and so on. is there somewhere these transformation matrixes are stored and if so, can they be obtained?

I checked the out inforamtion on tf, there is this method called asMatrix, I dont know how to use it, I dont know what I'm supposed to use for the header argument.

edit retag flag offensive reopen merge delete

Closed for the following reason question is not relevant or outdated by distro
close date 2023-01-16 12:13:53.866636

Comments

TF listener is perhaps what you want? See Writing a tf2 listener (C++) or Writing a tf2 listener (Python), depending on whether you're using roscpp or rospy

The transformation is of type geometry_msgs::TransformStamped, which can be converted to a matrix as described in #q332407

abhishek47 gravatar image abhishek47  ( 2022-02-24 11:24:38 -0500 )edit

@abhishek47 What was discussed in the link was simply getting the pose of one frame from another in 4X4 matrix format, not getting the transformation matrix itself.

distro gravatar image distro  ( 2022-02-24 13:12:26 -0500 )edit