This class provides the mechanism to connect to a database and reads needed ROS parameters when appropriate. More...
#include <database_loader.h>
Public Member Functions | |
DatabaseLoader () | |
Takes a warehouse_ros DatabaseConnection. The DatabaseConnection is expected to have already been initialized. | |
void | initialize () |
Initialize the DatabaseLoader. | |
DatabaseConnection::Ptr | loadDatabase () |
Load a database connection using pluginlib Looks for ROS params specifying which plugin/host/port to use. NodeHandle::searchParam() is used starting from ~ to look for warehouse_plugin, warehouse_host and warehouse_port. | |
~DatabaseLoader () | |
Private Attributes | |
boost::scoped_ptr < pluginlib::ClassLoader < warehouse_ros::DatabaseConnection > > | db_plugin_loader_ |
ros::NodeHandle | nh_ |
This class provides the mechanism to connect to a database and reads needed ROS parameters when appropriate.
Definition at line 83 of file database_loader.h.
Takes a warehouse_ros DatabaseConnection. The DatabaseConnection is expected to have already been initialized.
Definition at line 44 of file database_loader.cpp.
Definition at line 50 of file database_loader.cpp.
Initialize the DatabaseLoader.
Definition at line 54 of file database_loader.cpp.
Load a database connection using pluginlib Looks for ROS params specifying which plugin/host/port to use. NodeHandle::searchParam() is used starting from ~ to look for warehouse_plugin, warehouse_host and warehouse_port.
Definition at line 68 of file database_loader.cpp.
boost::scoped_ptr<pluginlib::ClassLoader<warehouse_ros::DatabaseConnection> > warehouse_ros::DatabaseLoader::db_plugin_loader_ [private] |
Definition at line 101 of file database_loader.h.
Definition at line 100 of file database_loader.h.