OpenIGTLink/ProtocolV2/Type/AssociativeArray

From NAMIC Wiki
Revision as of 06:33, 14 July 2010 by Tokuda (talk | contribs) (Created page with ' << Version 2 Draft Page =Summary= Associative Array type is designed to transfer multiple pairs of key and values (associative array) to…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Home < OpenIGTLink < ProtocolV2 < Type < AssociativeArray

<< Version 2 Draft Page

Summary

Associative Array type is designed to transfer multiple pairs of key and values (associative array) to the receiver. The message format supports key as an array of ASCII code with length less than 256 bytes, and value as an N-dimensional array of 8-, 16-, 32- and 64-bit singed and unsigned integer and 32- and 64-bit float. Maximum 256 dimensions is supported and up to 65536 pairs can be listed in the format. The format consists of data table, which specifies type and size of keys and values, followed by an array of key strings and values.

Message Types

AARRAY

Data Type Description
TYPE UINT8

Bit 0-1: bit (0=8bit, 1=16bit, 2=32bit, 3=64bit)
Bit 2: sign (0=unsigned, 1=signed, ignored if values are float)
Bit 3: integer or float (0=integer, 1=float)
Bit 4: Data Byte Order

DIM UINT8 Dimension of array
SIZE UINT16[DIM] Size of array
DATA TYPE[SIZE[0]][SIZE[1]]....[[SIZE[DIM-1]]] Array data. (This field is not always in network byte order.)

GET_AARRAY

Data Type Description


STT_AARRAY

Data Type Description

STP_AARRAY

Data Type Description

RTS_AARRAY

Implementations

The AARRAY message type is implemented in the following source code.

Contributors

Junichi Tokuda, Yuichiro Hayashi

Comments