sync_node.cpp
Go to the documentation of this file.
1 #include <ros/ros.h>
2 #include <boost/thread.hpp>
4 
5 int main(int argc, char** argv)
6 {
7  ros::init(argc, argv, "sync_node");
8 
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 }
int main(int argc, char **argv)
Definition: sync_node.cpp:5
ROSCPP_DECL void init(int &argc, char **argv, const std::string &name, uint32_t options=0)
ROSCPP_DECL bool ok()
bool sleep()
ROSCPP_DECL void shutdown()


avt_vimba_camera
Author(s): Miquel Massot , Allied Vision Technologies
autogenerated on Wed Jun 5 2019 22:22:40