Skip to content

Commit

Permalink
Create node executables using rclcpp_component macros
Browse files Browse the repository at this point in the history
  • Loading branch information
bjsowa committed Jul 17, 2024
1 parent e2ed8c3 commit 6fdfd76
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 127 deletions.
19 changes: 10 additions & 9 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,18 @@ ament_auto_add_library(laser_scan_filters SHARED src/laser_scan_filters.cpp)
ament_auto_add_library(laser_filter_chains SHARED
src/scan_to_cloud_filter_chain.cpp
src/scan_to_scan_filter_chain.cpp)
rclcpp_components_register_nodes(laser_filter_chains
"ScanToCloudFilterChain"
"ScanToScanFilterChain")

set(FILTER_CHAINS
scan_to_cloud_filter_chain
scan_to_scan_filter_chain
rclcpp_components_register_node(
laser_filter_chains
PLUGIN "ScanToCloudFilterChain"
EXECUTABLE "scan_to_cloud_filter_chain"
)

rclcpp_components_register_node(
laser_filter_chains
PLUGIN "ScanToScanFilterChain"
EXECUTABLE "scan_to_scan_filter_chain"
)
foreach(FILTER_CHAIN ${FILTER_CHAINS})
ament_auto_add_executable(${FILTER_CHAIN} src/${FILTER_CHAIN}_node.cpp)
endforeach()

ament_auto_add_executable(generic_laser_filter_node src/generic_laser_filter_node.cpp)

Expand Down
59 changes: 0 additions & 59 deletions src/scan_to_cloud_filter_chain_node.cpp

This file was deleted.

59 changes: 0 additions & 59 deletions src/scan_to_scan_filter_chain_node.cpp

This file was deleted.

0 comments on commit 6fdfd76

Please sign in to comment.