Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes
edu.tum.cs.ias.knowrob.owl.ObjectInstance Class Reference
Inheritance diagram for edu.tum.cs.ias.knowrob.owl.ObjectInstance:
Inheritance graph
[legend]

List of all members.

Public Member Functions

void addPhysicalPart (ObjectInstance part)
Vector3d getDimensions ()
Vector< ObjectInstancegetPhysicalParts ()
Vector< Float > getPoseAsVector ()
Matrix4d getPoseMatrix ()
Quat4d getPoseQuaternion ()
Vector3d getPosition ()
boolean hasPhysicalPart (ObjectInstance part)
void readFromProlog ()
void readFromPrologWithChildren ()
void removePhysicalPart (ObjectInstance part)
void setDimensions (Vector3d dimensions)
void setPhysicalParts (Vector< ObjectInstance > physicalParts)
void setPoseMatrix (Matrix4d poseMatrix)
void setPoseQuaternion (Vector3d translation, Quat4d orientation, double scale)
void setPosition (Vector3d position)
void writeToProlog ()

Static Public Member Functions

static ObjectInstance getObjectInstance (String iri, String label)
static ObjectInstance getObjectInstance (String iri)

Protected Member Functions

 ObjectInstance (String iri, String label)
 ObjectInstance (OWLIndividual ind)

Protected Attributes

Vector3d dimensions
Vector< ObjectInstancephysicalParts
Matrix4d pose_matrix

Detailed Description

Definition at line 13 of file ObjectInstance.java.


Constructor & Destructor Documentation

edu.tum.cs.ias.knowrob.owl.ObjectInstance.ObjectInstance ( String  iri,
String  label 
) [inline, protected]

Constructor. Set the IRI and optionally a label. If none is given, it is initialized with the IRI's short name.

Parameters:
iriIdentifier of this thing.

Definition at line 39 of file ObjectInstance.java.

Copy constructor: create ObjectInstance from more generic OWLIndividual

Parameters:
indOWLIndividual to be copied into this ObjectInstance

Definition at line 56 of file ObjectInstance.java.


Member Function Documentation

Parameters:
physicalParts

Definition at line 123 of file ObjectInstance.java.

Get the dimensions of the 3D bounding box

Returns:
Vector with the object dimensions

Definition at line 155 of file ObjectInstance.java.

static ObjectInstance edu.tum.cs.ias.knowrob.owl.ObjectInstance.getObjectInstance ( String  iri,
String  label 
) [inline, static]

ObjectInstance factory. Return existing instance, if available, and create new ObjectInstance instance if necessary. Avoids duplicate instances with the same IRI.

Parameters:
iriIdentifier of this thing.
labelOptional natural-language label.
Returns:
Instance of an ObjectInstance with the specified IRI

Definition at line 74 of file ObjectInstance.java.

ObjectInstance factory. Return existing instance, if available, and create new ObjectInstance instance if necessary. Avoids duplicate instances with the same IRI.

Parameters:
iriIdentifier of this thing.
Returns:
Instance of an ObjectInstance with the specified IRI

Definition at line 95 of file ObjectInstance.java.

Returns:

Definition at line 106 of file ObjectInstance.java.

Definition at line 239 of file ObjectInstance.java.

Get the 4x4 pose matrix

Returns:
Pose matrix

Definition at line 175 of file ObjectInstance.java.

Interface for getting the orientation as quaternion.

Returns:
Object orientation as quaternion

Definition at line 219 of file ObjectInstance.java.

Get only the translation component of the pose (3D position)

Returns:
Position vector

Definition at line 195 of file ObjectInstance.java.

Parameters:
physicalParts

Definition at line 141 of file ObjectInstance.java.

Definition at line 251 of file ObjectInstance.java.

Definition at line 256 of file ObjectInstance.java.

Parameters:
physicalParts

Definition at line 132 of file ObjectInstance.java.

void edu.tum.cs.ias.knowrob.owl.ObjectInstance.setDimensions ( Vector3d  dimensions) [inline]

Set the dimensions of the 3D bounding box

Parameters:
dimensionsVector with the object dimensions

Definition at line 165 of file ObjectInstance.java.

Parameters:
physicalParts

Definition at line 114 of file ObjectInstance.java.

void edu.tum.cs.ias.knowrob.owl.ObjectInstance.setPoseMatrix ( Matrix4d  poseMatrix) [inline]

Set the 4x4 pose matrix

Parameters:
poseMatrixPose matrix

Definition at line 185 of file ObjectInstance.java.

void edu.tum.cs.ias.knowrob.owl.ObjectInstance.setPoseQuaternion ( Vector3d  translation,
Quat4d  orientation,
double  scale 
) [inline]

Interface for setting the pose as vector and quaternion.

Parameters:
translationPosition vector
orientationOrientation quaternion
scaleScale value

Definition at line 233 of file ObjectInstance.java.

void edu.tum.cs.ias.knowrob.owl.ObjectInstance.setPosition ( Vector3d  position) [inline]

Set only the translation component of the pose

Parameters:
positionPosition vector

Definition at line 207 of file ObjectInstance.java.

Reimplemented from edu.tum.cs.ias.knowrob.owl.OWLIndividual.

Reimplemented in edu.tum.cs.ias.knowrob.owl.JointInstance.

Definition at line 264 of file ObjectInstance.java.


Member Data Documentation

Dimensions of the bounding box of the object

Definition at line 19 of file ObjectInstance.java.

Set of direct child objects (physical decomposition)

Definition at line 29 of file ObjectInstance.java.

4x4 pose matrix describing the position and orientation

Definition at line 24 of file ObjectInstance.java.


The documentation for this class was generated from the following file:


knowrob_common
Author(s): Moritz Tenorth
autogenerated on Sat Dec 28 2013 17:09:28