ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Azucena's profile - activity

2013-07-12 04:07:21 -0500 received badge  Popular Question (source)
2013-07-12 04:07:21 -0500 received badge  Notable Question (source)
2013-07-12 04:07:21 -0500 received badge  Famous Question (source)
2011-03-25 05:19:54 -0500 marked best answer how does second term of advertise

I believe you're talking about the queue size parameter in roscpp. From the roscpp overview:

for publishing

queue_size [required]

This is the size of the outgoing message queue. If you are publishing faster than roscpp can send the messages over the wire, roscpp will start dropping old messages. A value of 0 here means an infinite queue, which can be dangerous.

for subscribing

queue_size

This is the incoming message queue size roscpp will use for your callback. If messages are arriving too fast and you are unable to keep up, roscpp will start throwing away messages. A value of 0 here means an infinite queue, which can be dangerous.

2011-03-22 21:24:30 -0500 asked a question how does second term of advertise

Hello. I'm writing a program that reads data from a laser. This information is published by stage or a bag file. I know that the second parameter of the function advertise() or subscribe() is the size of the message queue, but how does this value? for example, I have assigned 50 but in other examples value turns to 10 , How does this changes affect the program?

Thanks in advance, azucena