Skip to content

ParameterEventHandler can be extended with ContentFiltering #2957

@fujitatomoya

Description

@fujitatomoya

Description

Currently ParameterEventHandler creates the subscription for /parameter_events and registered callbacks will be called when the parameter events are cominig in. This means that all the parameter events need to be received by this subscription no matter what, but it is likely expected that user application focus on the specific parameter of the particular node.
This can be much more efficient with ContentFiltering feature.

reference: https://github.com/ros2/design/blob/gh-pages/articles/content_filtering.md

Motivation

We can save the network traffic and much better efficiency, especially resource constrained edge devices.

Design / Implementation Considerations

IMO,

  • ParameterEventHandler constructor can support SubscriptionOption that includes the content filtering expression when it is created.
  • Introduce methods to set and get the filtering expression and parameters to the internal subscription object event_subscription_, so that user can handle the content filtering expression and parameters as they like.

Additional Information

No response

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions