File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -5,6 +5,12 @@ set(ignore ${CATKIN_INSTALL_INTO_PREFIX_ROOT})
55set (CMAKE_BUILD_TYPE Release)
66set (CMAKE_EXPORT_COMPILE_COMMANDS ON )
77
8+ # Parameters used in `patchworkpp` subdirectory.
9+ # Thus, link should be `patchworkpp::ground_seg_cores`
10+ # See https://github.com/url-kaist/patchwork-plusplus/tree/master/cpp/CMakeLists.txt#L21
11+ set (PARENT_PROJECT_NAME patchworkpp)
12+ set (TARGET_NAME ground_seg_cores)
13+
814if (EXISTS ${CMAKE_CURRENT_SOURCE_DIR } /../cpp/)
915 add_subdirectory (${CMAKE_CURRENT_SOURCE_DIR } /../cpp ${CMAKE_CURRENT_BINARY_DIR } /patchworkpp_cpp )
1016else ()
@@ -27,7 +33,7 @@ find_package(tf2_ros REQUIRED)
2733add_library (gseg_component SHARED src/GroundSegmentationServer.cpp )
2834target_compile_features (gseg_component PUBLIC cxx_std_20 )
2935target_include_directories (gseg_component PRIVATE ${CMAKE_CURRENT_SOURCE_DIR } /include )
30- target_link_libraries (gseg_component PATCHWORK::patchworkpp )
36+ target_link_libraries (gseg_component ${PARENT_PROJECT_NAME} ::${TARGET_NAME} )
3137ament_target_dependencies (
3238 gseg_component
3339 rcutils
Original file line number Diff line number Diff line change @@ -43,6 +43,9 @@ GroundSegmentationServer::GroundSegmentationServer(const rclcpp::NodeOptions &op
4343
4444 params.verbose = get_parameter<bool >(" verbose" , params.verbose );
4545
46+ // ToDo. Support intensity
47+ params.enable_RNR = false ;
48+
4649 // Construct the main Patchwork++ node
4750 Patchworkpp_ = std::make_unique<patchwork::PatchWorkpp>(params);
4851
You can’t perform that action at this time.
0 commit comments