25 #ifndef INCLUDED_ForEachTracked_h_GUID_8DA1845D_2D7F_4C8C_9424_C18D06339380 26 #define INCLUDED_ForEachTracked_h_GUID_8DA1845D_2D7F_4C8C_9424_C18D06339380 43 auto n =
static_cast<BodyId::wrapped_type
>(sys.getNumBodies());
44 for (BodyId::wrapped_type i = 0; i < n; ++i) {
52 auto n =
static_cast<BodyId::wrapped_type
>(sys.getNumBodies());
53 for (BodyId::wrapped_type i = 0; i < n; ++i) {
62 body.forEachTarget(std::forward<F>(f));
70 body.forEachTarget(std::forward<F>(f));
109 #endif // INCLUDED_ForEachTracked_h_GUID_8DA1845D_2D7F_4C8C_9424_C18D06339380 void forEachBody(TrackingSystem &sys, F &&f)
For each body in a tracking system.
Definition: ForEachTracked.h:42
The main namespace for all C++ elements of the framework, internal and external.
Definition: namespace_osvr.dox:3
TrackedBodyIMU & getIMU()
Get the IMU - only valid if hasIMU is true.
Definition: TrackedBody.h:113
void forEachIMU(TrackingSystem &sys, F &&f)
For each IMU in a tracking system.
Definition: ForEachTracked.h:90
Definition: TrackingSystem.h:54
bool hasIMU() const
Does this tracked body have an IMU?
Definition: TrackedBody.h:110
This is the class representing a tracked rigid body in the system.
Definition: TrackedBody.h:56
void forEachTarget(TrackedBody &body, F &&f)
For each target belonging to a tracked body.
Definition: ForEachTracked.h:61