#include <LimitsData.h>
Inheritance diagram for OSCAR::LimitsData:

Public Types | |
| enum | LimitsType { Position, Velocity, Acceleration, Current, Torque } |
Public Methods | |
| LimitsData (const String &inputFileName, OSCARError &err=DUMMY_ERROR(noError), const String &rootElementName=String("Limits"), const String name=String("")) | |
| LimitsData (const char *xmlDataString, OSCARError &err=DUMMY_ERROR(noError), const String &rootElementName=String("Limits"), const String name=String("")) | |
| LimitsData (const DOMElement *limitsElement, OSCARError &err=DUMMY_ERROR(noError), const String &rootElementName=String("Limits"), const String name=String("")) | |
| LimitsData (const LimitsData &rhs) | |
| virtual | ~LimitsData () |
| LimitsData & | operator= (const LimitsData &rhs) |
| const Limits * | GetLimits (LimitsType limitsType) const |
| bool | SetLimits (const Limits &limits, LimitsType limitsType) |
| AngleUnits | GetAngleUnits () const |
| void | SetAngleUnits (AngleUnits angUnits) |
| bool | Output (std::ostream &out, bool nameSpaceHeader=false) const |
Protected Methods | |
| virtual bool | parseParameters (const DOMElement *rootNode) |
| bool | LimitsData::parseLimits (DOMElement *limitsTypeNode, std::vector< Limit > &limitsData) |
Protected Attributes | |
| AngleUnits | angleUnits |
| Limits * | pos |
| Limits * | vel |
| Limits * | acc |
| Limits * | curr |
| Limits * | torque |
Schema supports position, velocity, current, acceleration, and torque limits
|
|
|
|
||||||||||||||||||||
|
Constructor. This is the constructor for an object of type LimitsData. Use this to construct an LimitsData object by supplying a datafile that contains the limits (pos, vel, acc, curr, torque) of the joints of robot. Possible errors that may occur include a fileOpenError or dhParamsIllformed exception. A call to LoadData() should follow a succesful constructor call.
-1.4 1.4 -1.4 1.4 -2.8 2.8 -2.8 2.8 -6.2832 6.2832 -6.2832 6.2832 -6.2832 6.2832 -100 100 -100 100 -200 200 -200 200 -628.32 628.32 -628.32 628.32 -628.32 628.32 </rrgOSCAR:Limits>
|
|
||||||||||||||||||||
|
Constructor. This is the constructor for an object of type LimitsData. Use this to construct an LimitsData object from a character string that contains XML data. A call to LoadData() should follow a succesful constructor call.
|
|
||||||||||||||||||||
|
Constructor that allows xml data to be loaded from pre validated DOMElement. A call to LoadData() should follow a succesful constructor call. This is the constructor for an object of type XMLData. Use this to construct an XMLData object by supplying a valid DOMElement that contains validated and well formed data representing joint limits.
|
|
|
Copy Constructor. This is the Copy Constructor for an object of type LimitsData. Use this to construct an LimitsData object from an existing LimitsData object.
|
|
|
Destructor. This is the Destructor for an object of type LimitsData. |
|
|
|
|
|
Returns the limits. Calls to this method should be made after LoadData() has been called.
|
|
||||||||||||
|
|
|
|
Assignment Operator. This is the Assignment Operator for an object of type LimitsData.
|
|
||||||||||||
|
Outputs stored data in XML format. The root element for LimitsData is .
Implements OSCAR::XMLData. |
|
|
Load limits data parameters from a file. This method is used to load limits parameters from a file. A DOMNode pointer to the root of the XML data tree that needs to be parsed
Reimplemented from OSCAR::XMLData. |
|
|
|
|
||||||||||||
|
Set the limits by specifying a Limits object and the type of the limits.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| RRG Homepage | OSCAR Overview | OSCAR Tutorials | Simulations |