Problem to compile rviz with catkin_make
Hi everyone, im starting with ros and im trying to simulate a robot. Im using ubuntu 16.04 and Ros Kinetic.
After git clone https://github.com/ros-visualization/... into my catkin_ws/src I've tried to compile it with catkin_make and got this result:
[ 82%] Building CXX object rviz/src/rviz/CMakeFiles/rviz.dir/ogre_helpers/axes.cpp.o
In file included from /home/fran/programas_ros/catkin_ws/src/rviz/src/rviz/frame_manager.cpp:30:0:
/home/fran/programas_ros/catkin_ws/src/rviz/src/rviz/frame_manager.h: In member function ‘const std::shared_ptr<tf2_ros::Buffer> rviz::FrameManager::getTF2BufferPtr()’:
/home/fran/programas_ros/catkin_ws/src/rviz/src/rviz/frame_manager.h:259:17: error: ‘class tf::TransformListener’ has no member named ‘getTF2BufferPtr’
return tf_->getTF2BufferPtr();
^
In file included from /home/fran/programas_ros/catkin_ws/src/rviz/src/rviz/image/image_display_base.h:43:0,
from /home/fran/programas_ros/catkin_ws/src/rviz/src/rviz/image/image_display_base.cpp:40:
/home/fran/programas_ros/catkin_ws/src/rviz/src/rviz/frame_manager.h: In member function ‘const std::shared_ptr<tf2_ros::Buffer> rviz::FrameManager::getTF2BufferPtr()’:
/home/fran/programas_ros/catkin_ws/src/rviz/src/rviz/frame_manager.h:259:17: error: ‘class tf::TransformListener’ has no member named ‘getTF2BufferPtr’
return tf_->getTF2BufferPtr();
^
rviz/src/rviz/CMakeFiles/rviz.dir/build.make:302: fallo en las instrucciones para el objetivo 'rviz/src/rviz/CMakeFiles/rviz.dir/frame_manager.cpp.o'
make[2]: *** [rviz/src/rviz/CMakeFiles/rviz.dir/frame_manager.cpp.o] Error 1
make[2]: *** Se espera a que terminen otras tareas....
rviz/src/rviz/CMakeFiles/rviz.dir/build.make:446: fallo en las instrucciones para el objetivo 'rviz/src/rviz/CMakeFiles/rviz.dir/image/image_display_base.cpp.o'
make[2]: *** [rviz/src/rviz/CMakeFiles/rviz.dir/image/image_display_base.cpp.o] Error 1
In file included from /home/fran/programas_ros/catkin_ws/src/rviz/src/rviz/frame_position_tracking_view_controller.cpp:35:0:
/home/fran/programas_ros/catkin_ws/src/rviz/src/rviz/frame_manager.h: In member function ‘const std::shared_ptr<tf2_ros::Buffer> rviz::FrameManager::getTF2BufferPtr()’:
/home/fran/programas_ros/catkin_ws/src/rviz/src/rviz/frame_manager.h:259:17: error: ‘class tf::TransformListener’ has no member named ‘getTF2BufferPtr’
return tf_->getTF2BufferPtr();
^
rviz/src/rviz/CMakeFiles/rviz.dir/build.make:350: fallo en las instrucciones para el objetivo 'rviz/src/rviz/CMakeFiles/rviz.dir/frame_position_tracking_view_controller.cpp.o'
make[2]: *** [rviz/src/rviz/CMakeFiles/rviz.dir/frame_position_tracking_view_controller.cpp.o] Error 1
CMakeFiles/Makefile2:17436: fallo en las instrucciones para el objetivo 'rviz/src/rviz/CMakeFiles/rviz.dir/all'
make[1]: *** [rviz/src/rviz/CMakeFiles/rviz.dir/all] Error 2
Makefile:138: fallo en las instrucciones para el objetivo 'all'
make: *** [all] Error 2
Invoking "make -j4 -l4" failed
It seems there its a problem with getTF2BufferPtr() or with tf::TransformListener but I don't know what I can do.
Ty everyone for your support.