58 "DatabaseConnection"));
62 ROS_FATAL_STREAM(
"Exception while creating database_connection plugin loader " << ex.what());
77 paramName =
"warehouse_plugin";
81 ROS_ERROR(
"Could not find parameter for database plugin name");
92 ROS_ERROR_STREAM(
"Exception while loading database plugin '" << db_plugin <<
"': " << ex.what() << std::endl);
96 bool hostFound =
false;
97 bool portFound =
false;
100 paramName =
"warehouse_host";
108 paramName =
"warehouse_port";
115 if (hostFound && portFound)
117 db->setParams(host, port);
DatabaseConnection::Ptr loadDatabase()
Load a database connection using pluginlib Looks for ROS params specifying which plugin/host/port to ...
bool getParamCached(const std::string &key, std::string &s) const
DatabaseLoader()
Takes a warehouse_ros DatabaseConnection. The DatabaseConnection is expected to have already been ini...
boost::scoped_ptr< pluginlib::ClassLoader< warehouse_ros::DatabaseConnection > > db_plugin_loader_
#define ROS_FATAL_STREAM(args)
bool searchParam(const std::string &key, std::string &result) const
void initialize()
Initialize the DatabaseLoader.
#define ROS_ERROR_STREAM(args)
boost::shared_ptr< DatabaseConnection > Ptr