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

From NAMIC Wiki
Jump to: navigation, search
Line 5: Line 5:
  
 
=Message Types=
 
=Message Types=
==SDATA==
+
==SENSOR==
  
 
{| border="1" cellpadding="5" cellspacing="0" align="center"
 
{| border="1" cellpadding="5" cellspacing="0" align="center"
Line 120: Line 120:
  
  
==STT_TDATA==
+
==STT_SENSOR==
  
{| border="1" cellpadding="5" cellspacing="0" align="center"
+
N/A
|-
+
 
| align="left style="background:#e0e0e0;" | Data
+
==STP_SENSOR==
| align="left style="background:#e0e0e0;" | Type
+
 
| align="left style="background:#e0e0e0;" | Description
+
N/A
|-
 
|}
 
  
==STP_TDATA==
 
  
{| border="1" cellpadding="5" cellspacing="0" align="center"
+
==RTS_SENSOR==
|-
 
| align="left style="background:#e0e0e0;" | Data
 
| align="left style="background:#e0e0e0;" | Type
 
| align="left style="background:#e0e0e0;" | Description
 
|-
 
|}
 
  
==RTS_TDATA==
+
N/A
  
 
=Implementations=
 
=Implementations=
 
The TDATA message type is implemented in the following source code.
 
The TDATA message type is implemented in the following source code.
 
<!--
 
<!--
*[http://svn.na-mic.org/NAMICSandBox/trunk/OpenIGTLink/Source/igtlTrackingDataMessage.h igtlTrackingDataMessage.h]
+
*[http://svn.na-mic.org/NAMICSandBox/trunk/OpenIGTLink/Source/igtlSensorMessage.h igtlSensorMessage.h]
*[http://svn.na-mic.org/NAMICSandBox/trunk/OpenIGTLink/Source/igtlTrackingDataMessage.cxx igtlTrackingDataMessage.cxx]
+
*[http://svn.na-mic.org/NAMICSandBox/trunk/OpenIGTLink/Source/igtlSensorMessage.cxx igtlSensorMessage.cxx]
 
-->
 
-->
  

Revision as of 12:24, 16 July 2010

Home < OpenIGTLink < ProtocolV2 < Type < SensorData

<< Version 2 Draft Page

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
NSENSOR UINT16 Number of sensors
FORMAT UINT16

Bit 1: Name flag
Bit 8: Position flag (m)
Bit 9: Velocity flag (m/s)
Bit 10: Acceleration flag (m/s^2)
Bit 11: Force flag (N)
Bit 12: Angle flag (Rad)
Bit 13: Angular velocity flag (Rad/s)
Bit 14: Angular acceleration flag (Rad/s^2)
Bit 15: Torque flag (N*m)

SENSOR1
(NAME) UINT8[20] Sensor name
(POSITION) FLOAT32[3] Position (m)
(VEL) FLOAT32[3] Velocity (m/s)
(ACCEL) FLOAT32[3] Acceleration (m/s^2)
(FORCE) FLOAT32[3] Force (N)
(ANG) FLOAT32[3] Angle (rad)
(ANGVEL) FLOAT32[3] Angular velocity (rad/s)
(ANGVEL) FLOAT32[3] Angular accelearation (rad/s^2)
(TORQUE) FLOAT32[3] Torque (N*m)
...
SENSOR_N
(NAME) UINT8[20] Sensor name
(POSITION) FLOAT32[3] Position (m)
(VEL) FLOAT32[3] Velocity (m/s)
(ACCEL) FLOAT32[3] Acceleration (m/s^2)
(FORCE) FLOAT32[3] Force (N)
(ANG) FLOAT32[3] Angle (rad)
(ANGVEL) FLOAT32[3] Angular velocity (rad/s)
(ANGVEL) FLOAT32[3] Angular accelearation (rad/s^2)
(TORQUE) FLOAT32[3] Torque (N*m)

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

Comments