Skip to content

Commit

Permalink
feat(rclcpp_components): support events executor in node main template (
Browse files Browse the repository at this point in the history
#2366)

Signed-off-by: wep21 <[email protected]>
  • Loading branch information
wep21 authored Nov 17, 2023
1 parent 2446fd0 commit d08d9cf
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion rclcpp_components/src/node_main.cpp.in
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,14 @@

#define NODE_MAIN_LOGGER_NAME "@node@"

using namespace rclcpp::executors;
using namespace rclcpp::experimental::executors;

int main(int argc, char * argv[])
{
auto args = rclcpp::init_and_remove_ros_arguments(argc, argv);
rclcpp::Logger logger = rclcpp::get_logger(NODE_MAIN_LOGGER_NAME);
rclcpp::executors::@executor@ exec;
@executor@ exec;
rclcpp::NodeOptions options;
options.arguments(args);
std::vector<rclcpp_components::NodeInstanceWrapper> node_wrappers;
Expand Down

0 comments on commit d08d9cf

Please sign in to comment.