gazebo_ros_triggered_multicamera.h
Go to the documentation of this file.
1 /*
2  * Copyright 2017 Open Source Robotics Foundation
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 #ifndef GAZEBO_ROS_TRIGGERED_MULTICAMERA_HH
19 #define GAZEBO_ROS_TRIGGERED_MULTICAMERA_HH
20 
21 #include <string>
22 #include <vector>
23 
24 // library for processing camera data for gazebo / ros conversions
27 
28 namespace gazebo
29 {
31  {
35 
38 
41  public: void Load(sensors::SensorPtr _parent, sdf::ElementPtr _sdf);
42 
43  std::vector<GazeboRosTriggeredCamera *> triggered_cameras;
44 
47  protected: virtual void OnNewFrameLeft(const unsigned char *_image,
48  unsigned int _width, unsigned int _height,
49  unsigned int _depth, const std::string &_format);
50  protected: virtual void OnNewFrameRight(const unsigned char *_image,
51  unsigned int _width, unsigned int _height,
52  unsigned int _depth, const std::string &_format);
53 
60 
61  protected: event::ConnectionPtr preRenderConnection_;
62  protected: void SetCameraEnabled(const bool _enabled);
63  protected: void PreRender();
64  };
65 }
66 #endif
67 
void SetCameraEnabled(const bool _enabled)
std::vector< GazeboRosTriggeredCamera * > triggered_cameras
void Load(sensors::SensorPtr _parent, sdf::ElementPtr _sdf)
Load the plugin.
boost::shared_ptr< boost::mutex > image_connect_count_lock_
virtual void OnNewFrameRight(const unsigned char *_image, unsigned int _width, unsigned int _height, unsigned int _depth, const std::string &_format)
virtual void OnNewFrameLeft(const unsigned char *_image, unsigned int _width, unsigned int _height, unsigned int _depth, const std::string &_format)
Update the controller FIXME: switch to function vectors.


gazebo_plugins
Author(s): John Hsu
autogenerated on Tue Mar 26 2019 02:31:27