Skip to content

Commit d08d9cf

Browse files
authored
feat(rclcpp_components): support events executor in node main template (ros2#2366)
Signed-off-by: wep21 <[email protected]>
1 parent 2446fd0 commit d08d9cf

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

rclcpp_components/src/node_main.cpp.in

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,14 @@
2323

2424
#define NODE_MAIN_LOGGER_NAME "@node@"
2525

26+
using namespace rclcpp::executors;
27+
using namespace rclcpp::experimental::executors;
28+
2629
int main(int argc, char * argv[])
2730
{
2831
auto args = rclcpp::init_and_remove_ros_arguments(argc, argv);
2932
rclcpp::Logger logger = rclcpp::get_logger(NODE_MAIN_LOGGER_NAME);
30-
rclcpp::executors::@executor@ exec;
33+
@executor@ exec;
3134
rclcpp::NodeOptions options;
3235
options.arguments(args);
3336
std::vector<rclcpp_components::NodeInstanceWrapper> node_wrappers;

0 commit comments

Comments
 (0)