Package edu.tufts.hrilab.lidar
Class LidarDoorComponent
java.lang.Object
edu.tufts.hrilab.diarc.DiarcComponent
edu.tufts.hrilab.lidar.LidarDoorComponent
-
Field Summary
Fields inherited from class edu.tufts.hrilab.diarc.DiarcComponent
executionLoopCycleTime, log, shouldRunExecutionLoop
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
init()
Perform any component initialization.isDoorOpen
(Symbol door) Action to query if a door is openAction to wait for a door to open and returns a reference to the open door.Methods inherited from class edu.tufts.hrilab.diarc.DiarcComponent
additionalUsageInfo, createInstance, createInstance, createInstance, createInstance, executionLoop, getMyGroupConstraints, getMyGroups, getMyService, getMyServices, main, parseArgs, shutdown, shutdownComponent
-
Constructor Details
-
LidarDoorComponent
public LidarDoorComponent()
-
-
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
-
waitForOpenDoor
Action to wait for a door to open and returns a reference to the open door. Waits up to a minute.- Returns:
- reference to open door
-
isDoorOpen
Action to query if a door is open- Parameters:
door
- a symbolic representation of the door being queried- Returns:
- if door is open or not
-