Ask Your Question
0

Could not find tf/transform_listener.h

asked 2013-02-17 08:18:42 -0500

Webo gravatar image

updated 2013-02-18 06:52:03 -0500

Hey there,

I have a problem with the tf package. In my code I'm using the following includes:

#include "ros/ros.h"
#include "std_msgs/String.h"
#include "sensor_msgs/LaserScan.h"
#include "RowDetection.h"
#include "tf/transform_listener.h"
#include "sensor_msgs/PointCloud.h"
#include "tf/message_filter.h"
#include "message_filters/subscriber.h"
#include "laser_geometry/laser_geometry.h"

In my manifest.xml I've added

<depend package="tf"/>

But rosmake does not compile and throws the following error

[...]src/main.cpp:15:35: fatal error: tf/transform_listener.h: No such file or directory

roscd tf works fine! So I don't know what's going wrong here.

Can someone help me please?

Edit: I've installed it from the Ubuntu binaries. It's fuerte on Ubuntu 12.04. I'm not at home but I think the other dependencies are roscpp and std_msgs

edit retag flag offensive close merge delete

Comments

Did you install tf from Ubuntu binaries, or from source? What version of ROS are you using? On what platform?

joq gravatar image joq  ( 2013-02-17 17:04:01 -0500 )edit

And what others dependencies did you include ?

Stephane.M gravatar image Stephane.M  ( 2013-02-17 20:32:25 -0500 )edit

I've installed it from the Ubuntu binaries. It's fuerte on Ubuntu 12.04. I'm not at home but I think the other dependencies are roscpp and std_msgs

Webo gravatar image Webo  ( 2013-02-17 20:43:50 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2013-02-18 21:54:53 -0500

Maybe you could try to add dependencies to : rospy and roscpp in your manifest.xml

Indeed, when you look at the tutorials broadcaster and listener, you see that the dependencies are :

 roscreate-pkg learning_tf tf roscpp rospy turtlesim

Let me know if it works,

Bests regards,

Steph

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

Stats

Asked: 2013-02-17 08:18:42 -0500

Seen: 1,376 times

Last updated: Feb 18 '13