#include <SpatialXform.h>
Inheritance diagram for OSCAR::SpatialXform:

Public Methods | |
| SpatialXform (const double *f=0, const String &name=String()) | |
| SpatialXform (const Vector &v, OSCARError &err=DUMMY_ERROR(noError), const String &name=String()) | |
| SpatialXform (const SpatialXform &X) | |
| SpatialXform (const Matrix &X) | |
| virtual | ~SpatialXform () |
| bool | Multiply (const SpatialXform &with, SpatialXform &result) const |
| bool | Subtract (const SpatialXform &rhs, SpatialXform &result) const |
| virtual bool | Inverse (SpatialXform &inverse) const |
| virtual SpatialXform | Inverse (void) const |
| bool | Get (Rot3by3 &R) const |
| bool | Get (Xform &X) const |
| bool | Get (HandPose &handpose) const |
| bool | Get (Orientation &orient) const |
| bool | Get (Quaternion &quat) const |
| SpatialXform & | operator= (const SpatialXform &rhs) |
| SpatialXform | operator * (const SpatialXform &rhs) const |
| SpatialXform | operator- (const SpatialXform &rhs) const |
| SpatialXform & | operator-= (const SpatialXform &rhs) |
| SpatialXform | operator- () const |
| SpatialXform & | operator= (const Matrix &rhs) |
| bool | Set (const Rot3by3 &R) |
| bool | Set (const Matrix &pXR) |
| bool | Set (const Rot3by3 &rrt, const Vector3 &p) |
| bool | Set (const Quaternion &q) |
| bool | Set (const Xform &T) |
| bool | Set (const HandPose &hp) |
|
||||||||||||
|
Constructor. Use this constructor to create an SpatialXform (size 6x6) and to initialize it to an array of doubles specified by *f. This constructor is used to construct a SpatialXform with an identity rotation matrix and a zero position vector. It creates a 6 by 6 diagonal matrix with diagonal element 1.0. This default transformation means that the source and destination frames are parallel and coincident. It initializes SpatialXform by using a row pattern, for example in a 4x4 matrix the first row is initialized with the first 4 values in the array *f. The array must be of size 36. Also be careful if the array f has fewer elements than the SpatialXform it results in garbage, if the array has more elements than the SpatialXform then those elements remaining are cut off.
|
|
||||||||||||||||
|
Constructor. Use this constructor to create an SpatialXform (size 6x6) and to initialize it to an Vector of doubles specified by *f. This constructor is used to construct a SpatialXform with an identity rotation matrix and a zero position vector. It creates a 6 by 6 diagonal matrix with diagonal element 1.0. This default transformation means that the source and destination frames are parallel and coincident. It initializes SpatialXform by using a row pattern, for example in a 4x4 matrix the first row is initialized with the first 4 values in the Vector. The Vector must be of size 36. Also be careful if the array f has fewer elements than the SpatialXform it results in garbage, if the array has more elements than the SpatialXform then those elements remaining are cut off.
|
|
|
Constructor. This constructor is used to construct a SpatialXform from another SpatialXform .
|
|
|
Constructor. This constructor is used to construct a SpatialXform from a 6x6 Matrix .
|
|
|
Virtual Destructor. This is the Destructor for an object of type SpatialXform. |
|
|
Get the quaternion representing the orientation of the source frame w.r.t the destination frame. This method is used to get a copy of the equivalent 4 by 1 quaternion representing the orientation.
|
|
|
Get the elements representing the orientation of the source frame w.r.t the destination frame. This method is used to get the last three elements of a HandPose and the type of orientation.
|
|
|
Get the handpose from a SpatialXform. This method is used to get the equivalent handpose from a SpatialXform.
|
|
|
Get the 4 by 4 transformation matrix from a SpatialXform. This method is used to get the 4 by 4 transformation matrix from a SpatialXform.
|
|
|
Get the 3 by 3 rotation matrix part from a SpatialXform. This method is used to get the 3 by 3 rotation matrix from a SpatialXform object.
|
|
|
Get the Inverse for SpatialXform objects. This method gets the inverse spatial transformation matrix from destination frame to the source frame.
|
|
|
Get the Inverse for SpatialXform objects. This method gets the inverse spatial transformation matrix from destination frame to the source frame.
|
|
||||||||||||
|
Multiply SpatialXform objects. This method multiplies the calling SpatialXform object with a SpatialXform object.
|
|
|
Overloaded * operator. Overloaded * operator. This operator multiplies a SpatialXform object by the calling SpatialXform object.
|
|
|
Overloaded - operator. Overloaded - operator. This operator is used to change the sign of the calling SpatialXform object. Each element of the calling SpatialXform object is multiplied with -1.
Reimplemented from OSCAR::Matrix. |
|
|
Overloaded - operator. Overloaded - operator. This operator subtracts a SpatialXform object from the calling SpatialXform object.
|
|
|
Overloaded -= operator. Overloaded -= operator. This operator subtracts a SpatialXform object from the calling SpatialXform object.
|
|
|
Assignment Operator. This is the Assignment Operator for an object of type SpatialXform.
Reimplemented from OSCAR::FixedSizeMatrix< 6, 6 >. |
|
|
Assignment Operator. This is the Assignment Operator for an object of type SpatialXform.
|
|
|
Set the SpatialXform based on a handpose. This method is used to set the SpatialXform based on a handpose. This statement forms the whole spatial transformation matrix using an equivalent handpose representation hp and stores it in X.
|
|
|
Set the SpatialXform based on a homogenous transformation matrix. This method is used to set the SpatialXform based on a homogenous tranformation matrix. This statement forms the whole spatial transformation matrix using an equivalent homogenous transformation matrix T and stores it in X.
|
|
|
Set the orientation part of the SpatialXform based on a quaternion. This method is used to set the the rotation matrix of a SpatialXform based on a quaternion. This statement sets the rotation matrix associated with X based on quaternion. (Note that the 3x3 diagonal submatrices of X are identical and are the rotation matrices).
|
|
||||||||||||
|
Set the values for every element of the SpatialXform based on a rotation matrix and position vector. This method is used to set the SpatialXform based on the rotation matrix and position vector passed as arguments.
|
|
|
Set the left bottom matrix of the SpatialXform. This method is used to set the left bottom matrix part of the SpatialXform based on the Matrix passed as argument. This statement sets the left bottom sub-matrix of X to M. (Note that this sub-matrix is (pXR) where p is the position vector of origin of source frame in destination frame, R is the rotation matrix associated therewith and X is the vector cross-product operator).
|
|
|
Set the rotation matrix of a SpatialXform object. This method is used to set the orientation part of the SpatialXform based on the rotation matrix passed as argument .
|
|
||||||||||||
|
Subtract an SpatialXform object from the calling SpatialXform object. This method is used to subtract an SpatialXform object from the calling SpatialXform object.
|
| RRG Homepage | OSCAR Overview | OSCAR Tutorials | Simulations |