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

QOS (Message queue depth) for topics #226

Open
Akuva2001 opened this issue Dec 25, 2024 · 0 comments
Open

QOS (Message queue depth) for topics #226

Akuva2001 opened this issue Dec 25, 2024 · 0 comments

Comments

@Akuva2001
Copy link

Configurable queue size for topics

Motivation

https://design.ros2.org/articles/qos.html

Sensor data
For sensor data, in most cases it’s more important to receive readings in a timely fashion, rather than ensuring that all of them arrive. That is, developers want the latest samples as soon as they are captured, at the expense of maybe losing some. For that reason the sensor data profile uses best effort reliability and a smaller queue depth.

In some cases we need shorter or longer queue size.

Examples:

publisher_ = this->create_publisher<std_msgs::msg::String>("topic", 10);
subscription_ = this->create_subscription<std_msgs::msg::String>(
      "topic", 10, std::bind(&MinimalSubscriber::topic_callback, this, _1));
self.publisher_ = self.create_publisher(String, 'topic', 10)
self.subscription = self.create_subscription(
            String,
            'topic',
            self.listener_callback,
            10)

In all examples 10 is a QOS parameter. I haven't found any option to set this parameter in goroslib library. Maybe I missed smth.

Is it planned to add this behaviour to the library?

Best Regards

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

No branches or pull requests

1 participant