Class RLActionManager

java.lang.Object
edu.tufts.hrilab.diarc.DiarcComponent
edu.tufts.hrilab.rl.RLActionManager

public class RLActionManager extends DiarcComponent
  • 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 create
      args - The arguments to that action. Must be typed if you want to plan with it.
      preconds - The symbolic preconditions of that action
      effects - The symbolic effects of that action
      executor - 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.