Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
src
nodes
sync_node.cpp
Go to the documentation of this file.
1
#include <
ros/ros.h
>
2
#include <boost/thread.hpp>
3
#include <
avt_vimba_camera/sync.h
>
4
5
int
main
(
int
argc,
char
** argv)
6
{
7
ros::init
(argc, argv,
"sync_node"
);
8
9
ros::NodeHandle
nh;
10
ros::NodeHandle
nhp(
"~"
);
11
12
avt_vimba_camera::Sync
sync(nh,nhp);
13
14
boost::thread syncThread(&
avt_vimba_camera::Sync::run
, &sync);
15
16
// ROS spin
17
ros::Rate
r(10);
18
while
(
ros::ok
())
19
r.
sleep
();
20
21
ros::shutdown
();
22
return
0;
23
}
ros::NodeHandle
main
int main(int argc, char **argv)
Definition:
sync_node.cpp:5
ros::init
ROSCPP_DECL void init(int &argc, char **argv, const std::string &name, uint32_t options=0)
ros::Rate
avt_vimba_camera::Sync
Definition:
sync.h:48
ros::ok
ROSCPP_DECL bool ok()
ros::Rate::sleep
bool sleep()
ros.h
sync.h
avt_vimba_camera::Sync::run
void run()
Definition:
sync.cpp:46
ros::shutdown
ROSCPP_DECL void shutdown()
avt_vimba_camera
Author(s): Miquel Massot
, Allied Vision Technologies
autogenerated on Wed Jun 5 2019 22:22:40