Aria
2.8.0
|
Provides an interface to the Pioneer gripper device. More...
#include <ArGripper.h>
Public Types | |
enum | Type { QUERYTYPE, GENIO, USERIO, GRIPPAC, NOGRIPPER } |
These are the types for the gripper. More... | |
Public Member Functions | |
ArGripper (ArRobot *robot, int gripperType=QUERYTYPE) | |
Constructor. More... | |
void | connectHandler (void) |
The handler for when the robot connects. | |
int | getBreakBeamState (void) const |
Returns the state of the gripper's breakbeams. More... | |
int | getGraspTime (void) const |
Gets the grasp time. More... | |
int | getGripState (void) const |
Returns the state of the gripper paddles. More... | |
long | getMSecSinceLastPacket (void) const |
Gets the number of mSec since the last gripper packet. More... | |
int | getPaddleState (void) const |
Returns the state of each gripper paddle. More... | |
int | getType (void) const |
Gets the type of the gripper. More... | |
bool | gripClose (void) |
Closes the gripper paddles. More... | |
bool | gripOpen (void) |
Opens the gripper paddles. More... | |
bool | gripperDeploy (void) |
Puts the gripper in a deployed position, ready for use. More... | |
bool | gripperHalt (void) |
Halts the lift and the gripper paddles. More... | |
bool | gripperStore (void) |
Puts the gripper in a storage position. More... | |
bool | gripPressure (int mSecIntervals) |
Sets the amount of pressure the gripper applies. More... | |
bool | gripStop (void) |
Stops the gripper paddles. More... | |
bool | isGripMoving (void) const |
Returns true if the gripper paddles are moving. More... | |
bool | isLiftMaxed (void) const |
Returns the state of the lift. More... | |
bool | isLiftMoving (void) const |
Returns true if the lift is moving. More... | |
bool | liftCarry (int mSecIntervals) |
Raises the lift by a given amount of time. More... | |
bool | liftDown (void) |
Lowers the lift to the bottom. More... | |
bool | liftStop (void) |
Stops the lift. More... | |
bool | liftUp (void) |
Raises the lift to the top. More... | |
void | logState (void) const |
logs the gripper state | |
bool | packetHandler (ArRobotPacket *packet) |
Parses the gripper packet. | |
void | setType (int type) |
Sets the type of the gripper. More... | |
virtual | ~ArGripper () |
Destructor. | |
Protected Attributes | |
ArFunctorC< ArGripper > | myConnectCB |
unsigned char | myGraspTime |
ArTime | myLastDataTime |
ArRetFunctor1C< bool, ArGripper, ArRobotPacket * > | myPacketHandlerCB |
ArRobot * | myRobot |
unsigned char | myState |
unsigned char | mySwitches |
int | myType |
Provides an interface to the Pioneer gripper device.
enum ArGripper::Type |
Constructor.
robot | The robot this gripper is attached to |
gripperType | How to communicate with the gripper: see ArGripper::Type. The default, QUERYTYPE, will work with most robot configurations with a recent firmware version. |
int ArGripper::getBreakBeamState | ( | void | ) | const |
Returns the state of the gripper's breakbeams.
int ArGripper::getGraspTime | ( | void | ) | const |
Gets the grasp time.
If you are using this as anything other than GRIPPAC and you want to find out the grasp time again, just do a setType with QUERYTYPE and it will query the robot again and get the grasp time from the robot.
int ArGripper::getGripState | ( | void | ) | const |
Returns the state of the gripper paddles.
long ArGripper::getMSecSinceLastPacket | ( | void | ) | const |
Gets the number of mSec since the last gripper packet.
int ArGripper::getPaddleState | ( | void | ) | const |
Returns the state of each gripper paddle.
int ArGripper::getType | ( | void | ) | const |
bool ArGripper::gripClose | ( | void | ) |
Closes the gripper paddles.
bool ArGripper::gripOpen | ( | void | ) |
Opens the gripper paddles.
bool ArGripper::gripperDeploy | ( | void | ) |
Puts the gripper in a deployed position, ready for use.
bool ArGripper::gripperHalt | ( | void | ) |
Halts the lift and the gripper paddles.
bool ArGripper::gripperStore | ( | void | ) |
Puts the gripper in a storage position.
bool ArGripper::gripPressure | ( | int | mSecIntervals | ) |
Sets the amount of pressure the gripper applies.
bool ArGripper::gripStop | ( | void | ) |
Stops the gripper paddles.
bool ArGripper::isGripMoving | ( | void | ) | const |
Returns true if the gripper paddles are moving.
bool ArGripper::isLiftMaxed | ( | void | ) | const |
Returns the state of the lift.
bool ArGripper::isLiftMoving | ( | void | ) | const |
Returns true if the lift is moving.
bool ArGripper::liftCarry | ( | int | mSecIntervals | ) |
Raises the lift by a given amount of time.
bool ArGripper::liftDown | ( | void | ) |
Lowers the lift to the bottom.
bool ArGripper::liftStop | ( | void | ) |
Stops the lift.
bool ArGripper::liftUp | ( | void | ) |
Raises the lift to the top.
void ArGripper::setType | ( | int | type | ) |
Sets the type of the gripper.
type | the type of gripper to set it to |