LCM .NET API
|
Accumulates received LCM messages in a queue. More...
Classes | |
class | Message |
A received message. More... | |
Public Member Functions | |
void | MessageReceived (LCM lcm, string channel, LCMDataInputStream dins) |
Internal method, called by LCM when a message is received. More... | |
Message | GetNextMessage (long timeoutMs) |
Attempt to retrieve the next received LCM message. More... | |
Message | GetNextMessage () |
Retrieves the next message, waiting if necessary. More... | |
Properties | |
long | MaxBufferSize [get, set] |
Retrieves and sets the maximum amount of memory that will be used to store messages. This is an alternative way to limit the messages stored by the aggregator. Messages are discarded oldest-first to ensure that the total size of unretrieved messages stays under this limit. More... | |
int | MaxMessages [get, set] |
Retrieves and sets the maximum number of unretrieved message that will be queued up by the aggregator. Messages are discarded oldest-first to ensure that the number of unretrieved messages stays under this limit. More... | |
int | MessagesAvailable [get] |
The number of received messages waiting to be retrieved. More... | |
Accumulates received LCM messages in a queue.
LCM normally delivers messages asynchronously by invoking the messageReceived method on a subscriber as soon as a message is received. This class provides an alternate way to receive messages by storing them in an internal queue, and then delivering them to synchronously to the user.
The aggregator has configurable limits. If too many messages are aggregated without having been retrieved, then older messages are discarded.
|
inline |
Retrieves the next message, waiting if necessary.
|
inline |
|
inline |
Internal method, called by LCM when a message is received.
Implements LCM.LCM.LCMSubscriber.
|
getset |
Retrieves and sets the maximum amount of memory that will be used to store messages. This is an alternative way to limit the messages stored by the aggregator. Messages are discarded oldest-first to ensure that the total size of unretrieved messages stays under this limit.
val | memory limit, in bytes. |
|
getset |
Retrieves and sets the maximum number of unretrieved message that will be queued up by the aggregator. Messages are discarded oldest-first to ensure that the number of unretrieved messages stays under this limit.
|
get |
The number of received messages waiting to be retrieved.