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");
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 }
void publish()
Definition: ellipse.cpp:242
int main(int argc, char **argv)
Definition: main.cpp:5
ROSCPP_DECL void init(int &argc, char **argv, const std::string &name, uint32_t options=0)
int m_rate_frequency
Definition: ellipse.h:95
#define ROS_INFO(...)
void configure()
Definition: ellipse.cpp:100
ROSCPP_DECL bool ok()
bool sleep()
void connect()
Definition: ellipse.cpp:39
void init_publishers()
Definition: ellipse.cpp:59
void init_callback()
Definition: ellipse.cpp:54
ROSCPP_DECL void spinOnce()


sbg_driver
Author(s):
autogenerated on Sun Jan 27 2019 03:42:19