Main Page
Namespaces
Classes
Files
File List
File Members
ros
src
image_flip_nodelet.cpp
Go to the documentation of this file.
1
/*
2
* Copyright 2017 Fraunhofer Institute for Manufacturing Engineering and Automation (IPA)
3
*
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
* you may not use this file except in compliance with the License.
6
* You may obtain a copy of the License at
7
*
8
* http://www.apache.org/licenses/LICENSE-2.0
9
10
* Unless required by applicable law or agreed to in writing, software
11
* distributed under the License is distributed on an "AS IS" BASIS,
12
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
* See the License for the specific language governing permissions and
14
* limitations under the License.
15
*/
16
17
18
//##################
19
//#### includes ####
20
21
// ROS includes
22
#include <
ros/ros.h
>
23
#include <
nodelet/nodelet.h
>
24
25
// image flip code
26
#include <
cob_image_flip/image_flip.h
>
27
28
// this should really be in the implementation (.cpp file)
29
#include <
pluginlib/class_list_macros.h
>
30
31
namespace
cob_image_flip
32
{
33
class
ImageFlipNodelet
:
public
nodelet::Nodelet
34
{
35
protected
:
36
ros::NodeHandle
node_handle_
;
37
ImageFlip
*
image_flip_
;
38
39
public
:
40
41
ImageFlipNodelet
()
42
{
43
image_flip_ = 0;
44
};
45
46
~ImageFlipNodelet
()
47
{
48
if
(image_flip_ != 0)
49
delete
image_flip_
;
50
};
51
52
virtual
void
onInit
()
53
{
54
// Create a handle for this node, initialize node
55
node_handle_ =
getPrivateNodeHandle
();
56
57
// Create ImageFlip class instance
58
image_flip_ =
new
ImageFlip
(node_handle_);
59
}
60
};
61
}
62
63
// watch the capitalization carefully
64
PLUGINLIB_EXPORT_CLASS
(
cob_image_flip::ImageFlipNodelet
,
nodelet::Nodelet
)
cob_image_flip
Definition:
image_flip.h:48
cob_image_flip::ImageFlipNodelet::image_flip_
ImageFlip * image_flip_
Definition:
image_flip_nodelet.cpp:37
ros::NodeHandle
PLUGINLIB_EXPORT_CLASS
PLUGINLIB_EXPORT_CLASS(BAGReader, nodelet::Nodelet)
cob_image_flip::ImageFlip
Definition:
image_flip.h:50
cob_image_flip::ImageFlipNodelet
Definition:
image_flip_nodelet.cpp:33
nodelet::Nodelet::getPrivateNodeHandle
ros::NodeHandle & getPrivateNodeHandle() const
nodelet.h
nodelet::Nodelet
class_list_macros.h
cob_image_flip::ImageFlipNodelet::ImageFlipNodelet
ImageFlipNodelet()
Definition:
image_flip_nodelet.cpp:41
cob_image_flip::ImageFlipNodelet::node_handle_
ros::NodeHandle node_handle_
Definition:
image_flip_nodelet.cpp:36
ros.h
cob_image_flip::ImageFlipNodelet::~ImageFlipNodelet
~ImageFlipNodelet()
Definition:
image_flip_nodelet.cpp:46
cob_image_flip::ImageFlipNodelet::onInit
virtual void onInit()
Definition:
image_flip_nodelet.cpp:52
image_flip.h
cob_image_flip
Author(s): Richard Bormann
autogenerated on Sun Oct 18 2020 13:13:18