test_dbloader.cpp
Go to the documentation of this file.
2 #include <ros/ros.h>
3 
4 int main(int argc, char** argv)
5 {
6  ros::init(argc, argv, "db_loader_test", ros::init_options::AnonymousName);
7 
10  // conn->setParams("localhost", 27017, 10.0);
11  conn->setTimeout(10.0);
12  if (!conn->connect())
13  ROS_ERROR("Failed to connect to DB");
14 
15  ros::shutdown();
16 }
ros::init_options::AnonymousName
AnonymousName
boost::shared_ptr
ros::init
ROSCPP_DECL void init(const M_string &remappings, const std::string &name, uint32_t options=0)
ros.h
warehouse_ros::DatabaseLoader::loadDatabase
DatabaseConnection::Ptr loadDatabase()
Load a database connection using pluginlib Looks for ROS params specifying which plugin/host/port to ...
Definition: database_loader.cpp:98
ros::shutdown
ROSCPP_DECL void shutdown()
main
int main(int argc, char **argv)
Definition: test_dbloader.cpp:4
warehouse_ros::DatabaseLoader
This class provides the mechanism to connect to a database and reads needed ROS parameters when appro...
Definition: database_loader.h:112
ROS_ERROR
#define ROS_ERROR(...)
database_loader.h


warehouse_ros
Author(s): Bhaskara Marthi , Connor Brew
autogenerated on Wed Oct 16 2024 02:42:07