Package edu.tufts.hrilab.unity
Class UnityPR2Component
java.lang.Object
edu.tufts.hrilab.diarc.DiarcComponent
edu.tufts.hrilab.unity.UnityAgentComponent
edu.tufts.hrilab.unity.UnityPR2Component
- All Implemented Interfaces:
UnityPR2Interface
-
Field Summary
Fields inherited from class edu.tufts.hrilab.unity.UnityAgentComponent
agent, isConnectedFields inherited from class edu.tufts.hrilab.diarc.DiarcComponent
executionLoopCycleTime, log, shouldRunExecutionLoop -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected SymbolGet the stored area value of the PR2.voidinit()Perform any component initialization.protected booleanStart repairing a targetprotected voidRoute a message received from the Unity socket server to the appropriate method that matches the named action.booleanstartPR2Repair(Symbol target) booleanstopPR2Repair(Symbol target) protected booleanstopRepair(String target) Stop repairing a targetMethods inherited from class edu.tufts.hrilab.unity.UnityAgentComponent
additionalUsageInfo, connected, getResponse, listen, listen, parseArgs, sendMessage, unityReceiveMessage, workloadMethods inherited from class edu.tufts.hrilab.diarc.DiarcComponent
attachShutdownHook, createInstance, createInstance, createInstance, executionLoop, getMyGroupConstraints, getMyGroups, getMyService, getMyServices, main, postRegistrationInit, shutdown, shutdownComponent
-
Constructor Details
-
UnityPR2Component
public UnityPR2Component()
-
-
Method Details
-
init
public 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
-
route
Description copied from class:UnityAgentComponentRoute a message received from the Unity socket server to the appropriate method that matches the named action.- Overrides:
routein classUnityAgentComponent- Parameters:
msg- - Message originating from Unity to route to method.
-
areaResponse
Get the stored area value of the PR2. -
getPR2Area
- Specified by:
getPR2Areain interfaceUnityPR2Interface
-
repair
Start repairing a target -
startPR2Repair
- Specified by:
startPR2Repairin interfaceUnityPR2Interface
-
stopRepair
Stop repairing a target -
stopPR2Repair
- Specified by:
stopPR2Repairin interfaceUnityPR2Interface
-