Difference between revisions of "OpenIGTLink/ProtocolV2/Type/Transform"
From NAMIC Wiki
Line 5: | Line 5: | ||
=Message Types= | =Message Types= | ||
− | == | + | ==TRANSFORM== |
{| border="1" cellpadding="5" cellspacing="0" align="center" | {| border="1" cellpadding="5" cellspacing="0" align="center" | ||
Line 13: | Line 13: | ||
| align="left style="background:#e0e0e0;" | Description | | align="left style="background:#e0e0e0;" | Description | ||
|- | |- | ||
− | | align="left" | | + | | align="left" | R11 |
− | | align="left" | | + | | align="left" | 32-bit float |
− | | align="left" | | + | | align="left" | Element (1, 1) in 4-by-4 linear transformation matrix |
+ | |- | ||
+ | | align="left" | R21 | ||
+ | | align="left" | 32-bit float | ||
+ | | align="left" | Element (2, 1) in 4-by-4 linear transformation matrix | ||
+ | |- | ||
+ | | align="left" | R31 | ||
+ | | align="left" | 32-bit float | ||
+ | | align="left" | Element (3, 1) in 4-by-4 linear transformation matrix | ||
+ | |- | ||
+ | | align="left" | R12 | ||
+ | | align="left" | 32-bit float | ||
+ | | align="left" | Element (1, 2) in 4-by-4 linear transformation matrix | ||
|- | |- | ||
− | | align="left" | | + | | align="left" | R22 |
− | | align="left" | | + | | align="left" | 32-bit float |
− | | align="left" | | + | | align="left" | Element (2, 2) in 4-by-4 linear transformation matrix |
|- | |- | ||
− | | align="left" | | + | | align="left" | R32 |
− | | align="left" | | + | | align="left" | 32-bit float |
− | | align="left" | | + | | align="left" | Element (3, 2) in 4-by-4 linear transformation matrix |
|- | |- | ||
|} | |} | ||
− | == | + | ==GET_TRANSFORM== |
{| border="1" cellpadding="5" cellspacing="0" align="center" | {| border="1" cellpadding="5" cellspacing="0" align="center" | ||
|- | |- | ||
Line 50: | Line 62: | ||
− | == | + | ==STT_TRANSFORM== |
{| border="1" cellpadding="5" cellspacing="0" align="center" | {| border="1" cellpadding="5" cellspacing="0" align="center" | ||
Line 72: | Line 84: | ||
|} | |} | ||
− | == | + | ==STP_TRANSFORM== |
− | |||
{| border="1" cellpadding="5" cellspacing="0" align="center" | {| border="1" cellpadding="5" cellspacing="0" align="center" |
Revision as of 03:29, 30 June 2010
Home < OpenIGTLink < ProtocolV2 < Type < TransformContents
Summary
The TRANSFORM data type is used to transfer a homogeneous linear transformation in 4-by-4 matrix form. One such matrix was shown earlier in equation (1). Note that if a device is sending only translation and rotation, then TRANSFORM is equivalent to POSITION. But TRANSFORM can also be used to transfer affine transformations or simple scaling. Like IMAGE and POSITION, TRANSFORM carries information about the coordinate system used.
Message Types
TRANSFORM
Data | Type | Description |
R11 | 32-bit float | Element (1, 1) in 4-by-4 linear transformation matrix |
R21 | 32-bit float | Element (2, 1) in 4-by-4 linear transformation matrix |
R31 | 32-bit float | Element (3, 1) in 4-by-4 linear transformation matrix |
R12 | 32-bit float | Element (1, 2) in 4-by-4 linear transformation matrix |
R22 | 32-bit float | Element (2, 2) in 4-by-4 linear transformation matrix |
R32 | 32-bit float | Element (3, 2) in 4-by-4 linear transformation matrix |
GET_TRANSFORM
Data | Type | Description |
V1 | unsigned short | Value 1 |
V2 | 8bit unsigned int | Value 2 |
... | ... | ... |
STT_TRANSFORM
Data | Type | Description |
V1 | unsigned short | Value 1 |
V2 | 8bit unsigned int | Value 2 |
... | ... | ... |
STP_TRANSFORM
Data | Type | Description |
V1 | unsigned short | Value 1 |
V2 | 8bit unsigned int | Value 2 |
... | ... | ... |
Implementations
IMAGE type is implemented in the following files: