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

tf exception map to base_link

asked 2012-04-19 08:05:09 -0500

phil0stine gravatar image

Hi all

We have a robot with 2 machines (1 quad core, 1 dual, both SSD) that makes heavy use of tf.

With everything running, we have about 80 nodes/nodelets. The machines are certainly being taxed, but we have found that recently tf lookups are simply not working. Here's a typical exception, though it's not the only type we've seen:

Caught Transform Exception: Unable to lookup transform, cache is empty, when looking up transform from frame [/base_link] to frame [/map]

I am particularly confused about how the cache could be empty, unless the machine is hung so badly that absolutely no /tf data is being received.

Also, if we are logged in remotely to a machine and call rosrun tf tf_echo /map /base_link, the echo works as expected.

In this particular example, I am calling the tf lookup as follows:

  try{
    ros::spinOnce();
    tf::StampedTransform fixed_to_base;
    listener_.waitForTransform(fixed_frame_,base_frame_,msg->header.stamp,ros::Duration(30.0));
    listener_.lookupTransform(fixed_frame_,base_frame_,msg->header.stamp,fixed_to_base);

This is happening with calls in multiple processes, both C++ and python, so is there anything we should be doing differently?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2012-04-19 08:20:48 -0500

It's possible you're saturating your network connection, which could cause messages not to be received. I've found bwmon (http://bwmon.sourceforge.net/) helpful for diagnosing this sort of issue.

edit flag offensive delete link more

Comments

Thanks I will check it out. It looks like we've at least realized that the throughput spikes when certain messages are broadcast, although we are using a Gigabit Ethernet switch which should handle it. I wonder if the ethernet controllers on the machines are whats choking

phil0stine gravatar image phil0stine  ( 2012-04-19 10:08:39 -0500 )edit

gigabit seems like a lot, but pushing point clouds around, I've seen upwards of 1Gbps on a single interface.

Dan Lazewatsky gravatar image Dan Lazewatsky  ( 2012-04-19 10:55:53 -0500 )edit

Tentatively (!) looks like that was the issue, we removed some point cloud publishers and the same nodes work with tf. Im still hesitant to blame the switch, and the CPUs arent being pegged, so it narrows to something in between :-)

phil0stine gravatar image phil0stine  ( 2012-04-19 12:55:48 -0500 )edit

Question Tools

Stats

Asked: 2012-04-19 08:05:09 -0500

Seen: 793 times

Last updated: Apr 19 '12