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

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