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. More... | |
void | initialize () |
Initialize the DatabaseLoader. More... | |
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. More... | |
~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 80 of file database_loader.h.
warehouse_ros::DatabaseLoader::DatabaseLoader | ( | ) |
Takes a warehouse_ros DatabaseConnection. The DatabaseConnection is expected to have already been initialized.
Definition at line 43 of file database_loader.cpp.
warehouse_ros::DatabaseLoader::~DatabaseLoader | ( | ) |
Definition at line 48 of file database_loader.cpp.
void warehouse_ros::DatabaseLoader::initialize | ( | ) |
Initialize the DatabaseLoader.
Definition at line 52 of file database_loader.cpp.
DatabaseConnection::Ptr warehouse_ros::DatabaseLoader::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.
Definition at line 66 of file database_loader.cpp.
|
private |
Definition at line 99 of file database_loader.h.
|
private |
Definition at line 98 of file database_loader.h.