Skip to content

Add support for on sample lost event #226

@ivanpauno

Description

@ivanpauno

Feature request

Feature description

Similar to previously added events like ros2/ros2#822 or on liveliness lost, it would be good to add support to on sample lost events (which might be really helpful when debugging communication issues).

For ROS, on message lost might be a more appropriate name.

For DDS based rmw implementations, implementing this should be pretty straightforward:

Detailed list of tasks: #226 (comment)

Implementation considerations

For rmw implementations that don't support the feature, they can return RMW_RET_UNSUPPORTED, as for example fastrtps already does when the creation of an ON_*_INCOMPATIBLE_QOS event is requested.

DDS also support a status callback called on sample rejected. The difference with the previous one, is that this one reflects a reader not having resources to receive the sample and not a communication problem. I think it would be interesting to add support to that one too, maybe both can be wrapped in the same event?

Metadata

Metadata

Assignees

No one assigned

    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