optitrack component
- Ports
- Services
- get_export (attribute)
- set_export (attribute)
- get_transform (attribute)
- set_transform (attribute)
- set_gps_mode (attribute)
- set_max_fps (attribute)
- get_local_port (attribute)
- set_local_port (attribute)
- get_noise (attribute)
- set_noise (attribute)
- get_bw (attribute)
- ping (activity)
- refresh (function)
- body_list (function)
- connect (activity)
- disconnect (activity)
- get_logfile (attribute)
- set_logfile (attribute)
- unset_logfile (function)
- Tasks
Ports
bodies (multiple out)
Data structure
|
Services
get_export (attribute)
Outputs
|
set_export (attribute)
Inputs
|
get_transform (attribute)
Outputs
|
set_transform (attribute)
Inputs
|
Transform coordinates according to the rotation and translation
set_gps_mode (attribute)
Inputs
|
set_max_fps (attribute)
Inputs
|
get_local_port (attribute)
Outputs
|
Get the UDP port on which the socket receiving data is bound.
set_local_port (attribute)
Inputs
|
Change the default port on which the socket receiving data is bound.
When multiple instances of the component must run on the same host, each instance must use a different local UDP port. This service allows to change the default 1510 port to any value. It must be invoked before connect (activity) so that the selected value is taken into account.
The UDP socket is bound locally to a specific port in order to overcome a limitation of the Optitrack sotftware that cannot be told to stop sending data to a client. Not locally binding the socket would lead to an accumulation of streams to the same host after mutliple (re)connections to Optitrack, and a waste of bandwidth. |
set_noise (attribute)
Inputs
|
get_bw (attribute)
Outputs
|
ping (activity)
Outputs
|
Throws
|
Context
|
Ping the server
body_list (function)
Outputs
|
Throws
|
Return the list of available bodies
connect (activity)
Inputs
|
Throws
|
Context
|
Export live marker data
disconnect (activity)
Throws
|
Context
|
Stop exporting live marker data
Tasks
publish
Context
|
Throws
|