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 }
AlbReader::parse
int parse()
Parse data from the input stream (ROS callback).
Definition: alb_reader.cpp:48
ros::init
ROSCPP_DECL void init(const M_string &remappings, const std::string &name, uint32_t options=0)
ros.h
ros::spinOnce
ROSCPP_DECL void spinOnce()
main
int main(int argc, char **argv)
Definition: main.cpp:7
AlbReader::init
bool init()
Initialize the parser.
Definition: alb_reader.cpp:29
ros::ok
ROSCPP_DECL bool ok()
AlbReader
Class to read data from the ALB live stream.
Definition: alb_reader.h:15
alb_reader.h
ROS_ERROR
#define ROS_ERROR(...)
ROS_INFO
#define ROS_INFO(...)
ros::NodeHandle


outsight_alb_driver
Author(s): Outsight
autogenerated on Thu Oct 13 2022 02:21:45