OSVR-Core
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
osvr::vbtracker::TargetSetupData Struct Reference

Data for a full target (all the beacons), unswizzled into a "struct of vectors". More...

#include <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)
 Resizes all arrays to the numBeacons. More...
 
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 ()
 This is both an entirely unlikely out of bounds value and a specific sentinel value. More...
 

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.

Member Function Documentation

§ getBogusLocation()

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

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

§ isBeaconActive()

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

Is the beacon active?

no such beacon pattern

§ markBeaconInactive()

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.

§ setBeaconCount()

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)


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