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
ros2#2366)

Signed-off-by: wep21 <daisuke.nishimatsu1021@gmail.com>
  • Loading branch information
wep21 authored and Barry-Xu-2018 committed Jan 12, 2024
1 parent 955efea commit c83d062
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 c83d062

Please sign in to comment.