PlayerCc::Position1dProxy Class Reference
[Proxies]
#include <playerc++.h>
Inherits PlayerCc::ClientProxy.
Detailed Description
ThePosition1dProxy
class is used to control a position1d device.
The latest position data is contained in the attributes pos, vel , etc.
Public Member Functions | |
Position1dProxy (PlayerClient *aPc, uint aIndex=0) | |
constructor | |
~Position1dProxy () | |
destructor | |
void | SetSpeed (double aVel) |
Send a motor command for velocity control mode. | |
void | GoTo (double aPos, double aVel) |
Send a motor command for position control mode. | |
void | RequestGeom () |
Get the device's geometry; it is read into the relevant class attributes. | |
player_pose_t | GetPose () const |
Accessor for the pose (fill it in by calling RequestGeom). | |
player_bbox_t | GetSize () const |
Accessor for the size (fill it in by calling RequestGeom). | |
void | SetMotorEnable (bool enable) |
Enable/disable the motors. | |
void | SetOdometry (double aPos) |
Sets the odometry to the pose aPos . | |
void | ResetOdometry () |
Reset odometry to 0. | |
double | GetPos () const |
Accessor method. | |
double | GetVel () const |
Accessor method. | |
bool | GetStall () const |
Accessor method. | |
uint8_t | GetStatus () const |
Accessor method. | |
bool | IsLimitMin () const |
Accessor method. | |
bool | IsLimitCen () const |
Accessor method. | |
bool | IsLimitMax () const |
Accessor method. | |
bool | IsOverCurrent () const |
Accessor method. | |
bool | IsTrajComplete () const |
Accessor method. | |
bool | IsEnabled () const |
Accessor method. |
Member Function Documentation
|
Send a motor command for position control mode. Specify the desired pose of the robot in [m] or [rad] desired motion in [m/s] or [rad/s] |
|
Enable/disable the motors.
Set |
|
Sets the odometry to the pose
|
|
Send a motor command for velocity control mode. Specify the forward, sideways, and angular speeds in m/sec, m/sec, and radians/sec, respectively. |
The documentation for this class was generated from the following file: