PlayerCc::SonarProxy Class Reference

The SonarProxy class is used to control a sonar device. More...

#include <playerc++.h>

Inheritance diagram for PlayerCc::SonarProxy:
PlayerCc::ClientProxy

List of all members.

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

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.


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)


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

Last updated 25 May 2011 21:17:00