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
27 
28 // this should really be in the implementation (.cpp file)
30 
31 namespace cob_image_flip
32 {
34 {
35 protected:
38 
39 public:
40 
42  {
43  image_flip_ = 0;
44  };
45 
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
PLUGINLIB_EXPORT_CLASS(BAGReader, nodelet::Nodelet)
ros::NodeHandle & getPrivateNodeHandle() const


cob_image_flip
Author(s): Richard Bormann
autogenerated on Sun Oct 18 2020 13:13:18