PlayerCc::SonarProxy Class Reference
[Proxies]

#include <playerc++.h>

Inheritance diagram for PlayerCc::SonarProxy:

Inheritance graph
[legend]
Collaboration diagram for PlayerCc::SonarProxy:

Collaboration graph
[legend]
List of all members.

Detailed Description

The SonarProxy class is used to control a sonar device.

The most recent sonar range measuremts can be read from the range attribute, or using the the [] operator.

Definition at line 2307 of file playerc++.h.


Public Member Functions

 SonarProxy (PlayerClient *aPc, uint32_t aIndex=0)
 constructor
 ~SonarProxy ()
 destructor
uint32_t GetCount () const
 return the sensor count
double GetScan (uint32_t aIndex) const
 return a particular scan value
double operator[] (uint32_t aIndex) const
 This operator provides an alternate way of access the scan data.
uint32_t GetPoseCount () const
 Number of valid sonar poses.
player_pose3d_t GetPose (uint32_t aIndex) const
 Sonar poses (m,m,radians).
void RequestGeom ()
 Request the sonar geometry.

Private Member Functions

void Subscribe (uint32_t aIndex)
void Unsubscribe ()

Private Attributes

playerc_sonar_tmDevice

Member Function Documentation

double PlayerCc::SonarProxy::operator[] ( uint32_t  aIndex  )  const [inline]

This operator provides an alternate way of access the scan data.

For example, SonarProxy[0] == SonarProxy.GetRange(0)

Definition at line 2331 of file playerc++.h.


The documentation for this class was generated from the following file:

Last updated 12 September 2005 21:38:45