Difference between revisions of "OpenIGTLink"
From NAMIC Wiki
| Line 2: | Line 2: | ||
=Protocol= | =Protocol= | ||
| + | ===Message Structure=== | ||
| + | Bytes | ||
| + | 0 2 14 34 42 50 | ||
| + | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+--+-+-+..... | ||
| + | | V | TYPE | DEVICE_NAME | BODY_SIZE | CRC | BODY | ||
| + | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+--+-+-+..... | ||
| − | + | ||
| − | + | ===Fields=== | |
| − | + | {| border="1" cellpadding="5" cellspacing="0" align="center" | |
| + | |- | ||
| + | | align="left style="background:#e0e0e0;" | Data | ||
| + | | align="left style="background:#e0e0e0;" | Type | ||
| + | | align="left style="background:#e0e0e0;" | Description | ||
| + | |- | ||
| + | | align="left" | V | ||
| + | | align="left" | Unsigned short (16bit) | ||
| + | | align="left" | Version number (1) | ||
| + | |- | ||
| + | | align="left" | TYPE | ||
| + | | align="left" | char[8] | ||
| + | | align="left" | Type name of body | ||
| + | |- | ||
| + | | align="left" | DEVICE_NAME | ||
| + | | align="left" | char[20] | ||
| + | | align="left" | Unique device name | ||
| + | |- | ||
| + | | align="left" | BODY_SIZE | ||
| + | | align="left" | 64 bit unsigned int | ||
| + | | align="left" | Size of body in bytes | ||
| + | |- | ||
| + | | align="left" | CRC | ||
| + | | align="left" | 64 bit unsigned int | ||
| + | | align="left" | 64 bit CRC for body data | ||
| + | |- | ||
| + | |} | ||
Revision as of 19:10, 9 January 2008
Home < OpenIGTLinkOverview
Protocol
Message Structure
Bytes 0 2 14 34 42 50 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+--+-+-+..... | V | TYPE | DEVICE_NAME | BODY_SIZE | CRC | BODY +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+--+-+-+.....
Fields
| Data | Type | Description |
| V | Unsigned short (16bit) | Version number (1) |
| TYPE | char[8] | Type name of body |
| DEVICE_NAME | char[20] | Unique device name |
| BODY_SIZE | 64 bit unsigned int | Size of body in bytes |
| CRC | 64 bit unsigned int | 64 bit CRC for body data |