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 112 of file database_loader.h.

Constructor & Destructor Documentation

◆ DatabaseLoader()

warehouse_ros::DatabaseLoader::DatabaseLoader ( )

Takes a warehouse_ros DatabaseConnection. The DatabaseConnection is expected to have already been initialized.

Definition at line 75 of file database_loader.cpp.

◆ ~DatabaseLoader()

warehouse_ros::DatabaseLoader::~DatabaseLoader ( )

Definition at line 80 of file database_loader.cpp.

Member Function Documentation

◆ initialize()

void warehouse_ros::DatabaseLoader::initialize ( )

Initialize the DatabaseLoader.

Definition at line 84 of file database_loader.cpp.

◆ loadDatabase()

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 98 of file database_loader.cpp.

Member Data Documentation

◆ db_plugin_loader_

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

Definition at line 131 of file database_loader.h.

◆ nh_

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

Definition at line 130 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 Wed Oct 16 2024 02:42:07