Class MapObject

java.lang.Object
edu.tufts.hrilab.map.MapObject

public class MapObject extends Object
  • Field Details

    • log

      protected static org.slf4j.Logger log
  • Constructor Details

    • MapObject

      public MapObject(int id, String property, int floor, List<javax.vecmath.Point2d> pixels)
  • Method Details

    • getID

      public int getID()
    • getProperty

      public String getProperty()
    • getFloor

      public int getFloor()
    • getPosition

      public javax.vecmath.Point3d getPosition()
    • setPosition

      public void setPosition(javax.vecmath.Point3d newCenter)
    • getPose

      public javax.vecmath.Matrix4d getPose()
    • getOrientation

      public javax.vecmath.Quat4d getOrientation()
    • setOrientation

      public void setOrientation(javax.vecmath.Quat4d orientation)
    • getCenterPixel

      public javax.vecmath.Point2d getCenterPixel()
    • getPixels

      public List<javax.vecmath.Point2d> getPixels()
    • setReferenceId

      public void setReferenceId(Symbol refId)
    • getReferenceId

      public Symbol getReferenceId()
    • toString

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

      public boolean isA(String property)
      asks if this MapObject is of a certain type
      Parameters:
      property - objecty type to check for
      Returns:
      true if MapObject is of type property, false otherwise
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object