OSVR Framework (Internal Development Docs)  0.6-1962-g59773924
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
osvr::vbtracker::TargetSetupData Struct Reference

#include </home/jenkins/root/workspace/OSVR-Core-Docs/plugins/unifiedvideoinertialtracker/BeaconSetupData.h>

Public Types

using size_type = std::vector< double >::size_type
 

Public Member Functions

size_type numBeacons () const
 
void setBeaconCount (std::size_t numBeacons, double baseMeasurementVariance, double initialAutocalibrationError)
 
void markBeaconFixed (ZeroBasedBeaconId beacon)
 Mark a beacon, by zero-based ID, as being fixed.
 
void markBeaconFixed (OneBasedBeaconId beacon)
 Mark a beacon, by one-based ID, as being fixed.
 
bool isBeaconActive (OneBasedBeaconId beacon)
 Is the beacon active? More...
 
void markBeaconInactive (ZeroBasedBeaconId beacon)
 
void markBeaconInactive (OneBasedBeaconId beacon)
 
TargetDataSummary cleanAndValidate (bool silent=false)
 

Static Public Member Functions

static LocationPoint getBogusLocation ()
 

Public Attributes

std::vector< std::string > patterns
 
Point3Vector locations
 
Vec3Vector emissionDirections
 
std::vector< double > baseMeasurementVariances
 
std::vector< double > initialAutocalibrationErrors
 
std::vector< bool > isFixed
 

Detailed Description

Data for a full target (all the beacons), unswizzled into a "struct of vectors". All should be the same size, since they are parallel.

Definition at line 53 of file BeaconSetupData.h.

Member Function Documentation

static LocationPoint osvr::vbtracker::TargetSetupData::getBogusLocation ( )
inlinestatic

This is both an entirely unlikely out of bounds value and a specific sentinel value.

Definition at line 67 of file BeaconSetupData.h.

void osvr::vbtracker::TargetSetupData::setBeaconCount ( std::size_t  numBeacons,
double  baseMeasurementVariance,
double  initialAutocalibrationError 
)
inline

Resizes all arrays to the numBeacons. Only populates baseMeasurementVariances, initialAutocalibrationErrors, and isFixed with semi-reasonable default values (no beacons fixed)

Definition at line 74 of file BeaconSetupData.h.

bool osvr::vbtracker::TargetSetupData::isBeaconActive ( OneBasedBeaconId  beacon)

Is the beacon active?

no such beacon pattern

Definition at line 271 of file BeaconSetupData.cpp.

void osvr::vbtracker::TargetSetupData::markBeaconInactive ( ZeroBasedBeaconId  beacon)

no such beacon pattern well, so nothing to do...

Clear the pattern string to mark it as inactive.

Definition at line 281 of file BeaconSetupData.cpp.


The documentation for this struct was generated from the following files: