main_services.cpp
Go to the documentation of this file.
1 // ROS headers
2 #include "ros/ros.h"
3 
4 // Local headers
5 #include "alb_requester.h"
6 
7 int main(int argc, char **argv)
8 {
9  ros::init(argc, argv, "alb_services");
10  ros::NodeHandle node_handle;
11  AlbRequester requester(node_handle);
12  ros::Rate rate(20);
13 
14  if (!requester.init()) {
15  ROS_ERROR("[alb_services] Invalid initialization");
16  return -1;
17  }
18 
19  while (ros::ok()) {
20  ros::spinOnce();
21  rate.sleep();
22  }
23 
24  return 0;
25 }
ROSCPP_DECL void init(int &argc, char **argv, const std::string &name, uint32_t options=0)
int main(int argc, char **argv)
ROSCPP_DECL bool ok()
bool sleep()
bool init(void)
Initialize the ALB requester.
Class to send requests to the ALB.
Definition: alb_requester.h:13
ROSCPP_DECL void spinOnce()
#define ROS_ERROR(...)


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