Difference between revisions of "OpenIGTLink/ProtocolV2/Type/SensorData"
From NAMIC Wiki
Line 13: | Line 13: | ||
| align="left style="background:#e0e0e0;" | Description | | align="left style="background:#e0e0e0;" | Description | ||
|- | |- | ||
− | | align="left" | | + | | align="left" | NSENSORS |
| align="left" | UINT16 | | align="left" | UINT16 | ||
| align="left" | Number of sensors | | align="left" | Number of sensors | ||
|- | |- | ||
− | + | | colspan=3 align="left" |FORMAT 0 | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | | colspan=3 align="left" | | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
|- | |- | ||
− | | align="left" | | + | | align="left" | LARRAY 0 |
− | | align="left" | | + | | align="left" | UINT8 |
− | | align="left" | | + | | align="left" | Length of array (0-255) |
|- | |- | ||
− | | align="left" | | + | | align="left" | SIPREFIX 0 |
− | | align="left" | | + | | align="left" | INT8 |
− | | align="left" | | + | | align="left" | SI-prefix (-127 - 128) (see bellow) |
|- | |- | ||
− | | align="left" | | + | | align="left" | DIMENSION 0 |
− | | align="left" | | + | | align="left" | UINT8[6] |
− | | align="left" | | + | | align="left" | Dimension (see bellow) |
|- | |- | ||
− | | colspan=3 align=" | + | | colspan=3 align="left" |... |
|- | |- | ||
− | | colspan=3 align="left" | | + | | colspan=3 align="left" |FORMAT (NSENSORS-1) |
|- | |- | ||
− | | align="left" | ( | + | | align="left" | LARRAY (NSENSORS-1) |
− | | align="left" | UINT8 | + | | align="left" | UINT8 |
− | | align="left" | | + | | align="left" | Length of array (0-255) |
|- | |- | ||
− | | align="left" | ( | + | | align="left" | SIPREFIX (NSENSORS-1) |
− | | align="left" | | + | | align="left" | INT8 |
− | | align="left" | | + | | align="left" | SI-prefix (-127 - 128) (see bellow) |
|- | |- | ||
− | | align="left" | ( | + | | align="left" | DIMENSION (NSENSORS-1) |
− | | align="left" | | + | | align="left" | UINT8[6] |
− | | align="left" | | + | | align="left" | Dimension (see bellow) |
|- | |- | ||
− | | | + | | colspan=3 align="left" |DATA |
− | |||
− | |||
|- | |- | ||
− | | align="left" | | + | | align="left" | DATA 0 |
− | | align="left" | | + | | align="left" | float64[LARRAY 0] |
− | | align="left" | | + | | align="left" | value array for sensor 0 |
|- | |- | ||
− | | align="left" | | + | | align="left" | DATA 1 |
− | | align="left" | | + | | align="left" | float64[LARRAY 1] |
− | | align="left" | | + | | align="left" | value array for sensor 1 |
|- | |- | ||
− | | | + | | colspan=3 align="left" |... |
− | |||
− | |||
|- | |- | ||
− | | align="left" | ( | + | | align="left" | DATA (NSENSORS-1) |
− | | align="left" | | + | | align="left" | float64[LARRAY 1] |
− | | align="left" | | + | | align="left" | value array for sensor 1 |
|- | |- | ||
− | |||
− | |||
− | |||
|} | |} | ||
Revision as of 21:21, 8 November 2010
Home < OpenIGTLink < ProtocolV2 < Type < SensorDataContents
Summary
SDATA is a message type, which is used to transfer sensor reading, 3-axis position, velocity, acceleration, angle, angle velocity and angle acceleration. The message format is intended for manipulator control and various types of sensors.
Message Types
SENSOR
Data | Type | Description |
NSENSORS | UINT16 | Number of sensors |
FORMAT 0 | ||
LARRAY 0 | UINT8 | Length of array (0-255) |
SIPREFIX 0 | INT8 | SI-prefix (-127 - 128) (see bellow) |
DIMENSION 0 | UINT8[6] | Dimension (see bellow) |
... | ||
FORMAT (NSENSORS-1) | ||
LARRAY (NSENSORS-1) | UINT8 | Length of array (0-255) |
SIPREFIX (NSENSORS-1) | INT8 | SI-prefix (-127 - 128) (see bellow) |
DIMENSION (NSENSORS-1) | UINT8[6] | Dimension (see bellow) |
DATA | ||
DATA 0 | float64[LARRAY 0] | value array for sensor 0 |
DATA 1 | float64[LARRAY 1] | value array for sensor 1 |
... | ||
DATA (NSENSORS-1) | float64[LARRAY 1] | value array for sensor 1 |
GET_TDATA
Data | Type | Description |
STT_SENSOR
N/A
STP_SENSOR
N/A
RTS_SENSOR
N/A
Implementations
The TDATA message type is implemented in the following source code.
Contributors
Junichi Tokuda, Yuichiro Hayashi