-
Notifications
You must be signed in to change notification settings - Fork 181
Add new interfaces to enable intropsection for action #1207
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -1240,6 +1240,40 @@ rcl_action_server_set_cancel_service_callback( | |
| user_data); | ||
| } | ||
|
|
||
| #define SERVER_CONFIGURE_SERVICE_INTROSPECTION(TYPE, STATE) \ | ||
| if (rcl_service_configure_service_introspection( \ | ||
| &action_server->impl->TYPE ## _service, \ | ||
| node, \ | ||
| clock, \ | ||
| type_support->TYPE ## _service_type_support, \ | ||
| publisher_options, \ | ||
| STATE) != RCL_RET_OK) \ | ||
| { \ | ||
| return RCL_RET_ERROR; \ | ||
| } | ||
|
|
||
| rcl_ret_t | ||
| rcl_action_server_configure_action_introspection( | ||
| rcl_action_server_t * action_server, | ||
| rcl_node_t * node, | ||
| rcl_clock_t * clock, | ||
| const rosidl_action_type_support_t * type_support, | ||
| const rcl_publisher_options_t publisher_options, | ||
| rcl_service_introspection_state_t introspection_state) | ||
| { | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There is a warning in Windows CI:
See reference build:
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @Barry-Xu-2018 actually this was detected by https://ci.ros2.org/job/ci_windows/23428/msbuild/, but we overlooked it.
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @Crola1702 @Barry-Xu-2018 #1212 should fix this inconsistent linkage warning. |
||
| if (!rcl_action_server_is_valid_except_context(action_server)) { | ||
| return RCL_RET_ACTION_SERVER_INVALID; | ||
| } | ||
| RCL_CHECK_ARGUMENT_FOR_NULL(node, RCL_RET_INVALID_ARGUMENT); | ||
| RCL_CHECK_ARGUMENT_FOR_NULL(clock, RCL_RET_INVALID_ARGUMENT); | ||
| RCL_CHECK_ARGUMENT_FOR_NULL(type_support, RCL_RET_INVALID_ARGUMENT); | ||
|
|
||
| SERVER_CONFIGURE_SERVICE_INTROSPECTION(goal, introspection_state); | ||
| SERVER_CONFIGURE_SERVICE_INTROSPECTION(cancel, introspection_state); | ||
| SERVER_CONFIGURE_SERVICE_INTROSPECTION(result, introspection_state); | ||
| return RCL_RET_OK; | ||
| } | ||
|
|
||
| #ifdef __cplusplus | ||
| } | ||
| #endif | ||
Uh oh!
There was an error while loading. Please reload this page.