Skip to content

Commit

Permalink
refactor(radar_scan_to_pointcloud2): add PCL dependency and update CM…
Browse files Browse the repository at this point in the history
…akeLists.txt

Signed-off-by: Taekjin LEE <taekjin.lee@tier4.jp>
  • Loading branch information
technolojin committed Jul 9, 2024
1 parent 3ccb1eb commit 44ca257
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions sensing/radar_scan_to_pointcloud2/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,20 @@ project(radar_scan_to_pointcloud2)
find_package(autoware_cmake REQUIRED)
autoware_package()

find_package(PCL REQUIRED COMPONENTS common)

# Targets
ament_auto_add_library(${PROJECT_NAME} SHARED
src/radar_scan_to_pointcloud2_node.cpp
)

target_include_directories(${PROJECT_NAME}
SYSTEM PUBLIC ${PCL_INCLUDE_DIRS}
)
target_link_libraries(${PROJECT_NAME}
${PCL_LIBRARIES}
)

rclcpp_components_register_node(${PROJECT_NAME}
PLUGIN "autoware::radar_scan_to_pointcloud2::RadarScanToPointcloud2Node"
EXECUTABLE radar_scan_to_pointcloud2_node
Expand Down
2 changes: 1 addition & 1 deletion sensing/radar_scan_to_pointcloud2/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
<buildtool_depend>ament_cmake_auto</buildtool_depend>
<buildtool_depend>autoware_cmake</buildtool_depend>

<depend>libpcl-common</depend>
<depend>pcl_conversions</depend>
<depend>pcl_ros</depend>
<depend>radar_msgs</depend>
<depend>rclcpp</depend>
<depend>rclcpp_components</depend>
Expand Down

0 comments on commit 44ca257

Please sign in to comment.