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 
gazebo::GazeboRosTriggeredMultiCamera
Definition: gazebo_ros_triggered_multicamera.h:30
boost::shared_ptr< int >
gazebo
gazebo::GazeboRosTriggeredMultiCamera::was_active_
boost::shared_ptr< bool > was_active_
Definition: gazebo_ros_triggered_multicamera.h:59
MultiCameraPlugin.h
gazebo::GazeboRosTriggeredMultiCamera::OnNewFrameRight
virtual void OnNewFrameRight(const unsigned char *_image, unsigned int _width, unsigned int _height, unsigned int _depth, const std::string &_format)
Definition: gazebo_ros_triggered_multicamera.cpp:116
gazebo::GazeboRosTriggeredMultiCamera::PreRender
void PreRender()
gazebo::GazeboRosTriggeredMultiCamera::preRenderConnection_
event::ConnectionPtr preRenderConnection_
Definition: gazebo_ros_triggered_multicamera.h:61
gazebo::GazeboRosTriggeredMultiCamera::OnNewFrameLeft
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.
Definition: gazebo_ros_triggered_multicamera.cpp:97
gazebo::GazeboRosTriggeredMultiCamera::Load
void Load(sensors::SensorPtr _parent, sdf::ElementPtr _sdf)
Load the plugin.
Definition: gazebo_ros_triggered_multicamera.cpp:47
gazebo::GazeboRosTriggeredMultiCamera::SetCameraEnabled
void SetCameraEnabled(const bool _enabled)
gazebo::GazeboRosTriggeredMultiCamera::~GazeboRosTriggeredMultiCamera
~GazeboRosTriggeredMultiCamera()
Destructor.
Definition: gazebo_ros_triggered_multicamera.cpp:43
gazebo_ros_triggered_camera.h
gazebo::GazeboRosTriggeredMultiCamera::GazeboRosTriggeredMultiCamera
GazeboRosTriggeredMultiCamera()
Constructor.
Definition: gazebo_ros_triggered_multicamera.cpp:37
gazebo::GazeboRosTriggeredMultiCamera::triggered_cameras
std::vector< GazeboRosTriggeredCamera * > triggered_cameras
Definition: gazebo_ros_triggered_multicamera.h:43
gazebo::MultiCameraPlugin
Definition: MultiCameraPlugin.h:30
gazebo::GazeboRosTriggeredMultiCamera::image_connect_count_
boost::shared_ptr< int > image_connect_count_
Definition: gazebo_ros_triggered_multicamera.h:57
gazebo::GazeboRosTriggeredMultiCamera::image_connect_count_lock_
boost::shared_ptr< boost::mutex > image_connect_count_lock_
Definition: gazebo_ros_triggered_multicamera.h:58


gazebo_plugins
Author(s): John Hsu
autogenerated on Thu Nov 23 2023 03:50:28