MultiCameraSensorPrivate.hh
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2015-2016 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 #ifndef _GAZEBO_SENSORS_MULTICAMERA_SENSOR_PRIVATE_HH_
18 #define _GAZEBO_SENSORS_MULTICAMERA_SENSOR_PRIVATE_HH_
19 
20 #include <vector>
21 #include <mutex>
22 
23 #include "gazebo/msgs/msgs.hh"
25 
26 namespace gazebo
27 {
28  namespace sensors
29  {
33  {
35  public: std::vector<rendering::CameraPtr> cameras;
36 
38  public: mutable std::mutex cameraMutex;
39 
42 
44  public: msgs::ImagesStamped msg;
45 
47  public: bool rendered;
48  };
49  }
50 }
51 #endif
Forward declarations for transport.
std::mutex cameraMutex
Mutex to protect the cameras list.
Definition: MultiCameraSensorPrivate.hh:38
Definition: MultiCameraSensorPrivate.hh:32
std::vector< rendering::CameraPtr > cameras
All the cameras.
Definition: MultiCameraSensorPrivate.hh:35
transport::PublisherPtr imagePub
Publishes messages of type msgs::ImagesStamped.
Definition: MultiCameraSensorPrivate.hh:41
msgs::ImagesStamped msg
The images msg.
Definition: MultiCameraSensorPrivate.hh:44
bool rendered
True if the sensor was rendered.
Definition: MultiCameraSensorPrivate.hh:47
boost::shared_ptr< Publisher > PublisherPtr
Definition: TransportTypes.hh:49