Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
include
omronsentech_camera
stcamera_nodelet.h
Go to the documentation of this file.
1
/******************************************************************************
2
* Software License Agreement (BSD License)
3
*
4
* Copyright (C) 2018, OMRON SENTECH. All rights reserved.
5
*
6
* Redistribution and use in source and binary forms, with or without
7
* modification, are permitted provided that the following conditions are met:
8
* * Redistributions of source code must retain the above copyright notice,
9
* this list of conditions and the following disclaimer.
10
* * Redistributions in binary form must reproduce the above copyright
11
* notice, this list of conditions and the following disclaimer in the
12
* documentation and/or other materials provided with the distribution.
13
* * Neither the names of OMRON SENTECH nor the names of its
14
* contributors may be used to endorse or promote products derived from
15
* this software without specific prior written permission.
16
*
17
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
18
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
19
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
20
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
21
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
22
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
23
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
24
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
25
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
26
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
27
* POSSIBILITY OF SUCH DAMAGE.
28
*****************************************************************************/
29
36
#ifndef STCAMERA_STCAMERA_NODELET_H
37
#define STCAMERA_STCAMERA_NODELET_H
38
39
#include <boost/thread.hpp>
40
#include <
nodelet/nodelet.h
>
41
#include <
pluginlib/class_list_macros.h
>
42
#include "
omronsentech_camera/stcamera_node.h
"
43
44
namespace
stcamera
45
{
46
52
class
StCameraNodelet
:
public
nodelet::Nodelet
53
{
54
public
:
55
56
/* Constructor.
57
*/
58
StCameraNodelet
();
59
60
/* Destructor.
61
*/
62
~StCameraNodelet
();
63
66
virtual
void
onInit
()
override
;
67
70
void
spinFunc
();
71
72
private
:
73
75
boost::shared_ptr<StCameraNode>
node_
;
76
78
boost::shared_ptr<boost::thread>
spinThread_
;
79
81
volatile
bool
running_
;
82
};
83
}
84
#endif
stcamera::StCameraNodelet::running_
volatile bool running_
Definition:
stcamera_nodelet.h:81
stcamera::StCameraNodelet::spinThread_
boost::shared_ptr< boost::thread > spinThread_
Definition:
stcamera_nodelet.h:78
stcamera::StCameraNodelet::node_
boost::shared_ptr< StCameraNode > node_
Definition:
stcamera_nodelet.h:75
stcamera::StCameraNodelet::StCameraNodelet
StCameraNodelet()
Definition:
stcamera_nodelet.cpp:34
boost::shared_ptr
nodelet.h
nodelet::Nodelet
class_list_macros.h
stcamera::StCameraNodelet::~StCameraNodelet
~StCameraNodelet()
Definition:
stcamera_nodelet.cpp:38
stcamera
Definition:
stcamera_interface.h:87
stcamera::StCameraNodelet::spinFunc
void spinFunc()
Definition:
stcamera_nodelet.cpp:59
stcamera_node.h
Class implementation for stcamera_node.
stcamera::StCameraNodelet
Nodelet implementation of stcamera_node.
Definition:
stcamera_nodelet.h:52
stcamera::StCameraNodelet::onInit
virtual void onInit() override
Definition:
stcamera_nodelet.cpp:49
omronsentech_camera
Author(s): OSE ROS Support
autogenerated on Tue Jul 2 2019 19:28:17