Difference between revisions of "OpenIGTLink/ProtocolV2/Type/Position"

From NAMIC Wiki
Jump to: navigation, search
(Created page with ' << Version 2 Draft Page =Summary= The POSITION data type is used to transfer position and orientation information. The data are a co…')
 
 
(9 intermediate revisions by the same user not shown)
Line 1: Line 1:
[[OpenIGTLink/ProtocolV2/Proposals | &lt;&lt; Version 2 Draft Page]]
+
[[OpenIGTLink/ProtocolV2/Index | &lt;&lt; Version 2 Index Page]]
  
 
=Summary=
 
=Summary=
Line 13: Line 13:
 
| align="left style="background:#e0e0e0;" | Description
 
| align="left style="background:#e0e0e0;" | Description
 
|-
 
|-
| align="left" | V1
+
| align="left" | X
| align="left" | unsigned short
+
| align="left" | 32-bit float
| align="left" | Value 1
+
| align="left" | X position in millimeter
 
|-
 
|-
| align="left" | V2
+
| align="left" | Y
| align="left" | 8bit unsigned int
+
| align="left" | 32-bit float
| align="left" | Value 2
+
| align="left" | Y position in millimeter
 
|-
 
|-
| align="left" | ...
+
| align="left" | Z
| align="left" | ...
+
| align="left" | 32-bit float
| align="left" | ...
+
| align="left" | Z position in millimeter
 +
|-
 +
| align="left" | OX
 +
| align="left" | 32-bit float
 +
| align="left" | X element in quaternion
 +
|-
 +
| align="left" | OY
 +
| align="left" | 32-bit float
 +
| align="left" | Y element in quaternion
 +
|-
 +
| align="left" | OZ
 +
| align="left" | 32-bit float
 +
| align="left" | Z element in quaternion
 +
|-
 +
| align="left" | W
 +
| align="left" | 32-bit float
 +
| align="left" | W element in quaternion
 
|-
 
|-
 
|}
 
|}
 
  
 
==GET_POSITION==
 
==GET_POSITION==
Line 34: Line 49:
 
| align="left style="background:#e0e0e0;" | Type
 
| align="left style="background:#e0e0e0;" | Type
 
| align="left style="background:#e0e0e0;" | Description
 
| align="left style="background:#e0e0e0;" | Description
|-
 
| align="left" | V1
 
| align="left" | unsigned short
 
| align="left" | Value 1
 
|-
 
| align="left" | V2
 
| align="left" | 8bit unsigned int
 
| align="left" | Value 2
 
|-
 
| align="left" | ...
 
| align="left" | ...
 
| align="left" | ...
 
 
|-
 
|-
 
|}
 
|}
 
  
 
==STT_POSITION==
 
==STT_POSITION==
Line 58: Line 60:
 
| align="left style="background:#e0e0e0;" | Description
 
| align="left style="background:#e0e0e0;" | Description
 
|-
 
|-
| align="left" | V1
+
|}
| align="left" | unsigned short
+
 
| align="left" | Value 1
+
==STP_POSITION==
 +
{| border="1" cellpadding="5" cellspacing="0" align="center"
 
|-
 
|-
| align="left" | V2
+
| align="left style="background:#e0e0e0;" | Data
| align="left" | 8bit unsigned int
+
| align="left style="background:#e0e0e0;" | Type
| align="left" | Value 2
+
| align="left style="background:#e0e0e0;" | Description
|-
 
| align="left" | ...
 
| align="left" | ...
 
| align="left" | ...
 
 
|-
 
|-
 
|}
 
|}
  
==STP_POSITION==
+
==RTS_POSITION==
 
 
  
 
{| border="1" cellpadding="5" cellspacing="0" align="center"
 
{| border="1" cellpadding="5" cellspacing="0" align="center"
Line 81: Line 79:
 
| align="left style="background:#e0e0e0;" | Description
 
| align="left style="background:#e0e0e0;" | Description
 
|-
 
|-
| align="left" | V1
+
| align="left" | Status
| align="left" | unsigned short
+
| align="left" | 8 bit unsigned  
| align="left" | Value 1
+
| align="left" | 0: Success 1: Error
|-
 
| align="left" | V2
 
| align="left" | 8bit unsigned int
 
| align="left" | Value 2
 
|-
 
| align="left" | ...
 
| align="left" | ...
 
| align="left" | ...
 
 
|-
 
|-
 
|}
 
|}
 +
 +
=Implementations=
 +
POSITION type is implemented in the following files:
 +
*[http://svn.na-mic.org/NAMICSandBox/trunk/OpenIGTLink/Source/igtlPositionMessage.h igtlPositionMessage.h]
 +
*[http://svn.na-mic.org/NAMICSandBox/trunk/OpenIGTLink/Source/igtlPositionMessage.cxx igtlPositionMessage.cxx]
 +
 +
=Contributors=
 +
This message was originally proposed in version 1.
 +
 +
=Comments=

Latest revision as of 04:41, 30 November 2011

Home < OpenIGTLink < ProtocolV2 < Type < Position

<< Version 2 Index Page

Summary

The POSITION data type is used to transfer position and orientation information. The data are a combination of 3-dimensional vector for the position and quaternion for the orientation. Although equivalent position and orientation can be described with the TRANSFORM data type, the POSITION data type has the advantage of smaller data size (19%). It is therefore more suitable for pushing high frame-rate data from tracking devices.

Message Types

POSITION

Data Type Description
X 32-bit float X position in millimeter
Y 32-bit float Y position in millimeter
Z 32-bit float Z position in millimeter
OX 32-bit float X element in quaternion
OY 32-bit float Y element in quaternion
OZ 32-bit float Z element in quaternion
W 32-bit float W element in quaternion

GET_POSITION

Data Type Description

STT_POSITION

Data Type Description

STP_POSITION

Data Type Description

RTS_POSITION

Data Type Description
Status 8 bit unsigned 0: Success 1: Error

Implementations

POSITION type is implemented in the following files:

Contributors

This message was originally proposed in version 1.

Comments