Why cant initialize tf2_ros::TransformListenter in hydro?
When I try to compile node with folowing lines (this is only a part of code):
// ROS includes
#include <ros/ros.h>
#include <message_filters/subscriber.h>
#include <message_filters/time_synchronizer.h>
#include <tf/transform_listener.h>
#include <tf2_ros/buffer.h>
#include <tf2_ros/transform_listener.h>
#include <sensor_msgs/PointCloud.h>
#include <laser_geometry/laser_geometry.h>
// ROS message includes
#include <sensor_msgs/LaserScan.h>
//####################
//#### node class ####
class NodeClass
{
//
public:
ros::NodeHandle nodeHandle;
// topics to publish
message_filters::Subscriber<sensor_msgs::LaserScan> * topicSub_LaserFront;
message_filters::Subscriber<sensor_msgs::LaserScan> * topicSub_LaserBack;
message_filters::TimeSynchronizer<sensor_msgs::LaserScan, sensor_msgs::LaserScan> *sync;
tf::TransformListener listener_;
tf2_ros::Buffer buffer;
tf2_ros::TransformListener tf_listener(buffer);
laser_geometry::LaserProjection projector_;
ros::Publisher topicPub_LaserUnified;
i get ERROR: "buffer" is not a type:
catkin_make --pkg cob_sick_s300
Base path: /home/user/Workspace/care-o-bot
Source space: /home/user/Workspace/care-o-bot/src
Build space: /home/user/Workspace/care-o-bot/build
Devel space: /home/user/Workspace/care-o-bot/devel
Install space: /home/user/Workspace/care-o-bot/install
####
#### Running command: "make cmake_check_build_system" in "/home/user/Workspace/care-o-bot/build"
####
####
#### Running command: "make -j4 -l4" in "/home/user/Workspace/care-o-bot/build/cob_driver/cob_sick_s300"
####
[ 0%] [ 66%] Built target cob_sick_s300
[100%] Built target cob_scan_filter
Building CXX object cob_driver/cob_sick_s300/CMakeFiles/cob_unified_scan_publisher.dir/ros/src/cob_unified_scan_publisher.cpp.o
/home/stogl/Workspace/care-o-bot/src/cob_driver/cob_sick_s300/ros/src/cob_unified_scan_publisher.cpp:88:41: Fehler: »buffer« ist kein Typ
make[2]: *** [cob_driver/cob_sick_s300/CMakeFiles/cob_unified_scan_publisher.dir/ros/src/cob_unified_scan_publisher.cpp.o] Error 1
make[1]: *** [cob_driver/cob_sick_s300/CMakeFiles/cob_unified_scan_publisher.dir/all] Error 2
make: *** [all] Error 2
Invoking "make" failed