SensorPrivate.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_SENSOR_PRIVATE_HH_
18 #define _GAZEBO_SENSORS_SENSOR_PRIVATE_HH_
19 
20 #include <mutex>
21 #include <sdf/sdf.hh>
22 
24 
25 #include "gazebo/common/Event.hh"
26 #include "gazebo/common/Time.hh"
30 
31 namespace gazebo
32 {
33  namespace sensors
34  {
38  {
40  public: std::mutex mutexLastUpdateTime;
41 
44 
47 
50 
53 
55  public: uint32_t id;
56 
59  public: static sdf::ElementPtr sdfSensor;
60  };
62  }
63 }
64 #endif
static sdf::ElementPtr sdfSensor
An SDF pointer that allows us to only read the sensor.sdf file once, which in turns limits disk reads...
Definition: SensorPrivate.hh:59
transport::PublisherPtr sensorPub
Publish sensor data.
Definition: SensorPrivate.hh:46
Definition: SensorPrivate.hh:37
Forward declarations for transport.
default namespace for gazebo
uint32_t id
The sensors unique ID.
Definition: SensorPrivate.hh:55
std::mutex mutexLastUpdateTime
Mutex to protect resetting lastUpdateTime.
Definition: SensorPrivate.hh:40
event::EventT< void()> updated
Event triggered when a sensor is updated.
Definition: SensorPrivate.hh:43
common::Time updateDelay
Keep track how much the update has been delayed.
Definition: SensorPrivate.hh:52
SensorCategory
SensorCategory is used to categorize sensors.
Definition: SensorTypes.hh:303
SensorCategory category
The category of the sensor.
Definition: SensorPrivate.hh:49
Forward declarations and typedefs for sensors.
boost::shared_ptr< Publisher > PublisherPtr
Definition: TransportTypes.hh:49
A Time class, can be used to hold wall- or sim-time.
Definition: Time.hh:44