Interface ICoordinateConverter
Device for UniNc controller.
public interface ICoordinateConverter
- Extension Methods
Methods
AttacherNpToMc(DVec3d, out DVec3d)
tool attacher NP (Normal and Point) to machine coordinate. The NP is from table buckle to tool attacher.
bool AttacherNpToMc(DVec3d pn, out DVec3d mcXyzabc_rad)
Parameters
pnDVec3dtool attacher NP (Normal and Point)
mcXyzabc_radDVec3dmachine coordinate (ABC in radian)
Returns
- bool
whether conversion succeeded
IsAxisAExisted()
Is rotary A existed.
bool IsAxisAExisted()
Returns
- bool
Is rotary A existed.
IsAxisBExisted()
Is rotary B existed.
bool IsAxisBExisted()
Returns
- bool
Is rotary B existed.
IsAxisCExisted()
Is rotary C existed.
bool IsAxisCExisted()
Returns
- bool
Is rotary C existed.
McAbcToTiltMat(Vec3d)
Converts machine ABC coordinates to a tilt matrix. the tilt matrix is the transformation matrix from table to attacher.
Mat4d McAbcToTiltMat(Vec3d mcAbc_rad)
Parameters
mcAbc_radVec3dThe machine ABC coordinates in radians
Returns
- Mat4d
The tilt matrix
McToAttacherMat(DVec3d)
Converts machine coordinates to an attacher matrix.
Mat4d McToAttacherMat(DVec3d mcXyzabc)
Parameters
mcXyzabcDVec3dThe machine coordinates
Returns
- Mat4d
The attacher matrix
McToAttacherNp(DVec3d)
Machine coordinate to tool attacher NP (Normal and Point). The NP is from table buckle to tool attacher.
DVec3d McToAttacherNp(DVec3d mcXyzabc)
Parameters
mcXyzabcDVec3dmachine coordinate. ABC is in radian.
Returns
- DVec3d
tool attacher Np (Normal and Point)
TiltMatToMcAbc(Mat4d, out Vec3d)
Converts a tilt matrix to machine ABC coordinates. the tilt matrix is the transformation matrix from table to attacher.
bool TiltMatToMcAbc(Mat4d tiltMat, out Vec3d mcAbc_rad)
Parameters
tiltMatMat4dThe tilt matrix to convert
mcAbc_radVec3dOutput parameter that will contain the machine ABC coordinates in radians
Returns
- bool
Whether the conversion was successful