Skip to content

Commit

Permalink
fix undefined reference to symbol 'ccd_vec3_origin'
Browse files Browse the repository at this point in the history
  • Loading branch information
fmessmer committed Mar 20, 2024
1 parent 3713adc commit 74cf243
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cob_obstacle_distance/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ find_package(Eigen3)
set(EIGEN3_INCLUDE_DIRS ${EIGEN3_INCLUDE_DIR})
add_definitions(${EIGEN3_DEFINITIONS})

find_package(CCD REQUIRED)
find_package(orocos_kdl REQUIRED)

find_package(PkgConfig REQUIRED)

pkg_check_modules(ASSIMP assimp)
Expand All @@ -29,7 +29,7 @@ catkin_package(
)

### BUILD ###
include_directories(include ${catkin_INCLUDE_DIRS} ${Boost_INCLUDE_DIRS} ${EIGEN3_INCLUDE_DIRS} ${FCL_INCLUDE_DIRS} ${orocos_kdl_INCLUDE_DIRS} ${ASSIMP_INCLUDE_DIRS})
include_directories(include ${catkin_INCLUDE_DIRS} ${Boost_INCLUDE_DIRS} ${CCD_INCLUDE_DIRS} ${EIGEN3_INCLUDE_DIRS} ${FCL_INCLUDE_DIRS} ${orocos_kdl_INCLUDE_DIRS} ${ASSIMP_INCLUDE_DIRS})

add_library(parsers src/parsers/mesh_parser.cpp src/parsers/stl_parser.cpp)
add_dependencies(parsers ${catkin_EXPORTED_TARGETS})
Expand All @@ -41,7 +41,7 @@ target_link_libraries(marker_shapes_management parsers ${fcl_LIBRARIES} ${catkin

add_executable(${PROJECT_NAME} src/chainfk_solvers/advanced_chainfksolver_recursive.cpp src/${PROJECT_NAME}.cpp src/distance_manager.cpp src/helpers/helper_functions.cpp)
add_dependencies(${PROJECT_NAME} ${${PROJECT_NAME}_EXPORTED_TARGETS} ${catkin_EXPORTED_TARGETS})
target_link_libraries(${PROJECT_NAME} parsers marker_shapes_management ${fcl_LIBRARIES} ${catkin_LIBRARIES} ${orocos_kdl_LIBRARIES})
target_link_libraries(${PROJECT_NAME} parsers marker_shapes_management ${CCD_LIBRARIES} ${fcl_LIBRARIES} ${catkin_LIBRARIES} ${orocos_kdl_LIBRARIES})

add_executable(debug_obstacle_distance_node src/debug/debug_obstacle_distance_node.cpp)
add_dependencies(debug_obstacle_distance_node ${${PROJECT_NAME}_EXPORTED_TARGETS} ${catkin_EXPORTED_TARGETS})
Expand Down
1 change: 1 addition & 0 deletions cob_obstacle_distance/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
<depend>dynamic_reconfigure</depend>
<depend>eigen_conversions</depend>
<depend>eigen</depend>
<depend>libccd-dev</depend>
<depend condition="$ROS_DISTRO != noetic">libfcl-dev</depend>
<depend condition="$ROS_DISTRO == noetic">fcl</depend>
<depend>geometry_msgs</depend>
Expand Down

0 comments on commit 74cf243

Please sign in to comment.