PlayerCc::LaserProxy Class Reference
[Proxies]
#include <playerc++.h>
Inherits PlayerCc::ClientProxy.
Detailed Description
TheLaserProxy
class is used to control a laser device.
The latest scan data is held in two arrays: ranges
and intensity
. The laser scan range, resolution and so on can be configured using the Configure() method.
Public Member Functions | |
LaserProxy (PlayerClient *aPc, uint aIndex=0) | |
constructor | |
~LaserProxy () | |
destructor | |
uint | GetCount () const |
Number of points in scan. | |
double | GetMaxRange () const |
Max range for the latest set of data (meters). | |
double | GetScanRes () const |
Angular resolution of scan (radians). | |
double | GetRangeRes () const |
Range resolution of scan (mm). | |
double | GetMinAngle () const |
Scan range for the latest set of data (radians). | |
double | GetMaxAngle () const |
Scan range for the latest set of data (radians). | |
bool | IntensityOn () const |
Whether or not reflectance (i.e., intensity) values are being returned. | |
player_point_2d_t | GetPoint (uint aIndex) const |
Scan data (Cartesian): x,y (m). | |
double | GetRange (uint aIndex) const |
get the range | |
double | GetBearing (uint aIndex) const |
get the bearing | |
int | GetIntensity (uint aIndex) const |
get the intensity | |
void | Configure (double aMinAngle, double aMaxAngle, uint aScanRes, uint aRangeRes, bool aIntensity) |
Configure the laser scan pattern. | |
void | RequestConfigure () |
Get the current laser configuration; it is read into the relevant class attributes. | |
void | RequestGeom () |
Get the laser's geometry; it is read into the relevant class attributes. | |
player_pose_t | GetPose () |
Accessor for the pose of the laser with respect to its parent object (e.g., a robot). | |
player_pose_t | GetRobotPose () |
Accessor for the pose of the laser's parent object (e.g., a robot). | |
player_bbox_t | GetSize () |
Accessor for the size (fill it in by calling RequestGeom). | |
double | GetMinLeft () const |
Minimum range reading on the left side. | |
double | GetMinRight () const |
Minimum range reading on the right side. | |
double | MinLeft () const |
double | MinRight () const |
double | operator[] (uint index) const |
Range access operator. |
Member Function Documentation
|
Configure the laser scan pattern.
Angles |
|
Accessor for the pose of the laser with respect to its parent object (e.g., a robot). Fill it in by calling RequestGeom. |
|
Accessor for the pose of the laser's parent object (e.g., a robot). Filled in by some (but not all) laser data messages. |
|
|
|
|
|
Range access operator.
This operator provides an alternate way of access the range data. For example, given an |
The documentation for this class was generated from the following file: