GpuRaySensorPrivate.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_GPURAYENSOR_PRIVATE_HH_
18 #define _GAZEBO_SENSORS_GPURAYENSOR_PRIVATE_HH_
19 
20 #include <mutex>
21 #include <sdf/sdf.hh>
22 
26 #include "gazebo/msgs/msgs.hh"
27 
28 namespace gazebo
29 {
30  namespace sensors
31  {
35  {
37  public: sdf::ElementPtr scanElem;
38 
40  public: sdf::ElementPtr horzElem;
41 
43  public: sdf::ElementPtr vertElem;
44 
46  public: sdf::ElementPtr rangeElem;
47 
49  public: sdf::ElementPtr cameraElem;
50 
52  public: unsigned int horzRayCount;
53 
55  public: unsigned int vertRayCount;
56 
58  public: unsigned int horzRangeCount;
59 
61  public: unsigned int vertRangeCount;
62 
64  public: double rangeCountRatio;
65 
68 
70  public: std::mutex mutex;
71 
73  public: msgs::LaserScanStamped laserMsg;
74 
77 
80 
82  public: bool rendered;
83  };
84  }
85 }
86 #endif
double rangeCountRatio
Range count ratio.
Definition: GpuRaySensorPrivate.hh:64
transport::PublisherPtr scanPub
Publisher to publish ray sensor data.
Definition: GpuRaySensorPrivate.hh:79
Forward declarations for transport.
default namespace for gazebo
rendering::GpuLaserPtr laserCam
GPU laser rendering.
Definition: GpuRaySensorPrivate.hh:67
sdf::ElementPtr cameraElem
Camera SDF element.
Definition: GpuRaySensorPrivate.hh:49
physics::EntityPtr parentEntity
Parent entity of gpu ray sensor.
Definition: GpuRaySensorPrivate.hh:76
sdf::ElementPtr horzElem
Horizontal SDF element.
Definition: GpuRaySensorPrivate.hh:40
bool rendered
True if the sensor was rendered.
Definition: GpuRaySensorPrivate.hh:82
boost::shared_ptr< Entity > EntityPtr
Definition: PhysicsTypes.hh:80
boost::shared_ptr< GpuLaser > GpuLaserPtr
Definition: RenderTypes.hh:104
sdf::ElementPtr vertElem
Vertical SDF element.
Definition: GpuRaySensorPrivate.hh:43
msgs::LaserScanStamped laserMsg
Laser message to publish data.
Definition: GpuRaySensorPrivate.hh:73
unsigned int horzRangeCount
Horizontal range count.
Definition: GpuRaySensorPrivate.hh:58
unsigned int vertRangeCount
Vertical range count.
Definition: GpuRaySensorPrivate.hh:61
unsigned int vertRayCount
Vertical ray count.
Definition: GpuRaySensorPrivate.hh:55
sdf::ElementPtr rangeElem
Range SDF element.
Definition: GpuRaySensorPrivate.hh:46
Definition: GpuRaySensorPrivate.hh:34
boost::shared_ptr< Publisher > PublisherPtr
Definition: TransportTypes.hh:49
unsigned int horzRayCount
Horizontal ray count.
Definition: GpuRaySensorPrivate.hh:52
sdf::ElementPtr scanElem
Scan SDF elementz.
Definition: GpuRaySensorPrivate.hh:37
std::mutex mutex
Mutex to protect getting ranges.
Definition: GpuRaySensorPrivate.hh:70