Go to the documentation of this file.
37 #ifndef WAREHOUSE_ROS_DATABASE_LOADER_
38 #define WAREHOUSE_ROS_DATABASE_LOADER_
40 #include <boost/scoped_ptr.hpp>
46 class DBConnectionStub :
public DatabaseConnection
49 bool setParams(
const std::string& ,
unsigned ,
float )
override
69 std::string
messageType(
const std::string& ,
const std::string& )
override
76 const std::string& collection_name)
override;
99 boost::scoped_ptr<pluginlib::ClassLoader<warehouse_ros::DatabaseConnection> >
db_plugin_loader_;
boost::scoped_ptr< pluginlib::ClassLoader< warehouse_ros::DatabaseConnection > > db_plugin_loader_
DatabaseLoader()
Takes a warehouse_ros DatabaseConnection. The DatabaseConnection is expected to have already been ini...
DatabaseConnection::Ptr loadDatabase()
Load a database connection using pluginlib Looks for ROS params specifying which plugin/host/port to ...
Couldn't connect to database.
void dropDatabase(const std::string &) override
Drop a db and all its collections. A DbClientConnection exception will be thrown if the database is n...
bool setTimeout(float) override
Set database connection params.
void initialize()
Initialize the DatabaseLoader.
This class provides the mechanism to connect to a database and reads needed ROS parameters when appro...
boost::shared_ptr< MessageCollectionHelper > Ptr
std::string messageType(const std::string &, const std::string &) override
Return the ROS Message type of a given collection.
bool setParams(const std::string &, unsigned, float) override
Set database connection params.
MessageCollectionHelper::Ptr openCollectionHelper(const std::string &db_name, const std::string &collection_name) override
bool isConnected() override
Returns whether the database is connected.
warehouse_ros
Author(s): Bhaskara Marthi
, Connor Brew
autogenerated on Wed Oct 16 2024 02:42:07