17 #ifndef _RAYSENSOR_HH_
18 #define _RAYSENSOR_HH_
31 class OgreDynamicLines;
57 public:
virtual void Load(
const std::string &_worldName);
60 public:
virtual void Init();
63 protected:
virtual bool UpdateImpl(
bool _force);
66 protected:
virtual void Fini();
69 public:
virtual std::string GetTopic()
const;
81 public:
double GetAngleResolution()
const;
85 public:
double GetRangeMin()
const;
89 public:
double GetRangeMax()
const;
93 public:
double GetRangeResolution()
const;
97 public:
int GetRayCount()
const;
101 public:
int GetRangeCount()
const;
105 public:
int GetVerticalRayCount()
const;
109 public:
int GetVerticalRangeCount()
const;
121 public:
double GetVerticalAngleResolution()
const;
132 public:
double GetRange(
unsigned int _index);
136 public:
void GetRanges(std::vector<double> &_ranges);
147 public:
double GetRetro(
unsigned int _index);
158 public:
int GetFiducial(
unsigned int _index);
163 {
return this->laserShape;}
166 public:
virtual bool IsActive();
173 private: boost::mutex mutex;
174 private: msgs::LaserScanStamped laserMsg;
Forward declarations for transport.
physics::MultiRayShapePtr GetLaserShape() const
Returns a pointer to the internal physics::MultiRayShape.
Definition: RaySensor.hh:162
boost::shared_ptr< Collision > CollisionPtr
Definition: PhysicsTypes.hh:94
boost::shared_ptr< MultiRayShape > MultiRayShapePtr
Definition: PhysicsTypes.hh:122
boost::shared_ptr< Entity > EntityPtr
Definition: PhysicsTypes.hh:74
Sensor with one or more rays.
Definition: RaySensor.hh:48
GAZEBO_VISIBLE void Init(google::protobuf::Message &_message, const std::string &_id="")
Initialize a message.
An angle and related functions.
Definition: Angle.hh:52
boost::shared_ptr< Publisher > PublisherPtr
Definition: TransportTypes.hh:49
Base class for sensors.
Definition: Sensor.hh:67
#define GAZEBO_VISIBLE
Use to represent "symbol visible" if supported.
Definition: system.hh:48