main_test.cpp
Go to the documentation of this file.
1 
18 #include "../test/Test.h"
19 
20 int main(int argc, char** argv)
21 {
22  ros::init(argc, argv, "test_node");
23 
24  ROS_INFO("[%s] Test initialization.", ros::this_node::getName().data());
25 
26  if (!ros::master::check())
27  {
28  ROS_ERROR("[%s] roscore is not running.", ros::this_node::getName().data());
29  return EXIT_FAILURE;
30  }
31 
32  amcl3d::Test node;
33  node.spin();
34 
35  ROS_INFO("[%s] Test finished.", ros::this_node::getName().data());
36 
37  return EXIT_SUCCESS;
38 }
ROSCPP_DECL bool check()
int main(int argc, char **argv)
Definition: main_test.cpp:20
ROSCPP_DECL void init(int &argc, char **argv, const std::string &name, uint32_t options=0)
ROSCPP_DECL const std::string & getName()
void spin()
Definition: Test.cpp:33
#define ROS_INFO(...)
#define ROS_ERROR(...)


amcl3d
Author(s): Francisco J.Perez-Grau
autogenerated on Sun Sep 15 2019 04:08:05