This class is the base class for all tracker using visual input to create the tracking results.
More...
|
| | VisualTracker (const std::string &name, const DeviceType type) |
| | Creates a new visual tracker object.
|
| | ~VisualTracker () override |
| | Destructs a visual tracker object.
|
| | Tracker (const std::string &name, const DeviceType type) |
| | Creates a new tracker object.
|
| | ~Tracker () override |
| | Destructs a tracker object.
|
| void | postFoundTrackerObjects (const ObjectIdSet &objectIds, const Timestamp ×tamp) |
| | Posts a new found tracker objects event.
|
| void | postLostTrackerObjects (const ObjectIdSet &objectIds, const Timestamp ×tamp) |
| | Posts a new lost tracker objects event.
|
| void | unsubscribeTrackerObjectEvent (const SubscriptionId subscriptionId) |
| | Unsubscribes a tracker object event callback function.
|
| | Measurement (const std::string &name, const DeviceType type) |
| | Creates a new measurement object.
|
| | ~Measurement () override |
| | Destructs a measurement object.
|
| void | postNewSample (const SampleRef &newSample) |
| | Posts a new measurement sample.
|
| ObjectId | addUniqueObjectId (const std::string &description) |
| | Creates a unique object id for a new object (e.g., a tracking object like an image, a marker, or a location).
|
| void | unsubscribeSampleEvent (const SubscriptionId subscriptionId) |
| | Unsubscribes a sample event callback function.
|
| virtual SampleRef | interpolateSamples (const SampleRef &lowerSample, const SampleRef &upperSample, const double interpolationFactor, const Timestamp &interpolatedTimestamp) const |
| | Interpolates between two samples.
|
| | Device (const Device &device)=delete |
| | Disabled copy constructor.
|
| | Device (const std::string &name, const DeviceType type) |
| | Creates a new device by is name.
|
| virtual | ~Device () |
| | Destructs a device.
|
| Device & | operator= (const Device &device)=delete |
| | Disabled copy operator.
|
|
| enum | TrackerType : uint32_t {
TRACKER_INVALID = MINOR_INVALID
, TRACKER_ORIENTATION_3DOF = (1u << 0u)
, TRACKER_POSITION_3DOF = (1u << 1u)
, TRACKER_6DOF = TRACKER_ORIENTATION_3DOF | TRACKER_POSITION_3DOF
,
SCENE_TRACKER_6DOF = (1u << 2u) | TRACKER_6DOF
, TRACKER_GRAVITY_3DOF = (1u << 3u)
, TRACKER_GPS = (1u << 4u)
, TRACKER_MAGNETIC = (1u << 5u)
,
TRACKER_VISUAL = (1u << 6u)
, TRACKER_OBJECT = (1u << 7u)
} |
| | Definition of different minor device types. More...
|
| enum | ReferenceSystem { RS_OBJECT_IN_DEVICE
, RS_DEVICE_IN_OBJECT
} |
| | Definition of different tracking reference system. More...
|
| using | Frequency = float |
| | Definition of a tracker frequency in Hz.
|
| using | TrackerSampleRef = SmartObjectRef<TrackerSample, Sample> |
| | Definition of a smart object reference for tracker samples.
|
| using | TrackerObjectCallback = Callback<void, const Tracker*, const bool, const ObjectIdSet&, const Timestamp&> |
| | Definition of a callback function to subscribe for lost and found tracker events.
|
| enum | InterpolationStrategy { IS_INVALID
, IS_TIMESTAMP_NEAREST
, IS_TIMESTAMP_INTERPOLATE
} |
| | Definition of individual interpolation strategies for samples. More...
|
| using | ObjectId = uint32_t |
| | Definition of an object id.
|
| using | ObjectIds = StackHeapVector<ObjectId, 1> |
| | Definition of a vector holding object ids.
|
| using | ObjectIdSet = std::unordered_set<ObjectId> |
| | Definition of an unordered set holding object ids.
|
| using | Metadata = std::unordered_map<std::string, Value> |
| | Definition of an unordered map mapping keys to values.
|
| using | SampleRef = ObjectRef<Sample> |
| | Definition of an object reference for samples.
|
| using | SampleCallback = Callback<void, const Measurement*, const SampleRef&> |
| | Definition of a callback function to subscribe for new measurement sample events.
|
| enum | MajorType : uint32_t { DEVICE_INVALID = 0u
, DEVICE_MEASUREMENT = (1u << 0u)
, DEVICE_SENSOR = (1u << 1u) | DEVICE_MEASUREMENT
, DEVICE_TRACKER = (1u << 2u) | DEVICE_MEASUREMENT
} |
| | Definition of all major device types. More...
|
| enum | MinorType : uint32_t { MINOR_INVALID = 0u
} |
| | Base definition of a minor type. More...
|
| static std::string | translateTrackerType (const TrackerType trackerType) |
| | Translates the tracker type to a readable string.
|
| static TrackerType | translateTrackerType (const std::string &trackerType) |
| | Translates the tracker type from a readable string to a value.
|
| static constexpr Frequency | unknownFrequency () |
| | Definition of a constant as unknown frequency.
|
| static constexpr ObjectId | invalidObjectId () |
| | Returns an invalid object id.
|
| static std::string | translateMajorType (const MajorType majorType) |
| | Translates the major devices type to a readable string.
|
| static MajorType | translateMajorType (const std::string &majorType) |
| | Translates the major devices type from a readable string to a value.
|
| using | TrackerObjectSubscriptionMap = std::unordered_map<SubscriptionId, TrackerObjectCallback> |
| | Definition of a map mapping subscription ids to tracker object event callback functions.
|
| using | SampleMap = std::map<Timestamp, SampleRef> |
| | Definition of a map holding the most recent samples.
|
| using | ObjectDescriptionToIdMap = std::unordered_map<std::string, ObjectId> |
| | Definition of an unordered map mapping descriptions to unique object ids.
|
| using | ObjectIdToDescriptionMap = std::unordered_map<ObjectId, std::string> |
| | Definition of an unordered map mapping unique object ids to descriptions.
|
| using | SampleSubscriptionMap = std::unordered_map<SubscriptionId, SampleCallback> |
| | Definition of a map mapping subscription ids to event sample callback functions.
|
| using | SubscriptionId = unsigned int |
| | Definition of a subscription id for event callbacks.
|
| static ObjectIdSet | determineFoundObjects (const ObjectIdSet &previousObjects, const ObjectIdSet ¤tObjects) |
| | Determines the ids which were not tracked in the previous iteration but tracked in the current iteration.
|
| static ObjectIdSet | determineLostObjects (const ObjectIdSet &previousObjects, const ObjectIdSet ¤tObjects) |
| | Determines the ids which were tracked in the previous iteration but not tracked in the current iteration.
|
| static constexpr SubscriptionId | invalidSubscriptionId () |
| | Returns an invalid subscription id.
|
This class is the base class for all tracker using visual input to create the tracking results.