main.cpp
Go to the documentation of this file.
1 // ROS headers
2 #include "ros/ros.h"
3 
4 // Local headers
5 #include "alb_reader.h"
6 
7 int main(int argc, char **argv)
8 {
9  ros::init(argc, argv, "alb_data");
10  ros::NodeHandle node_handle;
11 
12  ROS_INFO("[alb_data] - Init node");
13  AlbReader reader(node_handle);
14 
15  if (!reader.init()) {
16  ROS_ERROR("[alb_data] Invalid initialization");
17  return -1;
18  }
19 
20  while (ros::ok()) {
21  reader.parse();
22  ros::spinOnce();
23  }
24 
25  return 0;
26 }
int main(int argc, char **argv)
Definition: main.cpp:7
ROSCPP_DECL void init(int &argc, char **argv, const std::string &name, uint32_t options=0)
int parse()
Parse data from the input stream (ROS callback).
Definition: alb_reader.cpp:48
Class to read data from the ALB live stream.
Definition: alb_reader.h:15
#define ROS_INFO(...)
ROSCPP_DECL bool ok()
bool init()
Initialize the parser.
Definition: alb_reader.cpp:29
ROSCPP_DECL void spinOnce()
#define ROS_ERROR(...)


outsight_alb_driver
Author(s): Outsight
autogenerated on Fri Oct 14 2022 02:29:51