Class representing a transformation (translation and rotation) for the positional tracking module. More...
Functions | |
None | init_transform (self, Transform motion) |
Deep copy from another sl.Transform. More... | |
None | init_matrix (self, Matrix4f matrix) |
Initializes the sl.Transform from a sl.Matrix4f. More... | |
None | init_rotation_translation (self, Rotation rot, Translation tr) |
Initializes the sl.Transform from an sl.Rotation and a sl.Translation. More... | |
None | init_orientation_translation (self, Orientation orient, Translation tr) |
Initializes the sl.Transform from an sl.Orientation and a sl.Translation. More... | |
None | set_rotation_matrix (self, Rotation py_rotation) |
Sets the rotation component of the current sl.Transform from an sl.Rotation. More... | |
Rotation | get_rotation_matrix (self) |
Returns the sl.Rotation corresponding to the current sl.Transform. More... | |
None | set_translation (self, Translation py_translation) |
Sets the translation component of the current sl.Transform from an sl.Translation. More... | |
Translation | get_translation (self) |
Returns the sl.Translation corresponding to the current sl.Transform. More... | |
None | set_orientation (self, Orientation py_orientation) |
Sets the orientation component of the current sl.Transform from an sl.Orientation. More... | |
Orientation | get_orientation (self) |
Returns the sl.Orientation corresponding to the current sl.Transform. More... | |
np.array[float] | get_rotation_vector (self) |
Returns the 3x1 rotation vector obtained from 3x3 rotation matrix using Rodrigues formula. More... | |
None | set_rotation_vector (self, float input0, float input1, float input2) |
Sets the rotation component of the sl.Transform with a 3x1 rotation vector (using Rodrigues' transformation). More... | |
np.array[float] | get_euler_angles (self, radian=True) |
Converts the rotation component of the sl.Transform into Euler angles. More... | |
None | set_euler_angles (self, float input0, float input1, float input2, radian=True) |
Sets the rotation component of the sl.Transform from Euler angles. More... | |
ERROR_CODE | inverse (self) |
Sets the sl.Matrix4f to its inverse. More... | |
Matrix4f | inverse_mat (self, Matrix4f rotation) |
Returns the inverse of a sl.Matrix4f. More... | |
None | transpose (self) |
Sets the sl.Matrix4f to its transpose. | |
Matrix4f | transpose_mat (self, Matrix4f rotation) |
Returns the transpose of a sl.Matrix4f. More... | |
Matrix4f | set_identity (self) |
Sets the sl.Matrix4f to identity. More... | |
Matrix4f | identity (self) |
Creates an identity sl.Matrix4f. More... | |
None | set_zeros (self) |
Sets the sl.Matrix4f to zero. | |
Matrix4f | zeros (self) |
Creates a sl.Matrix4f filled with zeros. More... | |
str | get_infos (self) |
Returns the components of the sl.Matrix4f in a string. More... | |
ERROR_CODE | set_sub_matrix3f (self, Matrix3f input, row=0, column=0) |
Sets a sl.Matrix3f inside the sl.Matrix4f. More... | |
ERROR_CODE | set_sub_vector3f (self, float input0, float input1, float input2, column=3) |
Sets a 3x1 Vector inside the sl.Matrix4f at the specified column index. More... | |
ERROR_CODE | set_sub_vector4f (self, float input0, float input1, float input2, float input3, column=3) |
Sets a 4x1 Vector inside the sl.Matrix4f at the specified column index. More... | |
str | matrix_name (self) |
Returns the name of the matrix (optional). | |
np.numpy[float][float] | m (self) |
4*4 numpy array of inner data. | |
Class representing a transformation (translation and rotation) for the positional tracking module.
It can be used to create any type of Matrix4x4 or sl::Matrix4f that must be specifically used for handling a rotation and position information (OpenGL, Tracking, etc.).
It inherits from the generic sl::Matrix4f class.
None init_transform | ( | self, | |
Transform | motion | ||
) |
Deep copy from another sl.Transform.
motion | : sl.Transform to copy. |
None init_matrix | ( | self, | |
Matrix4f | matrix | ||
) |
Initializes the sl.Transform from a sl.Matrix4f.
matrix | : sl.Matrix4f to be used. |
Reimplemented from Matrix4f.
None init_rotation_translation | ( | self, | |
Rotation | rot, | ||
Translation | tr | ||
) |
Initializes the sl.Transform from an sl.Rotation and a sl.Translation.
rot | : sl.Rotation to be used. |
tr | : sl.Translation to be used. |
None init_orientation_translation | ( | self, | |
Orientation | orient, | ||
Translation | tr | ||
) |
Initializes the sl.Transform from an sl.Orientation and a sl.Translation.
orient | : Orientation to be used |
tr | : Translation to be used |
None set_rotation_matrix | ( | self, | |
Rotation | py_rotation | ||
) |
Sets the rotation component of the current sl.Transform from an sl.Rotation.
py_rotation | : sl.Rotation to be used. |
Rotation get_rotation_matrix | ( | self | ) |
Returns the sl.Rotation corresponding to the current sl.Transform.
None set_translation | ( | self, | |
Translation | py_translation | ||
) |
Sets the translation component of the current sl.Transform from an sl.Translation.
py_translation | : sl.Translation to be used. |
Translation get_translation | ( | self | ) |
Returns the sl.Translation corresponding to the current sl.Transform.
None set_orientation | ( | self, | |
Orientation | py_orientation | ||
) |
Sets the orientation component of the current sl.Transform from an sl.Orientation.
py_orientation | : sl.Orientation to be used. |
Orientation get_orientation | ( | self | ) |
Returns the sl.Orientation corresponding to the current sl.Transform.
np.array[float] get_rotation_vector | ( | self | ) |
Returns the 3x1 rotation vector obtained from 3x3 rotation matrix using Rodrigues formula.
None set_rotation_vector | ( | self, | |
float | input0, | ||
float | input1, | ||
float | input2 | ||
) |
Sets the rotation component of the sl.Transform with a 3x1 rotation vector (using Rodrigues' transformation).
input0 | : rx component of the rotation vector. |
input1 | : ry component of the rotation vector. |
input2 | : rz component of the rotation vector. |
np.array[float] get_euler_angles | ( | self, | |
radian = True |
|||
) |
Converts the rotation component of the sl.Transform into Euler angles.
radian | : Whether the angle will be returned in radian or degree. Default: True |
None set_euler_angles | ( | self, | |
float | input0, | ||
float | input1, | ||
float | input2, | ||
radian = True |
|||
) |
Sets the rotation component of the sl.Transform from Euler angles.
input0 | : Roll value. |
input1 | : Pitch value. |
input2 | : Yaw value. |
radian | : Whether the angle is in radian or degree. Default: True |
|
inherited |
Sets the sl.Matrix4f to its inverse.
Returns the inverse of a sl.Matrix4f.
rotation | : sl.Matrix4f to compute the inverse from. |
Returns the transpose of a sl.Matrix4f.
rotation | : sl.Matrix4f to compute the transpose from. |
|
inherited |
Sets the sl.Matrix4f to identity.
|
inherited |
Creates an identity sl.Matrix4f.
|
inherited |
Creates a sl.Matrix4f filled with zeros.
|
inherited |
Returns the components of the sl.Matrix4f in a string.
Referenced by Matrix4f.m(), and Mat.verbose().
|
inherited |
Sets a sl.Matrix3f inside the sl.Matrix4f.
input | : Sub-matrix to put inside the sl.Matrix4f. |
row | : Index of the row to start the 3x3 block. Must be 0 or 1. |
column | : Index of the column to start the 3x3 block. Must be 0 or 1. |
|
inherited |
Sets a 3x1 Vector inside the sl.Matrix4f at the specified column index.
input0 | : First value of the 3x1 Vector to put inside the sl.Matrix4f. |
input1 | : Second value of the 3x1 Vector to put inside the sl.Matrix4f. |
input2 | : Third value of the 3x1 Vector to put inside the sl.Matrix4f. |
column | : Index of the column to start the 3x3 block. By default, it is the last column (translation for a sl.Pose). |
|
inherited |
Sets a 4x1 Vector inside the sl.Matrix4f at the specified column index.
input0 | : First value of the 4x1 Vector to put inside the sl.Matrix4f. |
input1 | : Second value of the 4x1 Vector to put inside the sl.Matrix4f. |
input2 | : Third value of the 4x1 Vector to put inside the sl.Matrix4f. |
input3 | : Fourth value of the 4x1 Vector to put inside the sl.Matrix4f. |
column | : Index of the column to start the 3x3 block. By default, it is the last column (translation for a sl.Pose). |