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

From NAMIC Wiki
Jump to: navigation, search
Line 64: Line 64:
  
 
==STP_POSITION==
 
==STP_POSITION==
 
 
 
{| border="1" cellpadding="5" cellspacing="0" align="center"
 
{| border="1" cellpadding="5" cellspacing="0" align="center"
 
|-
 
|-
Line 73: Line 71:
 
|-
 
|-
 
|}
 
|}
 +
 +
=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]

Revision as of 03:35, 30 June 2010

Home < OpenIGTLink < ProtocolV2 < Type < Position

<< Version 2 Draft 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
Y 32-bit float Y position
Z 32-bit float Z position
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

Implementations

POSITION type is implemented in the following files: