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

Problems with tf

asked 2018-10-01 02:07:15 -0500

S.Yildiz gravatar image

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/Tutori... .

This is my tree: map->base_lnk->base_laser 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??

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2021-03-21 17:16:53 -0500

The following resource may help you better understand TF

https://youtu.be/_t4HZ8r_qFM

edit flag offensive delete link more

Question Tools

2 followers

Stats

Asked: 2018-10-01 02:07:15 -0500

Seen: 404 times

Last updated: Mar 21 '21