17 #ifndef _MULTIRAYSHAPE_HH_
18 #define _MULTIRAYSHAPE_HH_
51 public:
virtual void Init();
60 public:
double GetRange(
unsigned int _index);
65 public:
double GetRetro(
unsigned int _index);
70 public:
int GetFiducial(
unsigned int _index);
74 public:
double GetMinRange()
const;
78 public:
double GetMaxRange()
const;
82 public:
double GetResRange()
const;
86 public:
int GetSampleCount()
const;
90 public:
double GetScanResolution()
const;
102 public:
int GetVerticalSampleCount()
const;
106 public:
double GetVerticalScanResolution()
const;
117 public:
void Update();
122 public:
void FillMsg(msgs::Geometry &_msg);
127 public:
virtual void ProcessMsg(
const msgs::Geometry &_msg);
132 public:
template<
typename T>
134 {
return this->newLaserScans.Connect(_subscriber);}
139 {this->newLaserScans.Disconnect(_conn);}
142 protected:
virtual void UpdateRays() = 0;
151 protected: std::vector<RayShapePtr>
rays;
boost::shared_ptr< Connection > ConnectionPtr
Definition: CommonTypes.hh:144
sdf::ElementPtr rayElem
Ray SDF element pointer.
Definition: MultiRayShape.hh:157
Encapsulates a position and rotation in three space.
Definition: Pose.hh:40
The Vector3 class represents the generic vector containing 3 elements.
Definition: Vector3.hh:43
math::Pose offset
Pose offset of all the rays.
Definition: MultiRayShape.hh:154
Laser collision contains a set of ray-collisions, structured to simulate a laser range scanner...
Definition: MultiRayShape.hh:41
void DisconnectNewLaserScans(event::ConnectionPtr &_conn)
Disconnect from the new laser scans signal.
Definition: MultiRayShape.hh:138
sdf::ElementPtr vertElem
Vertical SDF element pointer.
Definition: MultiRayShape.hh:166
event::EventT< void()> newLaserScans
New laser scans event.
Definition: MultiRayShape.hh:172
sdf::ElementPtr scanElem
Scan SDF element pointer.
Definition: MultiRayShape.hh:160
Base class for all shapes.
Definition: Shape.hh:40
sdf::ElementPtr rangeElem
Range SDF element pointer.
Definition: MultiRayShape.hh:169
std::vector< RayShapePtr > rays
Ray data.
Definition: MultiRayShape.hh:151
boost::shared_ptr< Collision > CollisionPtr
Definition: PhysicsTypes.hh:94
event::ConnectionPtr ConnectNewLaserScans(T _subscriber)
Connect a to the new laser scan signal.
Definition: MultiRayShape.hh:133
GAZEBO_VISIBLE void Init(google::protobuf::Message &_message, const std::string &_id="")
Initialize a message.
An angle and related functions.
Definition: Angle.hh:52
sdf::ElementPtr horzElem
Horizontal SDF element pointer.
Definition: MultiRayShape.hh:163
#define GAZEBO_VISIBLE
Use to represent "symbol visible" if supported.
Definition: system.hh:48