AURobotServers  4
Public Member Functions | List of all members
UManStop Class Reference

#include <umanoeuvre.h>

Inheritance diagram for UManStop:
Inheritance graph

Public Member Functions

virtual double getEndV (UPoseV)
 
virtual double getEndV (double)
 
virtual double getManTime (double)
 
virtual bool getSMRCLcmd (char *buf, int bufCnt)
 
virtual bool getSMRCLcmd2 (char *buf, int bufCnt, UPoseV *startPose, bool *first, double firstDistance, int *lineCnt, int lineCntMax, double *distSum, double distSumMax)
 
virtual const char * print (char *prestr, double *v, char *buff, const int buffCnt)
 
 UManStop ()
 
virtual ~UManStop ()
 
- Public Member Functions inherited from UManoeuvre
virtual void fprint (FILE *fd, const char *prestr, double *v=NULL)
 
double getAcc ()
 
virtual double getDistance ()
 
virtual double getDistanceXYSigned (UPosition, int *, bool, bool, UPose *, double *)
 
virtual UPose getEndPose ()
 
virtual UPoseV getEndPoseV (UPoseV startPoseV)
 
virtual bool getFoodprintPolygon (UPolygon *, UPolygon *, double, double, double, double, double, UPose *, double)
 
int getManType ()
 
virtual double getMinDistanceXYSigned (ULineSegment *, int *, UPosition *, bool, int *, UPose *)
 
virtual UPoseV getPoseV (double atManTime, UPoseV startPoseV, double endV)
 
virtual bool getSMRCLcmd2 (char *, int, UPoseV *, bool *, double, int *, int, double *, double, UTime *, FILE *)
 
double getVel ()
 
virtual const char * print (const char *, double *, char *buff, const int)
 
void setAcc (double value)
 
void setVel (double value)
 
 UManoeuvre ()
 
virtual ~UManoeuvre ()
 

Additional Inherited Members

- Public Types inherited from UManoeuvre
enum  MAN_TYPE { MAN_NONE, MAN_LINE, MAN_ARC, MAN_STOP }
 
- Static Public Member Functions inherited from UManoeuvre
static double getMinAcc ()
 
- Protected Attributes inherited from UManoeuvre
double acc
 
MAN_TYPE manType
 
double vel
 

Detailed Description

A manuvre to indicate a full stop. This may be an emergenct or just a target reached.

Constructor & Destructor Documentation

UManStop::UManStop ( )

Constructor

References UManoeuvre::MAN_STOP, and UManoeuvre::manType.

UManStop::~UManStop ( )
virtual

destructor

Member Function Documentation

virtual double UManStop::getEndV ( UPoseV  )
inlinevirtual

Get velocity at end of manoeuvre

Reimplemented from UManoeuvre.

virtual double UManStop::getEndV ( double  )
inlinevirtual

Get end velocity assuming this start velocity

Reimplemented from UManoeuvre.

virtual double UManStop::getManTime ( double  )
inlinevirtual

Time to complete manoeuver. This function assumes that the speed is low, and returns an arbitrary 5 seconds to complete.

Reimplemented from UManoeuvre.

References buf, UManoeuvre::getSMRCLcmd(), UManoeuvre::getSMRCLcmd2(), and UManoeuvre::print().

bool UManStop::getSMRCLcmd ( char *  buf,
int  bufCnt 
)
virtual

Code this manoeuvre into a SMRCL command string. Returns false if buffer is too short or command is not codeable.

Reimplemented from UManoeuvre.

bool UManStop::getSMRCLcmd2 ( char *  buf,
int  bufCnt,
UPoseV startPose,
bool *  first,
double  firstDistance,
int *  lineCnt,
int  lineCntMax,
double *  distSum,
double  distSumMax 
)
virtual

get the string for the smr

References UManoeuvre::getSMRCLcmd().

const char * UManStop::print ( char *  prestr,
double *  v,
char *  buff,
const int  buffCnt 
)
virtual

Print status info with this lead string


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