BiiGOptitrackControl  ..
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Classes | Functions
Optitrack Namespace Reference

Classes

class  OptitrackTool
 
class  OptitrackTracker
 

Functions

void sleep (unsigned milliseconds)
 
template<typename T >
std::string to_string (const T &n)
 
int CameraCorrespondeceBetweenAPIandTrackingTools (int numberOfCameras, int CameraNumber)
 Correspondance between API and TrackingTools software camera IDs. More...
 
int GetMarkerPosition2D3D (std::ostream *stream, int numberOfCameras, int Camera1, int Camera2)
 Getting 3D and 2D position of single marker using a pair of cameras. More...
 

Function Documentation

int Optitrack::CameraCorrespondeceBetweenAPIandTrackingTools ( int  numberOfCameras,
int  CameraNumber 
)

Correspondance between API and TrackingTools software camera IDs.

This function provides the TrackingTools software camera ID corresponding to a given API camera ID.

Parameters
numberOfCamerastotal number of cameras composing the system.
CameraNumberAPI camera ID wanted to be converted.
Returns
TrackingTools software camera ID [int].
int Optitrack::GetMarkerPosition2D3D ( std::ostream *  stream,
int  numberOfCameras,
int  Camera1,
int  Camera2 
)

Getting 3D and 2D position of single marker using a pair of cameras.

This function acquires 1000 samples of the 3D position of the markers using a pair of cameras. Also, it acquires 1000 samples of the 2D position of the markers in the plane of each camera within the pair. All data (cameras involved, 2D positions, and 3D positions) is saved into a ".csv" file.

Parameters
numberOfCamerastotal number of cameras composing the system.
Camera1API ID of the first camera belonging to the pair.
Camera2API ID of the second camera belonging to the pair.
Returns
Result of data updating [int]: 0 if success, 11 if TrackingTools license is invalid, and 14 if there is no available frame.
void Optitrack::sleep ( unsigned  milliseconds)
template<typename T >
std::string Optitrack::to_string ( const T &  n)