Main Page
Namespaces
Classes
Files
File List
File Members
test
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
}
ros::master::check
ROSCPP_DECL bool check()
main
int main(int argc, char **argv)
Definition:
main_test.cpp:20
ros::init
ROSCPP_DECL void init(int &argc, char **argv, const std::string &name, uint32_t options=0)
ros::this_node::getName
ROSCPP_DECL const std::string & getName()
amcl3d::Test::spin
void spin()
Definition:
Test.cpp:33
amcl3d::Test
Definition:
Test.h:26
ROS_INFO
#define ROS_INFO(...)
ROS_ERROR
#define ROS_ERROR(...)
amcl3d
Author(s): Francisco J.Perez-Grau
autogenerated on Sun Sep 15 2019 04:08:05