#include <PCRoboWorksInterface.h>
Inheritance diagram for OSCAR::PCRoboworksInterface:

Public Methods | |
| PCRoboworksInterface (const String &_roboworksFile, unsigned int _numberofTags, const char **_tagNames, unsigned int _dof, bool _hasGripper, const String &_ipAddress=SELF, OSCARError &_err=DUMMY_ERROR(noError)) | |
| ~PCRoboworksInterface () | |
| virtual bool | Initialize () |
| bool | Close () |
| bool | GetNumModules (unsigned int &count) |
| bool | Home (unsigned int modNo) |
| bool | HomeQuiet (unsigned int modNo) |
| bool | Halt () |
| virtual bool | Reset (unsigned int modNo) |
| virtual bool | GetCurrent (VectorF &_currentLimits) |
| bool | OpenGripper (double openPos) |
| bool | GetStatusFlag (unsigned int iModule, unsigned long flag, bool &isSet) |
| virtual const OSCARError & | GetError () const |
| virtual bool | Home (unsigned int modNo) |
| bool | Home (BoolArray bHomeArray) |
| bool | Home () |
| virtual bool | Reset (unsigned int modNo) |
| bool | Reset (const BoolArray &bResetArray) |
| bool | Reset () |
Protected Methods | |
| bool | getPosition (VectorF &jointValues) |
| bool | setPosition (const VectorF &jointValues) |
| bool | getVelocity (VectorF &jointVelocities) |
| bool | setVelocity (const VectorF &jointVelocities) |
| virtual bool | setVelocityLimits (const VectorF &_minJointVel, const VectorF &_maxJointVel) |
Protected Attributes | |
| unsigned int | dof |
| VectorF | currentTagValues |
| VectorF | tagValues |
| BoolArray | isHomed |
| BoolArray | isHalted |
|
||||||||||||||||||||||||||||||||
|
Constructor. intializes thru' the parent class constructors const String& _roboworksFile = Roboworks FileName unsigned int _numberofTags = Number of Tags const char** _tagNames = array of Tagnames unsigned int _dof = degrees of freedom bool _hasGripper = true if system has PowerCube gripper const String& _ipAddress = ipAddress of the controller machine OscarError _err = OSCAR error object used to handle errors generated.
|
|
|
destructor, does Nothing
|
|
|
Disconnects from Roboworks.
Reimplemented from OSCAR::RoboworksInterface. |
|
|
gets current. Curently this methd is not supported. All it does is sets the error stating method is not supported. This method overrides the base class method.
Reimplemented from OSCAR::PowerCubeBase. |
|
|
Returns an error value which is set by certain operation, e.g. object creation or member function call,etc. This method is inherited from Base and is redefined over here because PCRoboWorks interface is multiply inherited. This multiple inheritance leads to ambiguity. As such this method is redifned to call the PowerCubeBase::GetError -Everytime there is a failure to creat an object or call function , This function is used to get the failure reason (error value).
Reimplemented from OSCAR::Base. |
|
|
pure virtual: Gets the number of modules attached to the robot.
Implements OSCAR::PowerCubeBase. |
|
|
Implements OSCAR::PowerCubeBase. |
|
||||||||||||||||
|
Checks whether or not a status flag is set for a joint.
Reimplemented from OSCAR::PowerCubeBase. |
|
|
Implements OSCAR::PowerCubeBase. |
|
|
pure virtual: Stops all modules immediately.Modules cannot be moved until they are reset.
Implements OSCAR::PowerCubeBase. |
|
|
-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.
|
|
|
-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 from OSCAR::PowerCubeBase. |
|
|
-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 from OSCAR::PowerCubeBase. |
|
|
Connects to Roboworks using RoboTalk.
Reimplemented from OSCAR::RoboworksInterface. |
|
|
Opens gripper to the given position using a linear interpolator Error-Checking implemented by the PowerCubeBase class. Simulation specific code is within this method.
Reimplemented from OSCAR::PowerCubeBase. |
|
|
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.
|
|
|
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 from OSCAR::PowerCubeBase. |
|
|
Implements OSCAR::PowerCubeBase. |
|
|
Implements OSCAR::PowerCubeBase. |
|
||||||||||||
|
Reimplemented from OSCAR::PowerCubeBase. |
|
|
|
|
|
Reimplemented from OSCAR::RobotServoInterface. |
|
|
|
|
|
|
|
|
|
| RRG Homepage | OSCAR Overview | OSCAR Tutorials | Simulations |