How to record transformation
Hi guys, I'm newbie to the ROS world and I want to understand more than what I've understood until now. Is there any command that let me record what the command:
rosrun tf tf_echo /target_fr /reference_fr
print in the terminal window? So to collect for each frame the tranformation between the two frames??
Asked by lolito on 2019-09-30 08:23:08 UTC
Comments
You can do something like
rosrun tf tf_echo /target_fr /reference_fr >> tf.txt
. This is a linux feature though. If you can tell what you intend to do with it maybe people can help you in that specific regard.Asked by Choco93 on 2019-09-30 09:03:02 UTC
Thanks Choco93, in LeGO-LOAM i want to understand each one of the reference frame of the system to build up a scheme. In particular i want to save the transformations as a bag file in order to process it with matlab
Asked by lolito on 2019-09-30 09:50:24 UTC
Would recording the
/tf
and/tf_static
topics into a bag file be sufficient for what you are trying to do?Asked by jarvisschultz on 2019-09-30 09:54:26 UTC
jarvisschultz why do i have to collect /tf_static? I mean using echo for that topic nothing is shown in the shell. I can try to collect all message from /tf. Then i can process them into Matlab??
Asked by lolito on 2019-09-30 10:01:45 UTC
If you have any static transform publishers, they publish on the
/tf_static
topic. If you'd like to be able to reconstruct your wholetf
tree in MATLAB from a bag file, and you have static transforms, then you would need to record both the/tf
and the/tf_static
topics.Asked by jarvisschultz on 2019-09-30 10:17:48 UTC