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

Problem to compile rviz with catkin_make

asked 2021-01-16 11:54:15 -0500

Urwik gravatar image

updated 2022-03-25 17:32:42 -0500

lucasw gravatar image

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.

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
1

answered 2021-01-16 12:07:54 -0500

gvdhoorn gravatar image

After git clone https://github.com/ros-visualization/... into my catkin_ws/src I've tried to compile it with catkin_make

could you clarify why you are building RViz from source, instead of installing it using apt?

Compiling packages from source should be the last resort, not the default.

As to your problem: are you building the Kinetic version, or the default branch in the repository? The latter will not work.

edit flag offensive delete link more

Comments

I was building RViz from source because I like to have all the files with easy access in my ws. I build ros Kinetic with sudo apt-get install ros-kinetic-desktop-full. I've tried to install RViz from apt and everithing works perfect. Ty for the advice of install first from apt.

Thanks a lot ^^

Urwik gravatar image Urwik  ( 2021-01-16 14:28:21 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2021-01-16 11:54:15 -0500

Seen: 527 times

Last updated: Jan 16 '21