Public Member Functions | Private Attributes | List of all members
warehouse_ros::DatabaseLoader Class Reference

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_
 

Detailed Description

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.

Constructor & Destructor Documentation

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.

Member Function Documentation

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.

Member Data Documentation

boost::scoped_ptr<pluginlib::ClassLoader<warehouse_ros::DatabaseConnection> > warehouse_ros::DatabaseLoader::db_plugin_loader_
private

Definition at line 99 of file database_loader.h.

ros::NodeHandle warehouse_ros::DatabaseLoader::nh_
private

Definition at line 98 of file database_loader.h.


The documentation for this class was generated from the following files:


warehouse_ros
Author(s): Bhaskara Marthi , Connor Brew
autogenerated on Mon Apr 26 2021 02:23:26