Main Page
Namespaces
Classes
Files
File List
File Members
src
nodelets.cpp
Go to the documentation of this file.
1
#include <
ros/ros.h
>
2
#include <
ros/time.h
>
3
4
#include <
pluginlib/class_list_macros.h
>
5
#include <
nodelet/nodelet.h
>
6
7
#include "
uvc_camera/camera.h
"
8
#include "
uvc_camera/stereocamera.h
"
9
10
namespace
uvc_camera
{
11
12
class
CameraNodelet
:
public
nodelet::Nodelet
{
13
public
:
14
CameraNodelet
() {}
15
16
void
onInit
() {
17
ros::NodeHandle
node =
getNodeHandle
();
18
ros::NodeHandle
pnode =
getPrivateNodeHandle
();
19
20
camera
=
new
Camera
(node, pnode);
21
}
22
23
~CameraNodelet
() {
24
if
(
camera
)
delete
camera
;
25
}
26
27
private
:
28
Camera
*
camera
;
29
};
30
31
class
StereoNodelet
:
public
nodelet::Nodelet
{
32
public
:
33
StereoNodelet
() {}
34
35
void
onInit
() {
36
ros::NodeHandle
node =
getNodeHandle
();
37
ros::NodeHandle
pnode =
getPrivateNodeHandle
();
38
39
stereo =
new
StereoCamera
(node, pnode);
40
}
41
42
~StereoNodelet
() {
43
if
(stereo)
delete
stereo;
44
}
45
46
private
:
47
StereoCamera
*
stereo
;
48
};
49
50
};
51
52
PLUGINLIB_EXPORT_CLASS
(
uvc_camera::CameraNodelet
,
nodelet::Nodelet
)
53
PLUGINLIB_EXPORT_CLASS(
uvc_camera
::
StereoNodelet
,
nodelet
::
Nodelet
)
54
ros::NodeHandle
time.h
uvc_camera::CameraNodelet::camera
Camera * camera
Definition:
nodelets.cpp:28
camera.h
uvc_camera::StereoNodelet::~StereoNodelet
~StereoNodelet()
Definition:
nodelets.cpp:42
uvc_camera::StereoNodelet
Definition:
nodelets.cpp:31
uvc_camera::CameraNodelet::~CameraNodelet
~CameraNodelet()
Definition:
nodelets.cpp:23
uvc_camera
Definition:
camera.h:7
uvc_camera::StereoCamera
Definition:
stereocamera.h:15
nodelet::Nodelet::getPrivateNodeHandle
ros::NodeHandle & getPrivateNodeHandle() const
nodelet.h
nodelet::Nodelet
class_list_macros.h
nodelet::Nodelet::Nodelet
Nodelet()
nodelet::Nodelet::getNodeHandle
ros::NodeHandle & getNodeHandle() const
ros.h
uvc_camera::CameraNodelet
Definition:
nodelets.cpp:12
uvc_camera::StereoNodelet::StereoNodelet
StereoNodelet()
Definition:
nodelets.cpp:33
uvc_camera::Camera
Definition:
camera.h:9
uvc_camera::CameraNodelet::CameraNodelet
CameraNodelet()
Definition:
nodelets.cpp:14
nodelet
uvc_camera::StereoNodelet::onInit
void onInit()
Definition:
nodelets.cpp:35
stereocamera.h
uvc_camera::CameraNodelet::onInit
void onInit()
Definition:
nodelets.cpp:16
uvc_camera::StereoNodelet::stereo
StereoCamera * stereo
Definition:
nodelets.cpp:47
PLUGINLIB_EXPORT_CLASS
#define PLUGINLIB_EXPORT_CLASS(class_type, base_class_type)
uvc_camera
Author(s): Ken Tossell
autogenerated on Sat Jun 8 2019 17:54:12