Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
src
nodes
stereo_camera_node.cpp
Go to the documentation of this file.
1
#include <
ros/ros.h
>
2
#include <boost/thread.hpp>
3
#include <
avt_vimba_camera/stereo_camera.h
>
4
5
int
main
(
int
argc,
char
** argv)
6
{
7
ros::init
(argc, argv,
"stereo_camera_node"
);
8
9
ros::NodeHandle
nh;
10
ros::NodeHandle
nhp(
"~"
);
11
12
avt_vimba_camera::StereoCamera
sc(nh,nhp);
13
boost::thread stereoThread(&
avt_vimba_camera::StereoCamera::run
, &sc);
14
15
// ROS spin
16
ros::Rate
r(10);
17
while
(
ros::ok
())
18
r.
sleep
();
19
ros::shutdown
();
20
21
return
0;
22
}
main
int main(int argc, char **argv)
Definition:
stereo_camera_node.cpp:5
ros::NodeHandle
ros::init
ROSCPP_DECL void init(int &argc, char **argv, const std::string &name, uint32_t options=0)
ros::Rate
avt_vimba_camera::StereoCamera::run
void run()
Definition:
stereo_camera.cpp:60
stereo_camera.h
ros::ok
ROSCPP_DECL bool ok()
ros::Rate::sleep
bool sleep()
ros.h
avt_vimba_camera::StereoCamera
Definition:
stereo_camera.h:63
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