BowlerKernel
Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
com.neuronrobotics.sdk.addons.kinematics.math.RotationNR Class Reference
Collaboration diagram for com.neuronrobotics.sdk.addons.kinematics.math.RotationNR:
Collaboration graph
[legend]

Public Member Functions

 RotationNR ()
 
 RotationNR (Rotation store)
 
 RotationNR (double tilt, double azumeth, double elevation)
 
 RotationNR (double[][] rotationMatrix)
 
 RotationNR (double[] values)
 
 RotationNR (double w, double x, double y, double z)
 
 RotationNR (Matrix m)
 
double[][] getRotationMatrix ()
 
String toString ()
 
String toString (double[][] array)
 
double getRotationTilt ()
 
double getRotationElevation ()
 
double getRotationAzimuth ()
 
double getRotationMatrix2QuaturnionW ()
 
double getRotationMatrix2QuaturnionX ()
 
double getRotationMatrix2QuaturnionY ()
 
double getRotationMatrix2QuaturnionZ ()
 
Rotation getStorage ()
 
void setStorage (Rotation storage)
 
void set (double[][] poseRot)
 

Static Public Member Functions

static RotationNR getRotationX (double rotationAngleDegrees)
 
static RotationNR getRotationY (double rotationAngleDegrees)
 
static RotationNR getRotationZ (double rotationAngleDegrees)
 
static boolean bound (double low, double high, double n)
 
static RotationOrder getOrder ()
 
static void setOrder (RotationOrder o)
 
static RotationConvention getConvention ()
 
static void setConvention (RotationConvention convention)
 

Protected Member Functions

void quaternion2RotationMatrix (double w, double x, double y, double z)
 

Private Member Functions

void loadRotations (double[][] rotM)
 
void loadFromAngles (double tilt, double azumeth, double elevation)
 
void simpilfyAngles (double[] angles)
 
double eulerFix (double offsetSize, int index)
 
double getAngle (int index)
 

Private Attributes

Rotation storage = new Rotation(1, 0, 0, 0, false)
 

Static Private Attributes

static RotationOrder order = RotationOrder.ZYX
 
static RotationConvention convention = RotationConvention.VECTOR_OPERATOR
 

Detailed Description

This class is to represent a 3x3 rotation sub-matrix This class also contains static methods for dealing with 3x3 rotations.

Author
Kevin Harrington

Definition at line 21 of file RotationNR.java.

Constructor & Destructor Documentation

◆ RotationNR() [1/7]

com.neuronrobotics.sdk.addons.kinematics.math.RotationNR.RotationNR ( )

◆ RotationNR() [2/7]

com.neuronrobotics.sdk.addons.kinematics.math.RotationNR.RotationNR ( Rotation  store)

Instatiate using the org.apache.commons.math3.geometry.euclidean.threed.Rotation .

Parameters
storeA org.apache.commons.math3.geometry.euclidean.threed.Rotation instance

Definition at line 44 of file RotationNR.java.

References com.neuronrobotics.sdk.addons.kinematics.math.RotationNR.storage.

◆ RotationNR() [3/7]

com.neuronrobotics.sdk.addons.kinematics.math.RotationNR.RotationNR ( double  tilt,
double  azumeth,
double  elevation 
)

◆ RotationNR() [4/7]

com.neuronrobotics.sdk.addons.kinematics.math.RotationNR.RotationNR ( double  rotationMatrix[][])

Instantiates a new rotation nr.

Parameters
rotationMatrixthe rotation matrix

Definition at line 85 of file RotationNR.java.

References com.neuronrobotics.sdk.addons.kinematics.math.RotationNR.loadRotations().

Here is the call graph for this function:

◆ RotationNR() [5/7]

com.neuronrobotics.sdk.addons.kinematics.math.RotationNR.RotationNR ( double[]  values)

Instantiates a new rotation nr.

Parameters
valuesthe values

Definition at line 95 of file RotationNR.java.

◆ RotationNR() [6/7]

com.neuronrobotics.sdk.addons.kinematics.math.RotationNR.RotationNR ( double  w,
double  x,
double  y,
double  z 
)

Instantiates a new rotation nr.

Parameters
wthe w
xthe x
ythe y
zthe z

Definition at line 193 of file RotationNR.java.

References com.neuronrobotics.sdk.addons.kinematics.math.RotationNR.quaternion2RotationMatrix().

Here is the call graph for this function:

◆ RotationNR() [7/7]

com.neuronrobotics.sdk.addons.kinematics.math.RotationNR.RotationNR ( Matrix  m)

Instantiates a new rotation nr.

Parameters
mthe m

Definition at line 203 of file RotationNR.java.

References com.neuronrobotics.sdk.addons.kinematics.math.RotationNR.loadRotations().

Here is the call graph for this function:

Member Function Documentation

◆ bound()

static boolean com.neuronrobotics.sdk.addons.kinematics.math.RotationNR.bound ( double  low,
double  high,
double  n 
)
static

Bound.

Parameters
lowthe low
highthe high
nthe n
Returns
true, if successful

Definition at line 314 of file RotationNR.java.

◆ eulerFix()

double com.neuronrobotics.sdk.addons.kinematics.math.RotationNR.eulerFix ( double  offsetSize,
int  index 
)
private

◆ getAngle()

double com.neuronrobotics.sdk.addons.kinematics.math.RotationNR.getAngle ( int  index)
private

◆ getConvention()

static RotationConvention com.neuronrobotics.sdk.addons.kinematics.math.RotationNR.getConvention ( )
static

◆ getOrder()

static RotationOrder com.neuronrobotics.sdk.addons.kinematics.math.RotationNR.getOrder ( )
static

◆ getRotationAzimuth()

double com.neuronrobotics.sdk.addons.kinematics.math.RotationNR.getRotationAzimuth ( )

◆ getRotationElevation()

double com.neuronrobotics.sdk.addons.kinematics.math.RotationNR.getRotationElevation ( )

◆ getRotationMatrix()

double [][] com.neuronrobotics.sdk.addons.kinematics.math.RotationNR.getRotationMatrix ( )

◆ getRotationMatrix2QuaturnionW()

double com.neuronrobotics.sdk.addons.kinematics.math.RotationNR.getRotationMatrix2QuaturnionW ( )

◆ getRotationMatrix2QuaturnionX()

double com.neuronrobotics.sdk.addons.kinematics.math.RotationNR.getRotationMatrix2QuaturnionX ( )

◆ getRotationMatrix2QuaturnionY()

double com.neuronrobotics.sdk.addons.kinematics.math.RotationNR.getRotationMatrix2QuaturnionY ( )

◆ getRotationMatrix2QuaturnionZ()

double com.neuronrobotics.sdk.addons.kinematics.math.RotationNR.getRotationMatrix2QuaturnionZ ( )

◆ getRotationTilt()

double com.neuronrobotics.sdk.addons.kinematics.math.RotationNR.getRotationTilt ( )

◆ getRotationX()

static RotationNR com.neuronrobotics.sdk.addons.kinematics.math.RotationNR.getRotationX ( double  rotationAngleDegrees)
static

Get a rotation matrix with a rotation around X.

Parameters
rotationAngleDegreesin degrees
Returns
the static matrix

Definition at line 106 of file RotationNR.java.

References com.neuronrobotics.sdk.addons.kinematics.math.RotationNR.RotationNR().

Referenced by com.neuronrobotics.sdk.addons.kinematics.GenericKinematicsModelNR.forwardKinematics().

Here is the call graph for this function:

◆ getRotationY()

static RotationNR com.neuronrobotics.sdk.addons.kinematics.math.RotationNR.getRotationY ( double  rotationAngleDegrees)
static

Get a rotation matrix with a rotation around Y.

Parameters
rotationAngleDegreesin degrees
Returns
the static matrix

Definition at line 133 of file RotationNR.java.

References com.neuronrobotics.sdk.addons.kinematics.math.RotationNR.RotationNR().

Referenced by com.neuronrobotics.sdk.addons.kinematics.GenericKinematicsModelNR.forwardKinematics().

Here is the call graph for this function:

◆ getRotationZ()

static RotationNR com.neuronrobotics.sdk.addons.kinematics.math.RotationNR.getRotationZ ( double  rotationAngleDegrees)
static

Get a rotation matrix with a rotation around Z.

Parameters
rotationAngleDegreesin degrees
Returns
the static matrix

Definition at line 160 of file RotationNR.java.

References com.neuronrobotics.sdk.addons.kinematics.math.RotationNR.RotationNR().

Referenced by com.neuronrobotics.sdk.addons.kinematics.GenericKinematicsModelNR.forwardKinematics().

Here is the call graph for this function:

◆ getStorage()

Rotation com.neuronrobotics.sdk.addons.kinematics.math.RotationNR.getStorage ( )

◆ loadFromAngles()

void com.neuronrobotics.sdk.addons.kinematics.math.RotationNR.loadFromAngles ( double  tilt,
double  azumeth,
double  elevation 
)
private

◆ loadRotations()

void com.neuronrobotics.sdk.addons.kinematics.math.RotationNR.loadRotations ( double  rotM[][])
private

Load rotations.

Parameters
rotMthe rot m

Definition at line 219 of file RotationNR.java.

References com.neuronrobotics.sdk.addons.kinematics.math.RotationNR.setStorage().

Referenced by com.neuronrobotics.sdk.addons.kinematics.math.RotationNR.RotationNR(), and com.neuronrobotics.sdk.addons.kinematics.math.RotationNR.set().

Here is the call graph for this function:

◆ quaternion2RotationMatrix()

void com.neuronrobotics.sdk.addons.kinematics.math.RotationNR.quaternion2RotationMatrix ( double  w,
double  x,
double  y,
double  z 
)
protected

Quaternion2 rotation matrix.

Parameters
wthe w
xthe x
ythe y
zthe z

Definition at line 291 of file RotationNR.java.

References com.neuronrobotics.sdk.addons.kinematics.math.RotationNR.setStorage().

Referenced by com.neuronrobotics.sdk.addons.kinematics.math.RotationNR.RotationNR().

Here is the call graph for this function:

◆ set()

void com.neuronrobotics.sdk.addons.kinematics.math.RotationNR.set ( double  poseRot[][])

Definition at line 444 of file RotationNR.java.

References com.neuronrobotics.sdk.addons.kinematics.math.RotationNR.loadRotations().

Referenced by com.neuronrobotics.sdk.addons.kinematics.math.TransformNR.set().

Here is the call graph for this function:

◆ setConvention()

static void com.neuronrobotics.sdk.addons.kinematics.math.RotationNR.setConvention ( RotationConvention  convention)
static

◆ setOrder()

static void com.neuronrobotics.sdk.addons.kinematics.math.RotationNR.setOrder ( RotationOrder  o)
static

◆ setStorage()

void com.neuronrobotics.sdk.addons.kinematics.math.RotationNR.setStorage ( Rotation  storage)

◆ simpilfyAngles()

void com.neuronrobotics.sdk.addons.kinematics.math.RotationNR.simpilfyAngles ( double[]  angles)
private

◆ toString() [1/2]

String com.neuronrobotics.sdk.addons.kinematics.math.RotationNR.toString ( )

◆ toString() [2/2]

String com.neuronrobotics.sdk.addons.kinematics.math.RotationNR.toString ( double  array[][])

To string.

Parameters
arraythe array
Returns
the string

Definition at line 266 of file RotationNR.java.

Member Data Documentation

◆ convention

RotationConvention com.neuronrobotics.sdk.addons.kinematics.math.RotationNR.convention = RotationConvention.VECTOR_OPERATOR
staticprivate

◆ order

RotationOrder com.neuronrobotics.sdk.addons.kinematics.math.RotationNR.order = RotationOrder.ZYX
staticprivate

◆ storage

Rotation com.neuronrobotics.sdk.addons.kinematics.math.RotationNR.storage = new Rotation(1, 0, 0, 0, false)
private

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