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) void
addDropoffPose
(String propertyName, String cameraPoseName, String poseString) void
boolean
checkError
(Term t) void
boolean
defineGraspPointForDescriptor
(Symbol refId, Symbol itemType) void
goToCameraPose
(Symbol locationRef) boolean
goToPoseName
(String poseName) protected void
init()
Perform any component initialization.void
moveToObject
(Symbol refId) void
boolean
perceiveEntityFromSymbol
(Symbol refId) void
pickupItem
(Symbol refId) void
void
putDownItem
(Symbol refId, Symbol pose) void
setCameraResultDetected
(boolean cameraResultDetected) void
setCognexConsultant
(CognexConsultant cognexConsultant) void
setErrorState
(boolean errorState) void
setGraspPoint
(Symbol itemType, String targetString) void
Any 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:DiarcComponent
Perform 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:
init
in classDiarcComponent
-
setErrorState
public void setErrorState(boolean errorState) -
setCameraResultDetected
public void setCameraResultDetected(boolean cameraResultDetected) -
goToPoseName
- Specified by:
goToPoseName
in interfaceRWSRobotComponentInterface
-
openGripperRapid
public void openGripperRapid()- Specified by:
openGripperRapid
in interfaceRWSRobotComponentInterface
-
closeGripperRapid
public void closeGripperRapid()- Specified by:
closeGripperRapid
in interfaceRWSRobotComponentInterface
-
putDownItem
- Specified by:
putDownItem
in interfaceRWSRobotComponentInterface
-
addCameraPose
- Specified by:
addCameraPose
in interfaceRWSRobotComponentInterface
-
addDropoffPose
- Specified by:
addDropoffPose
in interfaceRWSRobotComponentInterface
-
goToCameraPose
- Specified by:
goToCameraPose
in interfaceRWSRobotComponentInterface
-
defineGraspPointForDescriptor
- Specified by:
defineGraspPointForDescriptor
in interfaceRWSRobotComponentInterface
-
perceiveEntityFromSymbol
- Specified by:
perceiveEntityFromSymbol
in interfaceRWSRobotComponentInterface
-
pickupItem
- Specified by:
pickupItem
in interfaceRWSRobotComponentInterface
-
cookItem
- Specified by:
cookItem
in interfaceRWSRobotComponentInterface
-
sauteItem
- Specified by:
sauteItem
in interfaceRWSRobotComponentInterface
-
calibrateGripper
public void calibrateGripper()- Specified by:
calibrateGripper
in interfaceRWSRobotComponentInterface
-
pourSauce
public void pourSauce()- Specified by:
pourSauce
in interfaceRWSRobotComponentInterface
-
setGraspPoint
- Specified by:
setGraspPoint
in interfaceRWSRobotComponentInterface
-
moveToObject
- Specified by:
moveToObject
in interfaceRWSRobotComponentInterface
-
setCognexConsultant
- Specified by:
setCognexConsultant
in interfaceRWSRobotComponentInterface
-
cancelCurrentRapidAction
public boolean cancelCurrentRapidAction()- Specified by:
cancelCurrentRapidAction
in interfaceRWSRobotComponentInterface
-
checkError
- Specified by:
checkError
in interfaceRWSRobotComponentInterface
-
shutdownComponent
public void shutdownComponent()Description copied from class:DiarcComponent
Any component that needs particular shutdown logic needs to override this method and- Overrides:
shutdownComponent
in classDiarcComponent
-