o3m151_node.cc
Go to the documentation of this file.
1 /*
2  * License: Modified BSD Software License Agreement
3  *
4  * $Id$
5  */
6 
12 #include <ros/ros.h>
13 #include "driver.h"
14 
15 int main(int argc, char** argv)
16 {
17  ros::init(argc, argv, "o3m151_node");
18  ros::NodeHandle node;
19  ros::NodeHandle private_nh("~");
20 
21  // start the driver
22  o3m151_driver::O3M151Driver dvr(node, private_nh);
23 
24  // loop until shut down or end of file
25  while(ros::ok() && dvr.poll())
26  {
27  ros::spinOnce();
28  }
29 
30  return 0;
31 }
ROSCPP_DECL void init(int &argc, char **argv, const std::string &name, uint32_t options=0)
ROSCPP_DECL bool ok()
int main(int argc, char **argv)
Definition: o3m151_node.cc:15
ROSCPP_DECL void spinOnce()


o3m151_driver
Author(s): Vincent Rousseau
autogenerated on Mon Jun 10 2019 14:07:55