Problems with tf
I'm trying to use google cartographer and in order to I have to build a tf. I didn't fully understand the idea of tf. I have a robot and a laser. I constructed the tf like here http://wiki.ros.org/navigation/Tutorials/RobotSetup/TF .
This is my tree: map->baselnk->baselaser But thats the point I don't understand: I have this code:
broadcaster.sendTransform(
tf::StampedTransform(
tf::Transform(tf::Quaternion(0, 0, 0, 1), tf::Vector3(0.1, 0.0, 0.2)),
ros::Time::now(),"base_link", "base_laser"));
But how is the "base_link" now connected to the node that the laser is publishing?
broadcaster.sendTransform(
tf::StampedTransform(
tf::Transform(tf::Quaternion(0, 0, 0, 1), tf::Vector3(0.1, 0.0, 0.2)),
ros::Time::now(),"map", "base_link"));
And I also have this. Here the same problem. If I wouldn't write this: ros::Time::now(),"map", "base_link"));
the map wouldn't appear on rqt. How should the nodes be connected to the tf??
Asked by S.Yildiz on 2018-10-01 02:07:15 UTC
Answers
The following resource may help you better understand TF
Asked by Soft_illusion on 2021-03-21 17:16:05 UTC
Comments