8#ifndef META_OCEAN_DEVICES_PATTERN_TRACKER_6DOF_H
9#define META_OCEAN_DEVICES_PATTERN_TRACKER_6DOF_H
155 return std::string(
"Pattern 6DOF Tracker");
Definition of a class holding the major and minor device type.
Definition devices/Device.h:62
This class implements a helper class to simplify the mapping between internal object ids (of the actu...
Definition Measurement.h:255
ObjectId objectId(const std::string &description) const
Returns the object id for an object description.
std::unordered_set< ObjectId > ObjectIdSet
Definition of an unordered set holding object ids.
Definition Measurement.h:57
uint32_t ObjectId
Definition of an object id.
Definition Measurement.h:47
ObjectTracker(const std::string &name, const DeviceType type)
Creates a new object tracker object.
PatternDevice(const std::string &name, const DeviceType type)
Creates a new device by is name.
bool stop() override
Stops the device.
void ensureTrackerExists()
Ensures that the tracker exists, if the tracker does not yet exist, it will be created.
bool noFrameToFrameTracking_
True, to skip frame-to-frame tracking.
Definition devices/pattern/PatternTracker6DOF.h:147
OrientationTracker3DOFRef orientationTracker3DOF_
The 3DOF orientation tracker which is used to support the tracker.
Definition devices/pattern/PatternTracker6DOF.h:141
bool start() override
Starts the device.
Tracking::VisualTrackerRef visualTracker_
Holds the 6DOF tracker object.
Definition devices/pattern/PatternTracker6DOF.h:135
bool isStarted() const override
Returns whether this device is active.
static DeviceType deviceTypePatternTracker6DOF()
Returns the type of this tracker.
Definition devices/pattern/PatternTracker6DOF.h:158
ObjectIdSet visiblePatterns_
Set holding all visible marker from the most recent frame.
Definition devices/pattern/PatternTracker6DOF.h:138
void threadRun() override
Thread function.
static std::string deviceNamePatternTracker6DOF()
Returns the name of this tracker.
Definition devices/pattern/PatternTracker6DOF.h:153
bool isObjectTracked(const ObjectId &objectId) const override
Returns whether a specific object is currently actively tracked by this tracker.
ObjectMapper< unsigned int > objectIdMapper_
The mapper between internal and external object ids.
Definition devices/pattern/PatternTracker6DOF.h:144
~PatternTracker6DOF() override
Destructs an Pattern feature based 6DOF tracker object.
bool noDownsamplingOnAndroid_
True, to avoid downsampling the input image on Android devices.
Definition devices/pattern/PatternTracker6DOF.h:150
Timestamp frameTimestamp_
Frame timestamp.
Definition devices/pattern/PatternTracker6DOF.h:132
friend class PatternFactory
Definition devices/pattern/PatternTracker6DOF.h:45
bool setParameter(const std::string ¶meter, const Value &value) override
Sets a parameter for this tracker.
bool parameter(const std::string ¶meter, Value &value) override
Returns a parameter of this device.
ObjectId registerObject(const std::string &description, const Vector3 &dimension) override
Adds a new tracking pattern.
PatternTracker6DOF()
Creates a new Pattern feature based 6DOF tracker object.
Tracker6DOF(const std::string &name)
Creates a new 6DOF tracker object.
static DeviceType deviceTypeTracker6DOF()
Definition of this device type.
Definition Tracker6DOF.h:106
@ TRACKER_VISUAL
Tracker using a visual input for their measurements.
Definition devices/Tracker.h:64
@ TRACKER_OBJECT
Tracker allowing to register tracking objects at runtime.
Definition devices/Tracker.h:66
VisualTracker(const std::string &name, const DeviceType type)
Creates a new visual tracker object.
Thread(const std::string &name=std::string())
Creates a new thread object.
This class implements a timestamp.
Definition Timestamp.h:64
This class implements a type independent value.
Definition Value.h:23
SmartObjectRef< OrientationTracker3DOF, Device > OrientationTracker3DOFRef
Definition of a 3DOF orientation tracker reference object.
Definition OrientationTracker3DOF.h:32
VectorT3< Scalar > Vector3
Definition of a 3D vector.
Definition Vector3.h:29
ObjectRef< VisualTracker > VisualTrackerRef
Definition of an object reference covering a visual tracker object.
Definition tracking/VisualTracker.h:38
Namespace of the Devices Pattern library.
Definition devices/pattern/jni/JNI.h:22
Namespace of the Devices library.
Definition AccelerationSensor3DOF.h:24
The namespace covering the entire Ocean framework.
Definition Accessor.h:15