Skip to content

Topic Statistics 0 publish period publishes statistics as fast as possible #1147

@emersonknapp

Description

@emersonknapp

Bug report

Required Info:

Steps to reproduce issue

SubscriptionOptions options; 
options.topic_stats_options.publish_period = 0ms;
node->create_subscription(..., options);

Expected behavior

Throw an error, or don't publish, not sure which is more appropriate.

Actual behavior

Publishes at about 2500Hz, probably the rate of the spin loop?

Additional information

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions