37 #ifndef WAREHOUSE_ROS_DATABASE_LOADER_ 38 #define WAREHOUSE_ROS_LOADER_ 40 #include <boost/scoped_ptr.hpp> 49 bool setParams(
const std::string& host,
unsigned port,
float timeout)
69 std::string
messageType(
const std::string& db_name,
const std::string& collection_name)
76 const std::string& collection_name){};
99 boost::scoped_ptr<pluginlib::ClassLoader<warehouse_ros::DatabaseConnection> >
db_plugin_loader_;
MessageCollectionHelper::Ptr openCollectionHelper(const std::string &db_name, const std::string &collection_name)
This class provides the mechanism to connect to a database and reads needed ROS parameters when appro...
ROSCONSOLE_DECL void initialize()
std::string messageType(const std::string &db_name, const std::string &collection_name)
Return the ROS Message type of a given collection.
Couldn't connect to database.
boost::scoped_ptr< pluginlib::ClassLoader< warehouse_ros::DatabaseConnection > > db_plugin_loader_
bool isConnected()
Returns whether the database is connected.
void dropDatabase(const std::string &db_name)
Drop a db and all its collections. A DbClientConnection exception will be thrown if the database is n...
bool setParams(const std::string &host, unsigned port, float timeout)
Set database connection params.
bool setTimeout(float timeout)
Set database connection params.