rofunc.devices.optitrack.record#

1.  Module Contents#

1.1.  Functions#

data_process

Args:

data: string received from optitrack win server

Returns:

position, orientation: position and orientation of the rigidbody

opti_run

Args:

root_dir: root dictionary exp_name: dictionary saving the npy file, named according to time ip: ip address port: port

Returns:

None

record

Args:

root_dir: root directory exp_name: npy file location ip: ip address of server computer port: port number of optitrack server

1.2.  API#

rofunc.devices.optitrack.record.data_process(data: str)[source]#
Args:

data: string received from optitrack win server

Returns:

position, orientation: position and orientation of the rigidbody

rofunc.devices.optitrack.record.opti_run(root_dir: str, exp_name: str, ip: str, port: int) None[source]#
Args:

root_dir: root dictionary exp_name: dictionary saving the npy file, named according to time ip: ip address port: port

Returns:

None

rofunc.devices.optitrack.record.record(root_dir: str, exp_name: str, ip: str, port: int) None[source]#
Args:

root_dir: root directory exp_name: npy file location ip: ip address of server computer port: port number of optitrack server

Returns: None