Mech-Eye API 2.5.1
API reference documentation for Mech-Eye Industrial 3D Camera
|
Defines the rigid body transformations from one reference frame to another, including the rotation matrix and translation vector. More...
#include <CommonTypes.h>
Public Types | |
enum class | Axis { X , Y , Z } |
Public Member Functions | |
FrameTransformation ()=default | |
FrameTransformation (double rotateX, double rotateY, double rotateZ, double translateX, double translateY, double translateZ) | |
FrameTransformation (const FrameTransformation &rhs) | |
FrameTransformation & | operator= (const FrameTransformation &rhs) |
void | rotate (double theta, Axis rotationAxis) |
Rotates the reference frame of the point cloud. | |
void | translate (double x, double y, double z) |
Translates the reference frame of the point cloud. | |
bool | isValid () const |
Check if a custom reference frame has been set using Mech-Eye Viewer. | |
Data Fields | |
double | rotation [3][3] = {{1, 0, 0}, {0, 1, 0}, {0, 0, 1}} |
3*3 rotation matrix. | |
double | translation [3] = {0, 0, 0} |
3*1 translation vector in [x(mm), y(mm), z(mm)]. | |
Defines the rigid body transformations from one reference frame to another, including the rotation matrix and translation vector.
|
strong |
|
default |
|
inline |
|
inline |
|
inline |
Check if a custom reference frame has been set using Mech-Eye Viewer.
|
inline |
|
inline |
Rotates the reference frame of the point cloud.
[in] | theta | The amount of rotation. |
[in] | rotationAxis | The axis around which the rotation is performed. X-, Y-, and Z-Axes can be input. |
|
inline |
Translates the reference frame of the point cloud.
[in] | x | The amount of translation (in mm) along the X-axis. |
[in] | y | The amount of translation (in mm) along the Y-axis. |
[in] | z | The amount of translation (in mm) along the Z-axis. |
double rotation[3][3] = {{1, 0, 0}, {0, 1, 0}, {0, 0, 1}} |
3*3 rotation matrix.
double translation[3] = {0, 0, 0} |
3*1 translation vector in [x(mm), y(mm), z(mm)].