Namespaces | Classes | Typedefs | Functions | Variables
mongo_ros Namespace Reference

Namespaces

namespace  message_collection
namespace  util

Classes

struct  DbConnectException
 Couldn't find matching message in collection. More...
class  LiveTransformSource
class  MessageCollection
struct  MessageWithMetadata
 Class that wraps (via inheritance) a ROS message type, together with additional metadata (a yaml dictionary) More...
class  Metadata
 Represents metadata attached to a message. Automatically includes a unique id and creation time. More...
class  MongoRosException
 A base class for all pose_graph exceptions; provides a handy boost::format parent constructor. More...
struct  NoMatchingMessageException
 Couldn't find matching message in collection. More...
class  Query
 Represents a query to the db. More...
struct  QueryResults
 A templated typedef for convenience. More...
class  ResultIterator
class  TransformCollection
class  TransformSource
class  WrappedBSON
 Internal parent class. More...

Typedefs

typedef std::auto_ptr
< mongo::DBClientCursor > 
Cursor
typedef boost::shared_ptr< CursorCursorPtr

Functions

void dropDatabase (const std::string &db)
void dropDatabase (const std::string &db, const std::string &host, unsigned port, const float timeout)
void dropDatabase (const string &db_name)
void dropDatabase (const string &db, const string &host, const unsigned port, const float timeout)
string getHost (ros::NodeHandle nh, const string &host="")
template<class P >
getParam (const ros::NodeHandle &nh, const string &name, const P &default_val)
 Get a parameter, with default values.
int getPort (ros::NodeHandle nh, const int port=0)
boost::shared_ptr
< mongo::DBClientConnection > 
makeDbConnection (const ros::NodeHandle &nh, const std::string &host="", const unsigned &port=0, float timeout=300.0)
boost::shared_ptr
< mongo::DBClientConnection > 
makeDbConnection (const ros::NodeHandle &nh, const string &host, const unsigned &port, const float timeout)
std::string messageType (mongo::DBClientConnection &conn, const std::string &db, const std::string &coll)
 Return the ROS Message type of a given collection.
string messageType (mongo::DBClientConnection &conn, const string &db, const string &coll)

Variables

const double INC = 1.0

Typedef Documentation

typedef std::auto_ptr<mongo::DBClientCursor> mongo_ros::Cursor

Definition at line 50 of file query_results.h.

typedef boost::shared_ptr<Cursor> mongo_ros::CursorPtr

Definition at line 51 of file query_results.h.


Function Documentation

void mongo_ros::dropDatabase ( const std::string &  db)

Drop a db and all its collections Uses the connection parameters given by the warehouse_host and warehouse_port ROS parameters

void mongo_ros::dropDatabase ( const std::string &  db,
const std::string &  host,
unsigned  port,
const float  timeout 
)

Drop a db and its collections, given host and port parameters, and a timeout. A DbClientConnection exception will be thrown if we can't connect in time.

void mongo_ros::dropDatabase ( const string &  db_name)

Definition at line 110 of file mongo_ros.cpp.

void mongo_ros::dropDatabase ( const string &  db,
const string &  host,
const unsigned  port,
const float  timeout 
)

Definition at line 115 of file mongo_ros.cpp.

string mongo_ros::getHost ( ros::NodeHandle  nh,
const string &  host = "" 
)

Definition at line 58 of file mongo_ros.cpp.

template<class P >
P mongo_ros::getParam ( const ros::NodeHandle nh,
const string &  name,
const P &  default_val 
)

Get a parameter, with default values.

Definition at line 49 of file mongo_ros.cpp.

int mongo_ros::getPort ( ros::NodeHandle  nh,
const int  port = 0 
)

Definition at line 67 of file mongo_ros.cpp.

boost::shared_ptr<mongo::DBClientConnection> mongo_ros::makeDbConnection ( const ros::NodeHandle nh,
const std::string &  host = "",
const unsigned &  port = 0,
float  timeout = 300.0 
)
boost::shared_ptr<mongo::DBClientConnection> mongo_ros::makeDbConnection ( const ros::NodeHandle nh,
const string &  host,
const unsigned &  port,
const float  timeout 
)

Definition at line 77 of file mongo_ros.cpp.

std::string mongo_ros::messageType ( mongo::DBClientConnection &  conn,
const std::string &  db,
const std::string &  coll 
)

Return the ROS Message type of a given collection.

string mongo_ros::messageType ( mongo::DBClientConnection &  conn,
const string &  db,
const string &  coll 
)

Definition at line 124 of file mongo_ros.cpp.


Variable Documentation

const double mongo_ros::INC = 1.0

Definition at line 53 of file transform_collection.cpp.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Friends


mongo_ros
Author(s): Bhaskara Marthi
autogenerated on Mon Sep 2 2013 11:11:08