Class PoseConsultant

java.lang.Object
edu.tufts.hrilab.consultant.Consultant<PoseReference>
edu.tufts.hrilab.consultant.pose.PoseConsultant
All Implemented Interfaces:
ConsultantInterface

public class PoseConsultant extends Consultant<PoseReference>
  • Constructor Details

  • Method Details

    • localConvertToType

      public <U> U localConvertToType(Symbol refId, Class<U> type)
      Description copied from class: Consultant
      The local implementation of convertToType.
      Specified by:
      localConvertToType in class Consultant<PoseReference>
      Type Parameters:
      U - target Java class template type (any)
      Parameters:
      refId - reference resolution ID (e.g.object_3)
      type - target Java class type
      Returns:
      instance of specified target Java class
    • localConvertToType

      public <U> U localConvertToType(Symbol refId, Class<U> type, List<? extends Term> constraints)
      Description copied from class: Consultant
      The local implementation of convertToType.
      Specified by:
      localConvertToType in class Consultant<PoseReference>
      Type Parameters:
      U - target Java class template type (any)
      Parameters:
      refId - reference resolution ID (e.g.object_3)
      type - target Java class type
      constraints - first-order-logic predicate constraints
      Returns:
      instance of specified target Java class
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • calculateDistance

      public long calculateDistance(Symbol ref1, Symbol ref2)
    • loadReferencesFromFile

      public void loadReferencesFromFile(String filename)
      Load pre-defined pose references from file via JSON.
      Parameters:
      filename -
    • writeReferencesToFile

      public boolean writeReferencesToFile(String filename)
      Write all references to file.
      Parameters:
      filename -
      Returns:
      if write was successful