test_dbloader.cpp
Go to the documentation of this file.
00001 #include <warehouse_ros/database_loader.h>
00002 #include <ros/ros.h>
00003 
00004 int main(int argc, char **argv)
00005 {
00006   ros::init(argc, argv, "db_loader_test", ros::init_options::AnonymousName);
00007 
00008   warehouse_ros::DatabaseLoader dbloader;
00009   warehouse_ros::DatabaseConnection::Ptr conn = dbloader.loadDatabase();
00010   //conn->setParams("localhost", 27017, 10.0);
00011   conn->setTimeout(10.0);
00012   if (!conn->connect())
00013     ROS_ERROR("Failed to connect to DB");
00014 
00015   ros::shutdown();
00016 }


warehouse_ros
Author(s): Bhaskara Marthi , Connor Brew
autogenerated on Thu Jun 23 2016 05:36:41