PlayerCc::BumperProxy Class Reference
[Proxies]

#include <playerc++.h>

Inherits PlayerCc::ClientProxy.

List of all members.


Detailed Description

The BumperProxy class is used to read from a bumper device.


Public Member Functions

 BumperProxy (PlayerClient *aPc, uint aIndex=0)
uint GetCount () const
uint IsBumped (uint aIndex) const
 Returns true if the specified bumper has been bumped, false otherwise.
bool IsAnyBumped ()
 Returns true if any bumper has been bumped, false otherwise.
void RequestBumperConfig ()
 Requests the geometries of the bumpers.
uint GetPoseCount () const
 Returns the number bumper poses.
player_bumper_define_t GetPose (uint aIndex) const
 Returns a specific bumper pose.
bool operator[] (uint aIndex) const
 BumperProxy data access operator.

Member Function Documentation

bool PlayerCc::BumperProxy::operator[] uint  aIndex  )  const [inline]
 

BumperProxy data access operator.

This operator provides an alternate way of access the actuator data. For example, given a BumperProxy named bp, the following expressions are equivalent: bp.IsBumped[0] and bp[0].


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

Last updated 12 September 2005 21:38:45