Up |
VRPN
VRPN Virtual Reality Peripheral Network interface for Scol.
API
- ObjVRPN : a VRPN device Scol object
- _CRvrpnDevice : This function create a VRPN object.
fun [Chn S S] ObjVRPN
S : host name or ip address
S : device name - _DSvrpnDevice : Destroy a VRPN object
fun [ObjVRPN] I - _CBvrpnAnalogData : This function sets the callback called when a VRPN Analog data is received.
fun [ObjVRPN fun [ObjVRPN u0 [F r1]] u1 u0] ObjVRPN
fun [ObjVRPN u0 [F r1]] u1 : The callback to call when the event occurs.
[F r1] : the list of the analogic data - _CBvrpnButtonData : This function sets the callback called when a VRPN Button data is received
fun [ObjVRPN fun [ObjVRPN u0 [I r1]] u1 u0] ObjVRPN
fun [ObjVRPN u0 [I r1]] u1 : The callback to call when the event occurs.
[I r1] : the list of the buttons state - _CBvrpnButtonState : This function sets the callback called when a VRPN Button data is received
fun [ObjVRPN fun [ObjVRPN u0 I I] u1 u0] ObjVRPN
fun [ObjVRPN u0 I I] u1 : The callback to call when the event occurs.
I : the button id
I : the new button state - _CBvrpnTrackerData : This function sets the callback called when a VRPN traker position data is received
fun [ObjVRPN fun [ObjVRPN u0 I [F F F] [F F F F]] u1 u0] ObjVRPN
fun [ObjVRPN u0 I [F F F] [F F F F]] u1 : The callback to call when the event occurs.
I : the sensor id
[F F F] : the tracker position
[F F F F] : the tracker orientation - _CBvrpnTrackerVelocityData : This function sets the callback called when a VRPN traker velocity data is received
fun [ObjVRPN fun [ObjVRPN u0 I [F F F] [F F F F]] u1 u0] ObjVRPN
fun [ObjVRPN u0 I [F F F] [F F F F]] u1 : The callback to call when the event occurs.
I : the sensor id
[F F F] : the tracker velocity
[F F F F] : the tracker angular velocity - _CBvrpnTrackerAccelData : This function sets the callback called when a VRPN traker acceleration data is received
fun [ObjVRPN fun [ObjVRPN u0 I [F F F] [F F F F]] u1 u0] ObjVRPN
fun [ObjVRPN u0 I [F F F] [F F F F]] u1 : The callback to call when the event occurs.
I : the sensor id
[F F F] : the tracker acceleration
[F F F F] : the tracker angular acceleration - _CBvrpnTextData : This function sets the callback called when a VRPN text data is received
fun [ObjVRPN fun [ObjVRPN u0 S] u1 u0] ObjVRPN
fun [ObjVRPN u0 S] u1 : The callback to call when the event occurs.
S : the text message
Example