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

Can't find the C/C++ source codes of the tf ros package in /opt/ros/melodic/...

asked 2021-04-02 11:04:37 -0500

updated 2021-04-05 11:00:55 -0500

I am trying to remove the boost_signals library dependency from the tf ros package, but i can't find the CMakeLists.txt file of the package. I am trying to remove the dependency of the boost_signals from the tf ros package.

edit retag flag offensive close merge delete

Comments

1

You have to provide more details. What package are you working with? Maybe share your CMakeLists.txt as well.

Akhil Kurup gravatar image Akhil Kurup  ( 2021-04-02 12:39:32 -0500 )edit

i have problems with compiling some projects it says that cmake is not finding required boost libraries (boost_signals), and i found this tutorial remove_boost_signlas_library_dependency. but the problem i'm facing is that i can't find the tf package source code in ros workspace under (/opt/ros/melodic/share .....) ?

seif_seghiri gravatar image seif_seghiri  ( 2021-04-02 15:42:19 -0500 )edit
1

How did you install the tf ros package? Did you follow the tutorial and do it in sudo apt install ros-melodic-desktop-full?

miura gravatar image miura  ( 2021-04-03 11:49:32 -0500 )edit

Yes i did follow that.

seif_seghiri gravatar image seif_seghiri  ( 2021-04-03 12:56:44 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2021-04-05 08:34:34 -0500

miura gravatar image

It is possible that the tf ros package is not installed. Please try the following command.

$ sudo apt install ros-melodic-geometry ros-melodic-geometry2

edit flag offensive delete link more

Comments

the package is installed, i just don't know where to find its CMakeLIsts.txt.

seif_seghiri gravatar image seif_seghiri  ( 2021-04-05 11:05:05 -0500 )edit

CMakelists.txt should not be included in the package.

It seems that tf2 has already been released with the https://github.com/ros/geometry2/pull... changes reflected. Therefore, I don't think that changing CMakelists.txt in tf2 is a solution to the issue you are having.

By the way, the CMakeLists.txt of tf2 is here.

miura gravatar image miura  ( 2021-04-05 11:49:50 -0500 )edit

when i try to compie geometry2 package it raises this error

/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-linux-gnu/libboost_system.a(error_code.o): relocation R_X86_64_PC32 against symbol `_ZTVN5boost6system14error_categoryE' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: final link failed: Bad value collect2: error: ld returned 1 exit status geometry2/tf2/CMakeFiles/tf2.dir/build.make:172: recipe for target '/home/seghiri/catkin_ws/devel/lib/libtf2.so' failed make[2]: * [/home/seghiri/catkin_ws/devel/lib/libtf2.so] Error 1 CMakeFiles/Makefile2:2638: recipe for target 'geometry2/tf2/CMakeFiles/tf2.dir/all' failed make[1]: [geometry2/tf2/CMakeFiles/tf2.dir/all] Error 2 Makefile:140: recipe for target 'all' failed make: ** [all] Error 2 Invoking "make -j4" failed

seif_seghiri gravatar image seif_seghiri  ( 2021-04-05 11:57:34 -0500 )edit

Do you want to use the tf package? Or do you want to build it yourself?

If you just want to use it, you should be able to do so by installing it with sudo apt install ros-melodic-geometry ros-melodic-geometry2.

If you want to build it yourself, you can get the latest set of source code from github, including the CMakeLists.txt file.

miura gravatar image miura  ( 2021-04-06 08:29:51 -0500 )edit

Question Tools

2 followers

Stats

Asked: 2021-04-02 11:04:37 -0500

Seen: 344 times

Last updated: Apr 05 '21