Sensor with one or more rays. More...
#include <IRSensor.hh>

Public Member Functions | |
| IRSensor (Body *body) | |
| Constructor. | |
| virtual | ~IRSensor () |
| Destructor. | |
| unsigned int | GetIRCount () const |
| Get the ray count. | |
| double | GetRange (unsigned int index) const |
| Get detected range for a ray. | |
| Pose | GetPose (unsigned int index) const |
Protected Member Functions | |
| virtual void | LoadChild (sdf::ElementPtr &_sdf) |
| Load the ray using parameter from an SDF. | |
| virtual void | InitChild () |
| Initialize the ray. | |
| virtual void | UpdateChild () |
| Update sensed values. | |
| virtual void | FiniChild () |
| Finalize the ray. | |
Sensor with one or more rays.
This sensor cast rays into the world, tests for intersections, and reports the range to the nearest object. It is used by ranging sensor models (e.g., sonars and scanning laser range finders).
| IRSensor | ( | Body * | body | ) |
Constructor.
| body | The underlying collision test uses an ODE collision, so ray sensors must be attached to a body. |
| unsigned int GetIRCount | ( | ) | const |
Get the ray count.
| double GetRange | ( | unsigned int | index | ) | const |
Get detected range for a ray.
| virtual void LoadChild | ( | sdf::ElementPtr & | _sdf | ) | [protected, virtual] |
Load the ray using parameter from an SDF.
| _sdf | The SDF parameter |
1.7.5.1