8000 Request for API that returns how many messages are ready for a subscription · Issue #1109 · ros2/rcl · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Request for API that returns how many messages are ready for a subscription #1109
Open
@sloretz

Description

@sloretz

Feature request

Context: #1106 test_subscription.cpp testing rcl_take_sequence has an arbitrary sleep for 500 ms to wait for at least 3 messages to become ready. It cant just wait for the subscription itself to be ready because that only means at least one message is ready.

Feature description

The feature request is an api that returns how many messages are ready to be taken. Thsi of course can't be more than the history size QoS setting.

rcl_ret_t rcl_how_many_messages_ready(rcl_subscription_t sub, size_t * num);

Implementation considerations

This likely needs a new rmw API and RMW implementation support.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0