error for tf::TransformListener
/usr/bin/ld: CMakeFiles/linedetect.dir/src/linedetect.cpp.o: undefined reference to symbol 'tf::TransformListener::~TransformListener()' /usr/bin/ld: note: 'tf::TransformListener::~TransformListener()' is defined in DSO /opt/ros/hydro/lib/libtf.so so try adding it to the linker command line /opt/ros/hydro/lib/libtf.so: could not read symbols: Invalid operation collect2: ld returned 1 exit status make[2]: * [/home/sihanwan/catkin_ws/devel/lib/lab2/linedetect] Error 1 make[1]: [lab2/CMakeFiles/linedetect.dir/all] Error 2 make: ** [all] Error 2
this is my class
**class Change { public: laser_geometry::LaserProjection projector;
ros::NodeHandle n;
ros::Publisher pub;
ros::Subscriber sub;
Change();
void scanCallback(const sensor_msgs::LaserScan::ConstPtr& scan_in);
private:
tf::TransformListener listener;
};**
any help appreciated!