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

[service introspection] generate service_event messages #700

Merged
merged 54 commits into from
Feb 2, 2023

Conversation

ihasdapie
Copy link
Member

@ihasdapie ihasdapie commented Aug 9, 2022

This PR is part of a prototype implementation for ros-infrastructure/rep#360 ros2/ros2#1285.

The rosidl generators are extended to generate a third message type for services, service events. Macro for generating interfaces in rosidl_cmake are also updated to find_package service_msgs introduced in ros2/rcl_interfaces#143 and the new dependency on service_msgs by action_msgs.

Changes:

  • Add <service_event>_Event message generation
  • Add member methods to rosidl_service_type_support_t for building service messages and to provide the publisher typesupport handle.

This PR depends on #696

Service introspection: ros2/ros2#1285

Copy link
Member

@jacobperron jacobperron left a comment

Choose a reason for hiding this comment

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

I think this PR can be rebased on rolling now.

rosidl_cmake/cmake/rosidl_generate_interfaces.cmake Outdated Show resolved Hide resolved
rosidl_cmake/cmake/rosidl_generate_interfaces.cmake Outdated Show resolved Hide resolved
rosidl_generator_cpp/resource/msg__struct.hpp.em Outdated Show resolved Hide resolved
@jacobperron jacobperron self-assigned this Sep 1, 2022
rosidl_cmake/rosidl_cmake/__init__.py Outdated Show resolved Hide resolved
rosidl_cmake/cmake/rosidl_generate_interfaces.cmake Outdated Show resolved Hide resolved
rosidl_cmake/cmake/rosidl_generate_interfaces.cmake Outdated Show resolved Hide resolved
rosidl_cmake/cmake/rosidl_generate_interfaces.cmake Outdated Show resolved Hide resolved
rosidl_cmake/cmake/rosidl_generate_interfaces.cmake Outdated Show resolved Hide resolved
rosidl_generator_tests/CMakeLists.txt Outdated Show resolved Hide resolved
rosidl_parser/rosidl_parser/definition.py Show resolved Hide resolved
@jacobperron
Copy link
Member

rebased on rolling

Copy link
Member

@ivanpauno ivanpauno left a comment

Choose a reason for hiding this comment

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

LGTM!

@jacobperron jacobperron marked this pull request as ready for review October 3, 2022 23:48
@jacobperron jacobperron force-pushed the service_introspection branch 2 times, most recently from 781943c to 8390962 Compare October 12, 2022 23:22
Copy link
Member

@ivanpauno ivanpauno left a comment

Choose a reason for hiding this comment

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

LGTM!
I have left some comments for myself to double check before merging.

rosidl_generator_cpp/resource/msg__struct.hpp.em Outdated Show resolved Hide resolved
Copy link
Member

@ivanpauno ivanpauno left a comment

Choose a reason for hiding this comment

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

same for typesupport introspection cpp

@ivanpauno
Copy link
Member

ivanpauno commented Nov 16, 2022

CI:

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

@ivanpauno
Copy link
Member

There's a bug with actions, I have to double check what's going on

@ivanpauno
Copy link
Member

Hopefully got it right now:

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

@ivanpauno
Copy link
Member

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

@ivanpauno
Copy link
Member

windows error seems unrelated, though I don't see that happening in the nightlies ....
But there's no way these PR can make mimick_vendor fail.

There are also new linter failres, but those should be easy to fix ...

ihasdapie and others added 24 commits January 23, 2023 18:55
Signed-off-by: Brian Chen <brian.chen@openrobotics.org>
This was probably a bug introduced during a rebase.

Signed-off-by: Jacob Perron <jacob@openrobotics.org>
Signed-off-by: Jacob Perron <jacob@openrobotics.org>
This allows users to pass interfaces in nested directories, e.g. test/srv/Foo.srv, instead of requiring them to be
directly inside a 'srv' or 'action' directory relative to the cmake source directory.

Signed-off-by: Jacob Perron <jacob@openrobotics.org>
Signed-off-by: Jacob Perron <jacob@openrobotics.org>
Signed-off-by: Jacob Perron <jacob@openrobotics.org>
Signed-off-by: Jacob Perron <jacob@openrobotics.org>
Signed-off-by: Ivan Santiago Paunovic <ivanpauno@ekumenlabs.com>
…on c/cpp

Signed-off-by: Ivan Santiago Paunovic <ivanpauno@ekumenlabs.com>
Signed-off-by: Ivan Santiago Paunovic <ivanpauno@ekumenlabs.com>
…esupports

Signed-off-by: Ivan Santiago Paunovic <ivanpauno@ekumenlabs.com>
…ture

Signed-off-by: Ivan Santiago Paunovic <ivanpauno@ekumenlabs.com>
Signed-off-by: Ivan Santiago Paunovic <ivanpauno@ekumenlabs.com>
Signed-off-by: Ivan Santiago Paunovic <ivanpauno@ekumenlabs.com>
Signed-off-by: Ivan Santiago Paunovic <ivanpauno@ekumenlabs.com>
Signed-off-by: Ivan Santiago Paunovic <ivanpauno@ekumenlabs.com>
Signed-off-by: Ivan Santiago Paunovic <ivanpauno@ekumenlabs.com>
Signed-off-by: Ivan Santiago Paunovic <ivanpauno@ekumenlabs.com>
Signed-off-by: Ivan Santiago Paunovic <ivanpauno@ekumenlabs.com>
Signed-off-by: Ivan Santiago Paunovic <ivanpauno@ekumenlabs.com>
Signed-off-by: Ivan Santiago Paunovic <ivanpauno@ekumenlabs.com>
…rt_tests

Signed-off-by: Ivan Santiago Paunovic <ivanpauno@ekumenlabs.com>
Signed-off-by: Ivan Santiago Paunovic <ivanpauno@ekumenlabs.com>
That is more correct, as this should not be a UUID.

Signed-off-by: Chris Lalancette <clalancette@openrobotics.org>
@clalancette
Copy link
Contributor

CI for this is in ros2/ros2#1285 (comment)

@clalancette clalancette merged commit a63f32e into rolling Feb 2, 2023
@delete-merged-branch delete-merged-branch bot deleted the service_introspection branch February 2, 2023 14:34
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.

6 participants