PlayerCc::Position3dProxy Class Reference
[Proxies]

#include <playerc++.h>

Inherits PlayerCc::ClientProxy.

List of all members.


Detailed Description

The Position3dProxy class is used to control a interface_position3d device.

The latest position data is contained in the attributes xpos, ypos, etc.


Public Member Functions

 Position3dProxy (PlayerClient *aPc, uint aIndex=0)
 constructor
 ~Position3dProxy ()
 destructor
void SetSpeed (double aXSpeed, double aYSpeed, double aZSpeed, double aRollSpeed, double aPitchSpeed, double aYawSpeed)
 Send a motor command for a planar robot. Specify the forward, sideways, and angular speeds in m/s, m/s, m/s, rad/s, rad/s, and rad/s, respectively.
void SetSpeed (double aXSpeed, double aYSpeed, double aZSpeed, double aYawSpeed)
 Send a motor command for a planar robot. Specify the forward, sideways, and angular speeds in m/s, m/s, and rad/s, respectively.
void SetSpeed (double aXSpeed, double aYSpeed, double aYawSpeed)
 simplified version of SetSpeed
void SetSpeed (double aXSpeed, double aYawSpeed)
 Same as the previous SetSpeed(), but doesn't take the sideways speed (so use this one for non-holonomic robots).
void GoTo (double aX, double aY, double aZ, double aRoll, double aPitch, double aYaw)
 Send a motor command for position control mode. Specify the desired pose of the robot in m, m, m, rad, rad, rad.
void SetMotorEnable (bool aEnable)
 Enable/disable the motors. Set state to 0 to disable or 1 to enable.
Attention:
Be VERY careful with this method! Your robot is likely to run across the room with the charger still attached.

double GetXPos () const
 Accessor method.
double GetYPos () const
 Accessor method.
double GetZPos () const
 Accessor method.
double GetRoll () const
 Accessor method.
double GetPitch () const
 Accessor method.
double GetYaw () const
 Accessor method.
double GetXSpeed () const
 Accessor method.
double GetYSpeed () const
 Accessor method.
double GetZSpeed () const
 Accessor method.
double GetRollSpeed () const
 Accessor method.
double GetPitchSpeed () const
 Accessor method.
double GetYawSpeed () const
 Accessor method.
bool GetStall () const
 Accessor method.

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

Last updated 12 September 2005 21:38:45