Main Page
Namespaces
Classes
Files
File List
File Members
swarmros
src
swarmros
example
swarmros/src/swarmros/example/main.cpp
Go to the documentation of this file.
1
#include <
ros/ros.h
>
2
#include <
swarmros/example/Node.h
>
3
7
int
main
(
int
argc,
const
char
* argv[])
8
{
9
// Initialize ROS
10
ros::init
(argc, (
char
**)argv,
"example"
);
11
12
// Create node
13
swarmros::example::Node
node(
"example"
);
14
15
// Run node
16
ros::spin
();
17
18
// Exit
19
return
0;
20
}
swarmros::example::Node
Definition:
swarmros/include/swarmros/example/Node.h:14
ros::init
ROSCPP_DECL void init(int &argc, char **argv, const std::string &name, uint32_t options=0)
Node.h
ros::spin
ROSCPP_DECL void spin()
main
int main(int argc, const char *argv[])
Definition:
swarmros/src/swarmros/example/main.cpp:7
ros.h
swarmros
Author(s):
autogenerated on Fri Apr 3 2020 03:42:48