Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Select executor in node registration #1898

Merged
merged 2 commits into from
Mar 18, 2022

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 <h-ishida@jsk.imi.i.u-tokyo.ac.jp>
@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 <h-ishida@jsk.imi.i.u-tokyo.ac.jp>
@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 <h-ishida@jsk.imi.i.u-tokyo.ac.jp>

* Fix indent

Signed-off-by: Hirokazu Ishida <h-ishida@jsk.imi.i.u-tokyo.ac.jp>
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.

None yet

2 participants