Error with boost while building tf package in catkin ws

asked 2014-10-13 03:33:23 -0500

alainh gravatar image

I'm building the imu_filter_madgwick package from the imu_tools package using the command catkin_make_isolated --install --from-pkg-with-deps imu_filter_madgwick. All goes well in the installation until it hits the second to last package in the package build topology, which is tf. I receive the following CMAKE error:

/root/ros_catkin_test_ws/src/geometry/tf/src/tf.cpp: In member function ‘boost::signals::connection tf::Transformer::addTransformsChangedListener(boost::function<void()>)’:
/root/ros_catkin_test_ws/src/geometry/tf/src/tf.cpp:575:60: error: could not convert ‘tf2::BufferCore::_addTransformsChangedListener(boost::function<void()>)(boost::function<void()>((*(const self_type*)(& callback))))’ from ‘boost::signals2::connection’ to ‘boost::signals::connection’
/root/ros_catkin_test_ws/src/geometry/tf/src/tf.cpp: In member function ‘void tf::Transformer::removeTransformsChangedListener(boost::signals::connection)’:
/root/ros_catkin_test_ws/src/geometry/tf/src/tf.cpp:580:49: error: no matching function for call to ‘tf2_ros::Buffer::_removeTransformsChangedListener(boost::signals::connection&)’
/root/ros_catkin_test_ws/src/geometry/tf/src/tf.cpp:580:49: note: candidate is:
/root/ros_catkin_ws/install_isolated/include/tf2/buffer_core.h:257:8: note: void tf2::BufferCore::_removeTransformsChangedListener(boost::signals2::connection)
/root/ros_catkin_ws/install_isolated/include/tf2/buffer_core.h:257:8: note:   no known conversion for argument 1 from ‘boost::signals::connection’ to ‘boost::signals2::connection’
make[2]: *** [CMakeFiles/pytf_py.dir/src/tf.cpp.o] Error 1
make[1]: *** [CMakeFiles/pytf_py.dir/all] Error 2
make: *** [all] Error 2

Is there anyway to resolve this? I'm using a catkin workspace environment on a Debian OS. Please let me know if any additional logs are required to debug this. Thank you in advance for your help!

edit retag flag offensive close merge delete

Comments

Which version of ROS are you using? It looks like you might have TF from one version of ROS and TF2 from a newer version of ROS.

ahendrix gravatar imageahendrix ( 2014-10-13 12:29:12 -0500 )edit

Sorry I forgot: I'm using Hydro. I checked geometry and geometry-experimental from the hydro-devel branch.

alainh gravatar imagealainh ( 2014-10-13 14:06:42 -0500 )edit

Please edit your post to show the output of vcs status in your workspace.

tfoote gravatar imagetfoote ( 2014-10-13 15:31:26 -0500 )edit

Hi! vcs is not available for my distribution, and I can't find a way to build or install it. I have no idea what it is referring to exactly. Is there any other common command, or a way to get the specific information you're looking for?

alainh gravatar imagealainh ( 2014-10-24 23:57:39 -0500 )edit

What platform are you running? You can do it manuallly, you need to list the status and remotes of your source checkouts.

tfoote gravatar imagetfoote ( 2014-10-25 22:01:05 -0500 )edit