Package edu.tufts.hrilab.abb
Class MockYumiComponent
java.lang.Object
edu.tufts.hrilab.diarc.DiarcComponent
edu.tufts.hrilab.abb.MockYumiComponent
- All Implemented Interfaces:
RWSRobotComponentInterface
-
Field Summary
FieldsFields inherited from class edu.tufts.hrilab.diarc.DiarcComponent
executionLoopCycleTime, log, shouldRunExecutionLoop -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddCameraPose(String propertyName, String poseString) voidaddDropoffPose(String propertyName, String cameraPoseName, String poseString) voidbooleancheckError(Term t) voidbooleandefineGraspPointForDescriptor(Symbol refId, Symbol itemType) voidgoToCameraPose(Symbol locationRef) booleangoToPoseName(String poseName) protected voidinit()Perform any component initialization.voidmoveToObject(Symbol refId) voidbooleanperceiveEntityFromSymbol(Symbol refId) voidpickupItem(Symbol refId) voidvoidputDownItem(Symbol refId, Symbol pose) voidsetCameraResultDetected(boolean cameraResultDetected) voidsetCognexConsultant(CognexConsultant cognexConsultant) voidsetErrorState(boolean errorState) voidsetGraspPoint(Symbol itemType, String targetString) voidAny component that needs particular shutdown logic needs to override this method andMethods inherited from class edu.tufts.hrilab.diarc.DiarcComponent
additionalUsageInfo, createInstance, createInstance, createInstance, createInstance, executionLoop, getMyGroupConstraints, getMyGroups, getMyService, getMyServices, main, parseArgs, shutdown
-
Field Details
-
rwsPoseConsultant
-
cognexConsultant
-
-
Constructor Details
-
MockYumiComponent
public MockYumiComponent()
-
-
Method Details
-
init
protected void init()Description copied from class:DiarcComponentPerform any component initialization. This should not be used for setting local fields to default values as was the case in DIARC. This method is called after the constructor, and after parseArgs. Setting default values should be done in field declaration or in the constructor.- Overrides:
initin classDiarcComponent
-
setErrorState
public void setErrorState(boolean errorState) -
setCameraResultDetected
public void setCameraResultDetected(boolean cameraResultDetected) -
goToPoseName
- Specified by:
goToPoseNamein interfaceRWSRobotComponentInterface
-
openGripperRapid
public void openGripperRapid()- Specified by:
openGripperRapidin interfaceRWSRobotComponentInterface
-
closeGripperRapid
public void closeGripperRapid()- Specified by:
closeGripperRapidin interfaceRWSRobotComponentInterface
-
putDownItem
- Specified by:
putDownItemin interfaceRWSRobotComponentInterface
-
addCameraPose
- Specified by:
addCameraPosein interfaceRWSRobotComponentInterface
-
addDropoffPose
- Specified by:
addDropoffPosein interfaceRWSRobotComponentInterface
-
goToCameraPose
- Specified by:
goToCameraPosein interfaceRWSRobotComponentInterface
-
defineGraspPointForDescriptor
- Specified by:
defineGraspPointForDescriptorin interfaceRWSRobotComponentInterface
-
perceiveEntityFromSymbol
- Specified by:
perceiveEntityFromSymbolin interfaceRWSRobotComponentInterface
-
pickupItem
- Specified by:
pickupItemin interfaceRWSRobotComponentInterface
-
cookItem
- Specified by:
cookItemin interfaceRWSRobotComponentInterface
-
sauteItem
- Specified by:
sauteItemin interfaceRWSRobotComponentInterface
-
calibrateGripper
public void calibrateGripper()- Specified by:
calibrateGripperin interfaceRWSRobotComponentInterface
-
pourSauce
public void pourSauce()- Specified by:
pourSaucein interfaceRWSRobotComponentInterface
-
setGraspPoint
- Specified by:
setGraspPointin interfaceRWSRobotComponentInterface
-
moveToObject
- Specified by:
moveToObjectin interfaceRWSRobotComponentInterface
-
setCognexConsultant
- Specified by:
setCognexConsultantin interfaceRWSRobotComponentInterface
-
cancelCurrentRapidAction
public boolean cancelCurrentRapidAction()- Specified by:
cancelCurrentRapidActionin interfaceRWSRobotComponentInterface
-
checkError
- Specified by:
checkErrorin interfaceRWSRobotComponentInterface
-
shutdownComponent
public void shutdownComponent()Description copied from class:DiarcComponentAny component that needs particular shutdown logic needs to override this method and- Overrides:
shutdownComponentin classDiarcComponent
-