-
Notifications
You must be signed in to change notification settings - Fork 153
Expose type hash on typesupports (rep2011) #729
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
9dea631
4c61b25
1a8fce4
28519cb
6fdefcf
e4d0b6a
1dcf2f1
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 |
|---|---|---|
|
|
@@ -106,6 +106,7 @@ add_dependencies( | |
|
|
||
| set(_target_suffix "__rosidl_generator_cpp") | ||
| add_library(${rosidl_generate_interfaces_TARGET}${_target_suffix} INTERFACE) | ||
| target_compile_features(${rosidl_generate_interfaces_TARGET}${_target_suffix} INTERFACE cxx_std_17) | ||
|
Collaborator
Author
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. Is this a concern? We've upgraded everything else to C++17 but the generated interface libraries themselves hadn't actually specified a standard version. This is needed for the
Contributor
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. I don't think this is a concern; we've specified in REP-2000 that we target C++17, and we've upgraded most of the packages at this point to C++17. So I'm fine with adding this here.
Member
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. Fine with me too. |
||
| add_library(${PROJECT_NAME}::${rosidl_generate_interfaces_TARGET}${_target_suffix} ALIAS | ||
| ${rosidl_generate_interfaces_TARGET}${_target_suffix}) | ||
| target_include_directories(${rosidl_generate_interfaces_TARGET}${_target_suffix} | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -19,6 +19,7 @@ | |
|
|
||
| #include "rcutils/allocator.h" | ||
| #include "rosidl_runtime_c/message_type_support_struct.h" | ||
| #include "rosidl_runtime_c/type_hash.h" | ||
| #include "rosidl_runtime_c/visibility_control.h" | ||
|
|
||
| #include "rosidl_typesupport_interface/macros.h" | ||
|
|
@@ -81,12 +82,18 @@ struct rosidl_service_type_support_t | |
| const void * data; | ||
| /// Pointer to the service type support handler function | ||
| rosidl_service_typesupport_handle_function func; | ||
| /// Service request message typesupport | ||
| const rosidl_message_type_support_t * request_typesupport; | ||
|
Collaborator
Author
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. These |
||
| /// Service response message typesupport | ||
| const rosidl_message_type_support_t * response_typesupport; | ||
emersonknapp marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| /// Service event message typesupport | ||
| const rosidl_message_type_support_t * event_typesupport; | ||
| /// Pointer to function to create the introspection message | ||
| rosidl_event_message_create_handle_function_function event_message_create_handle_function; | ||
| /// Pointer to function to finalize the introspection message | ||
| rosidl_event_message_destroy_handle_function_function event_message_destroy_handle_function; | ||
| /// Service event message typesupport | ||
| const rosidl_message_type_support_t * event_typesupport; | ||
| /// Hash of the service's description | ||
| const rosidl_type_hash_t * type_hash; | ||
| }; | ||
|
|
||
| /// Get the service type support handle specific to this identifier. | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am getting rid of the
#define __INITby using pointers in the other places this is used as an initializer. I think everything is nicer this way.