Represents a channel subscription, and can be used to unsubscribe and set options. More...
Inherited by lcm::LCMMHSubscription< MessageType, MessageHandlerClass >, lcm::LCMMHUntypedSubscription< MessageHandlerClass >, lcm::LCMTypedSubscription< MessageType, ContextClass >, and lcm::LCMUntypedSubscription< ContextClass >.
|int||setQueueCapacity (int num_messages)|
|Adjusts the maximum number of received messages that can be queued up for this subscription. More...|
Represents a channel subscription, and can be used to unsubscribe and set options.
To unsubscribe, pass the instance to LCM::unsubscribe(). Once unsubscribed, the object is destroyed and can not be used anymore.
Adjusts the maximum number of received messages that can be queued up for this subscription.
|num_messages||the maximum queue size, in messages. The default is 30.|
Setting this to a low number may reduce overall latency at the expense of dropping more messages. Conversely, setting this to a high number may drop fewer messages at the expense of increased latency. A value of 0 indicates no limit, and should be used very carefully.
The underlying lcm_subscription_t object wrapped by this subscription.