Main Page
Namespaces
Classes
Files
File List
File Members
src
driver
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
}
ros::NodeHandle
o3m151_driver::O3M151Driver
Definition:
driver.h:28
ros::init
ROSCPP_DECL void init(int &argc, char **argv, const std::string &name, uint32_t options=0)
driver.h
ros::ok
ROSCPP_DECL bool ok()
ros.h
o3m151_driver::O3M151Driver::poll
bool poll(void)
Definition:
driver.cc:66
main
int main(int argc, char **argv)
Definition:
o3m151_node.cc:15
ros::spinOnce
ROSCPP_DECL void spinOnce()
o3m151_driver
Author(s): Vincent Rousseau
autogenerated on Mon Jun 10 2019 14:07:55