Spatio-Temporal-Voxel-layer catkin_make error on ros-melodic

asked 2021-09-09 04:21:56 -0500

Badal gravatar image

updated 2022-05-01 13:12:51 -0500

lucasw gravatar image

Straight dump of the error message:

CMake Error at /opt/ros/melodic/share/catkin/cmake/catkin_workspace.cmake:100 (message):
This workspace contains non-catkin packages in it, and catkin cannot build
a non-homogeneous workspace without isolation. Try the
'catkin_make_isolated' command instead.
Call Stack (most recent call first):
CMakeLists.txt:69 (catkin_workspace)

-- Configuring incomplete, errors occurred!
See also "/home/agx1/hector/build/CMakeFiles/CMakeOutput.log".
See also "/home/agx1/hector/build/CMakeFiles/CMakeError.log".
Invoking "cmake" failed
edit retag flag offensive close merge delete

Comments

Could you clarify why you are building that package from source? According to status_page/ros_melodic_default.html?q=spatio binary packages are available for Melodic.

gvdhoorn gravatar image gvdhoorn  ( 2021-09-09 04:34:36 -0500 )edit

I am interested in keeping it in a separate workspace and tuning its parameters .

Badal gravatar image Badal  ( 2021-09-09 04:54:14 -0500 )edit

It's up to you, but the spatio-temporal-voxel-layer supports dynamic_reconfigure. You should not need to recompile to change parameters.

gvdhoorn gravatar image gvdhoorn  ( 2021-09-09 06:24:38 -0500 )edit

I totally agree with your comment but as i have gone through the CMakeLists.txt file and i didn't find anything different from other packages so what makes it different in so that its not building from source , can you please explain to me ?

Badal gravatar image Badal  ( 2021-09-10 06:48:44 -0500 )edit

From the error message it's not clear the problem is actually with spatio_temporal_voxel_layer.

The error message states your workspace contains Catkin packages (ie: straight ROS packages) and non-Catkin packages (fi: plain CMake packages).

catkin_make cannot build non-Catkin packages.

Another cause I've seen for this is a metapackage with a non-compliant CMakeLists.txt, but I would expect you'd also see some warnings about that earlier on.

If you can check which packages in your workspace do not have a catkin_package(..) in their CMakeLists.txt, that could point to the cause of your error.

gvdhoorn gravatar image gvdhoorn  ( 2021-09-10 07:28:55 -0500 )edit