Class UnityPR2Component

All Implemented Interfaces:
UnityPR2Interface

public class UnityPR2Component extends UnityAgentComponent implements UnityPR2Interface
  • Constructor Details

    • UnityPR2Component

      public UnityPR2Component()
  • Method Details

    • init

      public 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 class DiarcComponent
    • route

      protected void route(Message msg)
      Description copied from class: UnityAgentComponent
      Route a message received from the Unity socket server to the appropriate method that matches the named action.
      Overrides:
      route in class UnityAgentComponent
      Parameters:
      msg - - Message originating from Unity to route to method.
    • areaResponse

      protected Symbol areaResponse()
      Get the stored area value of the PR2.
    • getPR2Area

      public Symbol getPR2Area()
      Specified by:
      getPR2Area in interface UnityPR2Interface
    • repair

      protected boolean repair(String target)
      Start repairing a target
    • startPR2Repair

      public boolean startPR2Repair(Symbol target)
      Specified by:
      startPR2Repair in interface UnityPR2Interface
    • stopRepair

      protected boolean stopRepair(String target)
      Stop repairing a target
    • stopPR2Repair

      public boolean stopPR2Repair(Symbol target)
      Specified by:
      stopPR2Repair in interface UnityPR2Interface