Package edu.tufts.hrilab.rl
Class RLActionManager
java.lang.Object
edu.tufts.hrilab.diarc.DiarcComponent
edu.tufts.hrilab.rl.RLActionManager
-
Field Summary
FieldsFields inherited from class edu.tufts.hrilab.diarc.DiarcComponent
executionLoopCycleTime, shouldRunExecutionLoop -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class edu.tufts.hrilab.diarc.DiarcComponent
additionalUsageInfo, createInstance, createInstance, createInstance, createInstance, executionLoop, getMyGroupConstraints, getMyGroups, getMyService, getMyServices, init, main, parseArgs, shutdown, shutdownComponent
-
Field Details
-
log
protected org.slf4j.Logger log
-
-
Constructor Details
-
RLActionManager
public RLActionManager()
-
-
Method Details
-
createAction
public int createAction(String name, List<String> args, List<String> preconds, List<String> effects, String executor) Wraps an executor in a DIARC action and adds it to the database. For use with creating new action from an RL system.- Parameters:
name- The name of the ASL action you want to createargs- The arguments to that action. Must be typed if you want to plan with it.preconds- The symbolic preconditions of that actioneffects- The symbolic effects of that actionexecutor- The executor you want to wrap, e.g. a python method that calls a policy- Returns:
- Some unique identifier of the new action. May be deprecated in favor of the name.
-