Skip to content

Conversation

@HiroIshida
Copy link
Contributor

This PR enables selection of executor type in rclcpp_components_register_node in CMakeLists.txt.
So far, SingleThreadedExecutor is hard-coded.

FYI, I need this option to use of MultiThereadedExecutor because my node contains nested callback.

Signed-off-by: Hirokazu Ishida <[email protected]>
@HiroIshida HiroIshida force-pushed the select_executor_in_node_registration branch from f81638e to 8c4e794 Compare March 18, 2022 00:39
HiroIshida added a commit to HiroIshida/autoware.universe that referenced this pull request Mar 18, 2022
# default to executor if not specified otherwise
set(executor "SingleThreadedExecutor")
if(NOT "${ARGS_EXECUTOR}" STREQUAL "")
set(executor ${ARGS_EXECUTOR})
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nitpick: fix indentation

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks. Fixed.

@alsora
Copy link
Collaborator

alsora commented Mar 18, 2022

PR looks good to me!
Starting a CI job

  • Linux Build Status
  • Linux-aarch64 Build Status
  • Windows Build Status

Signed-off-by: Hirokazu Ishida <[email protected]>
@HiroIshida HiroIshida force-pushed the select_executor_in_node_registration branch from 891e160 to 9ddf60c Compare March 18, 2022 14:16
@alsora alsora merged commit 9ae35e3 into ros2:master Mar 18, 2022
HiroIshida added a commit to HiroIshida/autoware.universe that referenced this pull request Apr 13, 2022
HiroIshida added a commit to HiroIshida/rclcpp that referenced this pull request Apr 13, 2022
* Select executor

Signed-off-by: Hirokazu Ishida <[email protected]>

* Fix indent

Signed-off-by: Hirokazu Ishida <[email protected]>
HiroIshida added a commit to HiroIshida/autoware.universe that referenced this pull request Apr 13, 2022
HiroIshida added a commit to HiroIshida/autoware.universe that referenced this pull request Apr 29, 2022
HiroIshida added a commit to tier4/autoware_universe that referenced this pull request May 30, 2022
HiroIshida added a commit to tier4/autoware_universe that referenced this pull request May 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants