Main Page
Classes
Files
File List
File Members
src
main.cpp
Go to the documentation of this file.
1
#include "
ros/ros.h
"
2
#include "
ellipse.h
"
3
4
5
int
main
(
int
argc,
char
**argv)
6
{
7
ros::init
(argc, argv,
"sbg_ellipse"
);
8
ros::NodeHandle
n;
9
10
ROS_INFO
(
"SBG DRIVER - Init node & load params"
);
11
Ellipse
ellipse(&n);
12
13
ellipse.
init_publishers
();
14
15
ROS_INFO
(
"SBG DRIVER - Ellipse connect"
);
16
ellipse.
connect
();
17
18
ROS_INFO
(
"SBG DRIVER - Ellipse configure"
);
19
ellipse.
configure
();
20
21
ROS_INFO
(
"SBG DRIVER - Init callback"
);
22
ellipse.
init_callback
();
23
24
ROS_INFO
(
"SBG DRIVER - START RECEIVING DATA"
);
25
ros::Rate
loop_rate(ellipse.
m_rate_frequency
);
26
while
(
ros::ok
())
27
{
28
ellipse.
publish
();
29
30
ros::spinOnce
();
31
loop_rate.
sleep
();
32
}
33
34
return
0;
35
}
Ellipse
Definition:
ellipse.h:14
ros::NodeHandle
Ellipse::publish
void publish()
Definition:
ellipse.cpp:242
main
int main(int argc, char **argv)
Definition:
main.cpp:5
ros::init
ROSCPP_DECL void init(int &argc, char **argv, const std::string &name, uint32_t options=0)
Ellipse::m_rate_frequency
int m_rate_frequency
Definition:
ellipse.h:95
ros::Rate
ROS_INFO
#define ROS_INFO(...)
Ellipse::configure
void configure()
Definition:
ellipse.cpp:100
ros::ok
ROSCPP_DECL bool ok()
ellipse.h
ros::Rate::sleep
bool sleep()
ros.h
Ellipse::connect
void connect()
Definition:
ellipse.cpp:39
Ellipse::init_publishers
void init_publishers()
Definition:
ellipse.cpp:59
Ellipse::init_callback
void init_callback()
Definition:
ellipse.cpp:54
ros::spinOnce
ROSCPP_DECL void spinOnce()
sbg_driver
Author(s):
autogenerated on Sun Jan 27 2019 03:42:19