-
Notifications
You must be signed in to change notification settings - Fork 150
[service introspection] generate service_event messages #700
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
Merged
Merged
Changes from all commits
Commits
Show all changes
54 commits
Select commit
Hold shift + click to select a range
fe1f905
add service event message
ihasdapie 0b85d8c
fix service introspection message compilation issues
ihasdapie 1e2ba8a
Add service_msgs to rosidl_cmake
ihasdapie 45c078f
event_messages for action services
ihasdapie 0f43042
codegen a sequence extending fn
ihasdapie 41945b8
embed message types into generated service_event msg
ihasdapie b7d9b99
add handles to creating/finalizing introspection messages to service_…
ihasdapie a076ffe
remote __extendn msg__function
ihasdapie d2d2da9
introspection ts for service event messages
ihasdapie 90e498a
turn on/off enabling message payload
ihasdapie a8c1441
add service_msgs to action_msgs cmake macro
ihasdapie 610bbf1
Move common Python functions into new package
jacobperron b7db739
Lint
jacobperron dccf0a1
fix find_package-ing for packages defining services and actions
ihasdapie 957f0a9
use postfixes from rosidl_parser.definition and add some docs
ihasdapie 9743d97
missing bracket
ihasdapie a4925f2
event_messages for action services
ihasdapie f682055
codegen a sequence extending fn
ihasdapie 4d47424
remote __extendn msg__function
ihasdapie ba1ec51
introspection ts for service event messages
ihasdapie 42dd4d2
turn on/off enabling message payload
ihasdapie 3d5537b
add service_msgs to action_msgs cmake macro
ihasdapie fb9c2bf
fix find_package-ing for packages defining services and actions
ihasdapie 1a560be
use postfixes from rosidl_parser.definition and add some docs
ihasdapie bbed8ad
missing bracket
ihasdapie 373cebe
add service_msgs <test_depend> tag where needed
ihasdapie 171caee
make service_introspection_message_create_handle take const void*
ihasdapie 62f1f9e
add parser test
ihasdapie ca9ec5f
streamline rosidl_generate_interfaces cmake logic
ihasdapie 9a89ee5
add some generator tests
ihasdapie 5fdfded
rename from introspection_message handles to event_message handles
ihasdapie 820712f
Remove duplicate template instances
jacobperron d535a6e
Refactor action/service loop
jacobperron ad1bd4a
Use last directory in path to identify actions and services
jacobperron e0d75d1
Do not rely on service_msgs_FOUND
jacobperron 96f3223
Lint
jacobperron 220ff59
Fix test
jacobperron 00b5433
Modify recursive includes in rosidl_generator_c/rosidl_generator_cpp
ivanpauno 68ff7b5
add service event create/destroy function for typesupport introspecti…
ivanpauno b3be446
Generate only one implementation of functions per generator
ivanpauno 99607ee
Create only one create/destroy service event function for all cpp typ…
ivanpauno 81e768f
Remove enable_message_payload from create service event message signa…
ivanpauno 0649944
fixes
ivanpauno ec537d7
Add missing includes
ivanpauno 11e4f8b
Include name
ivanpauno d5f40ef
Fix
ivanpauno 785c3a1
please linters
ivanpauno 84299e5
Avoid signed unsigned comparison
ivanpauno e842886
Complete implementation
ivanpauno 9378583
Fix rosidl_runtime_cpp linters
ivanpauno b3edf00
Address peer review comments
ivanpauno a3712ca
Fixes after adding tests for rosidl_typesupport_c in rosidl_typesuppo…
ivanpauno 00b3784
Remove debug message
ivanpauno 01beada
Switch to a client_gid.
clalancette File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| @# Included from rosidl_generator_c/resource/idl__type_support.c.em | ||
| @{ | ||
| TEMPLATE( | ||
| 'srv__type_support.c.em', | ||
| package_name=package_name, service=action.send_goal_service, | ||
| interface_path=interface_path, include_directives=include_directives) | ||
| }@ | ||
|
|
||
| @{ | ||
| TEMPLATE( | ||
| 'srv__type_support.c.em', | ||
| package_name=package_name, service=action.get_result_service, | ||
| interface_path=interface_path, include_directives=include_directives) | ||
| }@ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,70 @@ | ||
| // generated from rosidl_generator_c/resource/idl__type_support.c.em | ||
| // with input from @(package_name):@(interface_path) | ||
| // generated code does not contain a copyright notice | ||
| @ | ||
| @####################################################################### | ||
| @# EmPy template for generating <idl>__type_support.c files | ||
| @# | ||
| @# Context: | ||
| @# - package_name (string) | ||
| @# - interface_path (Path relative to the directory named after the package) | ||
| @# - content (IdlContent, list of elements, e.g. Messages or Services) | ||
| @####################################################################### | ||
| @{ | ||
| from rosidl_pycommon import convert_camel_case_to_lower_case_underscore | ||
| include_parts = [package_name] + list(interface_path.parents[0].parts) + [ | ||
| 'detail', convert_camel_case_to_lower_case_underscore(interface_path.stem)] | ||
| include_base = '/'.join(include_parts) | ||
|
|
||
| include_directives = { | ||
| 'rosidl_typesupport_interface/macros.h', | ||
| include_base + '__type_support.h', | ||
| include_base + '__struct.h', | ||
| include_base + '__functions.h'} | ||
| }@ | ||
|
|
||
| #include <string.h> | ||
|
|
||
| @[for header_file in include_directives]@ | ||
| #include "@(header_file)" | ||
| @[end for]@ | ||
|
|
||
| #ifdef __cplusplus | ||
| extern "C" | ||
| { | ||
| #endif | ||
|
|
||
| @####################################################################### | ||
| @# Handle service | ||
| @####################################################################### | ||
| @{ | ||
| from rosidl_parser.definition import Service | ||
| }@ | ||
| @[for service in content.get_elements_of_type(Service)]@ | ||
| @{ | ||
| TEMPLATE( | ||
| 'srv__type_support.c.em', | ||
| package_name=package_name, service=service, | ||
| interface_path=interface_path, include_directives=include_directives) | ||
| }@ | ||
|
|
||
| @[end for]@ | ||
| @ | ||
| @####################################################################### | ||
| @# Handle action | ||
| @####################################################################### | ||
| @{ | ||
| from rosidl_parser.definition import Action | ||
| }@ | ||
| @[for action in content.get_elements_of_type(Action)]@ | ||
| @{ | ||
| TEMPLATE( | ||
| 'action__type_support.c.em', | ||
| package_name=package_name, action=action, | ||
| interface_path=interface_path, include_directives=include_directives) | ||
| }@ | ||
|
|
||
| @[end for]@ | ||
| #ifdef __cplusplus | ||
| } | ||
| #endif |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.