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

Composition API #554

Open
wants to merge 2 commits into
base: rolling
Choose a base branch
from
Open

Conversation

crystaldust
Copy link

@crystaldust crystaldust commented Jul 14, 2020

Make ros2cli able to handle Python components. The changes:

  • Add type rclpy_components
  • Get the components' metadata by py entry points, related repo: rcl_component_searchers.
  • For rclpy_components, use Python's entry_points API to get the metadata, while for rclcpp_components, use a general ament resource searcher, which can also be applied to other programming language implementations(just add an entry point item in the above project's setup.py)
  • When calling ros2 component list, add the component resource types(rclpy_components or rclcpp_components) to the output
  • Another related example project: rclpy_composition_example

The concrete component searchers for different languages will be
provided in python entry points.
Basically there are two component types:
- Python entry point component, specific for python
- Ament resource component, more general for other languages.

Signed-off-by: Zhen Ju <[email protected]>
Update comments and licenses.

Signed-off-by: Zhen Ju <[email protected]>
@ivanpauno ivanpauno requested a review from jacobperron August 27, 2020 18:06
@jacobperron jacobperron removed their assignment Feb 26, 2021
@audrow audrow self-assigned this Feb 26, 2021
@audrow
Copy link
Member

audrow commented Feb 26, 2021

@crystaldust, any updates on this? I believe that this is waiting on changes to be made to ros2/rclpy#599, correct?

@crystaldust
Copy link
Author

@audrow Yes, this feature depends on #554 on rclpy. I'll make sure 554 is first merged, and then let's consider this one.

@audrow audrow changed the base branch from master to rolling June 28, 2022 14:23
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.

3 participants