Ask Your Question
0

Use of TF vs odometry information

asked 2015-07-10 06:04:29 -0600

MaryC gravatar image

Hello, I started using Ros a while ago to acquire information from some sensors for robot control and I ran into the following doubt.

I understand how TF works, although i'm still figuring out transforms, but I don't fully get why is it better to use the TFs instead of the odometry information directly from the sensors. I have made two codes that are very much identical, but one reads the TF information, while the other reads the sensors' odometry/pose topics and they both seem to work.

Every package seems to go through the trouble of building a tf tree and that adds latency. Isn't it easier to work with the raw sensor outputs?

Thank you in advance.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2015-07-10 06:23:08 -0600

dornhege gravatar image

Latency is not a problem as everything is timestamped and the correct data is retrieved. Either way, you need to get odometry or tf messages.

The huge advantage is that tf does not only provide the odometry pose of the robot, but the pose of every link in the TF tree over time. If you want to know, where your laser is in the /odom frame, tf gets you this directly without manually puzzling together transformations.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2015-07-10 06:04:29 -0600

Seen: 412 times

Last updated: Jul 10 '15