List of all members.
Definition at line 45 of file message_collection.py.
Constructor & Destructor Documentation
@param db: Name of database
@param coll: Name of collection
@param indexes: List of fields to build indexes on.
@param msg_class: The class of the message object being stored
@param db_host: The host where the db server is listening.
@param db_port: The port on which the db server is listening.
Creates collection, db, and indexes if don't already exist.
The database host and port are set to the provided values if given.
If not, the ROS parameters warehouse_host and warehouse_port are used,
and these in turn default to localhost and 27017.
Definition at line 47 of file message_collection.py.
Member Function Documentation
Like query except returns a single matching item, or None if
no item exists
Definition at line 145 of file message_collection.py.
@param m: Message to insert
@param metadata: Dictionary of metadata to associate with message
Definition at line 103 of file message_collection.py.
Perform a query.
@return: Iterator over tuples (message, metadata) if metadata_only is
False, or iterator over metadata if it's true
Definition at line 127 of file message_collection.py.
Update a message and/or metadata.
@param entry: The existing metadata entry
@param metadata: Updates to metadata. These are merged with the existing dictionary entries.
@param msg: If specified, a new message object to store in place of the current one.
Definition at line 167 of file message_collection.py.
Member Data Documentation
The documentation for this class was generated from the following file: