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

Public Methods | |
| PowerCubeBase (const unsigned int _dof, const bool _hasGripper, const String &name=String(), OSCARError &_err=DUMMY_ERROR(noError)) | |
| virtual | ~PowerCubeBase () |
| bool | GetInitString (String &_initString) |
| virtual bool | GetNumModules (unsigned int &count)=0 |
| virtual bool | HasGripper () |
| virtual bool | Home (unsigned int modNo) |
| virtual bool | HomeQuiet (unsigned int modNo) |
| bool | Home (BoolArray bHomeArray) |
| bool | Home () |
| virtual bool | Halt ()=0 |
| virtual bool | Reset (unsigned int modNo) |
| bool | Reset (const BoolArray &bResetArray) |
| bool | Reset () |
| virtual bool | OpenGripper (double openPos) |
| virtual bool | GetCurrent (VectorF ¤tArray) |
| virtual bool | GetCurrentLimits (VectorF ¤tLimits) |
| virtual bool | SetCurrentLimits (const VectorF ¤tLimits) |
| bool | GetMotionTime (double &_time) |
| bool | SetMotionTime (double _dTimeStep) |
| bool | GetExcessError (ControlType _type, VectorF &_excessError) |
| bool | SetExcessError (ControlType _type, const VectorF &_excessError) |
| virtual bool | GetStatusFlag (unsigned int modNo, unsigned long flag, bool &isSet) |
| bool | CheckExcessError (ControlType _type, const VectorF &values, BoolArray &isExcess) |
Protected Methods | |
| bool | checkPositionExcessError (const VectorF &pos, BoolArray &isExcess) |
| bool | checkVelocityExcessError (const VectorF &vel, BoolArray &isExcess) |
| bool | checkPositionExcessError (int modNo, const float pos, bool &isExcess) |
| bool | checkVelocityExcessError (int modNo, const float vel, bool &isExcess) |
| virtual bool | getPosition (VectorF &jointValues)=0 |
| virtual bool | setPosition (const VectorF &jointValues)=0 |
| virtual bool | getVelocity (VectorF &jointVelocities)=0 |
| virtual bool | setVelocity (const VectorF &jointVelocities)=0 |
| virtual bool | setVelocityLimits (const VectorF &_minJointVel, const VectorF &_maxJointVel) |
Protected Attributes | |
| double | dTimeStep |
| int | iDevice |
| unsigned int | iNumModules |
| bool | bHasGripper |
| String | initString |
| int | iIDMap [MAX_MODULES] |
| bool | isPosExcessErrorSet |
| bool | isVelExcessErrorSet |
| bool | isMotionTimeSet |
| VectorF | fPosExcessError |
| VectorF | fVelExcessError |
|
||||||||||||||||||||
|
Constructor for the PowerCubeBase class. This class is an abstract class:.
|
|
|
Destructor for the PowerCubeBase class. It is an abstract class:.
|
|
||||||||||||||||
|
|
|
||||||||||||||||
|
|
|
||||||||||||
|
|
|
||||||||||||||||
|
|
|
||||||||||||
|
|
|
|
Gets current of modules -This method must be overriden. The method only performs input data checking, so in the derived class method, the base class method must be called first.
Reimplemented in OSCAR::PCRoboworksInterface, and OSCAR::PowerCubeInterface. |
|
|
Gets max allowable current -This method must be overriden. The method only performs input data checking, so in the derived class method, the base class method must be called first.
Reimplemented in OSCAR::PowerCubeInterface. |
|
||||||||||||
|
Gets the protected member excess error.
|
|
|
Gets initialization string for robot.
|
|
|
gets the timestep -This method must be overriden. The method only performs input data checking, so in the derived class method, the base class method must be called first.
|
|
|
pure virtual: Gets the number of modules attached to the robot.
Implemented in OSCAR::PCRoboworksInterface, and OSCAR::PowerCubeInterface. |
|
|
Reimplemented from OSCAR::RobotServoInterface. Implemented in OSCAR::PCRoboworksInterface, and OSCAR::PowerCubeInterface. |
|
||||||||||||||||
|
Brief Checks whether or not a status flag is set for a module -This method must be overriden. The method only performs input data checking, so in the derived class method, the base class method must be called first.
Reimplemented in OSCAR::PCRoboworksInterface, and OSCAR::PowerCubeInterface. |
|
|
Reimplemented from OSCAR::RobotServoInterface. Implemented in OSCAR::PCRoboworksInterface, and OSCAR::PowerCubeInterface. |
|
|
pure virtual: Stops all modules immediately.Modules cannot be moved until they are reset.
Implemented in OSCAR::PCRoboworksInterface, and OSCAR::PowerCubeInterface. |
|
|
Tells whether or not a powercube gripper is attached.
|
|
|
-Sends all modules to the home position. -Functionality implemented in derived class.
|
|
|
-Sends modules to the home position. -Functionality implemented in derived class. -example: For a 3DOF robot BoolArray bInitArray(3, {true, false, true}); robot.Home(bInitArray); This call would send modules 1 and 3 home.
|
|
|
-Sends a single module to the zero position. -Functionality implemented in derived class. example: For a 3DOF robot, robot.Home(2); This command would home module 3 -This method must be overriden. The method only performs input data checking, so in the derived class method, the base class method must be called first.
Reimplemented in OSCAR::PCRoboworksInterface, and OSCAR::PowerCubeInterface. |
|
|
-Sends a single module to the zero position, without interactive confirmation -Functionality implemented in derived class. example: For a 3DOF robot, robot.Home(2); This command would home module 3 -This method must be overriden. The method only performs range check on supplied model number. There is no interactive confirmation. So in the derived class method, the base class method must be called first.
Reimplemented in OSCAR::PCRoboworksInterface, and OSCAR::PowerCubeInterface. |
|
|
open the gripper if present -This method must be overriden. The method only performs input data checking, so in the derived class method, the base class method must be called first.
Reimplemented in OSCAR::PCRoboworksInterface, and OSCAR::PowerCubeInterface. |
|
|
Resets all modules to recover from an error or halt condition. -After an error or halt command which causes the module to stop running this command must be sent to reset all the modules from the error condition. This command cannot be used to recover from certain error conditions. See Amtec docs.
|
|
|
Resets modules to recover from an error or halt condition. -example: for a 3DOF robot; BoolArray bResetArray(3, {true, false, true}); robot.reset(bResetArray); -After an error or halt command which causes the module to stop running this command must be sent to reset all the modules from the error condition. This command cannot be used to recover from certain error conditions. See Amtec docs.
|
|
|
Resets modules to recover from an error or halt condition. -example: robot.reset(2); This call would reset module 3. -After an error or halt command which causes the module to stop running this command must be sent to reset all the modules from the error condition. This command cannot be used to recover from certain error conditions. See Amtec docs. -This method must be overriden. The method only performs input data checking, so in the derived class method, the base class method must be called first.
Reimplemented in OSCAR::PCRoboworksInterface. |
|
|
sets max allowable current -This method must be overriden. The method only performs input data checking, so in the derived class method, the base class method must be called first.
Reimplemented in OSCAR::PowerCubeInterface. |
|
||||||||||||
|
Sets the protected member excess error. -This method is used to trap sudden moves in software -If the difference between any two successive servo commands exceeds the excess error, an error will be set and the command will not execute -This method must be called before executing any motion commands. The default value for a new instance is 0, so no movements will be executed.
|
|
|
Sets protected data member dTimeStep.
|
|
|
Reimplemented from OSCAR::RobotServoInterface. Implemented in OSCAR::PCRoboworksInterface, and OSCAR::PowerCubeInterface. |
|
|
Reimplemented from OSCAR::RobotServoInterface. Implemented in OSCAR::PCRoboworksInterface, and OSCAR::PowerCubeInterface. |
|
||||||||||||
|
Reimplemented from OSCAR::RobotServoInterface. Reimplemented in OSCAR::PCRoboworksInterface, and OSCAR::PowerCubeInterface. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| RRG Homepage | OSCAR Overview | OSCAR Tutorials | Simulations |