8#ifndef META_OCEAN_DEVICES_ARKIT_AK_PLANE_TRACKER_6_DOF_H
9#define META_OCEAN_DEVICES_ARKIT_AK_PLANE_TRACKER_6_DOF_H
138 return std::string(
"ARKit 6DOF Plane Tracker");
AKDevice(const TrackerCapabilities trackerCapabilities, const std::string &name, const DeviceType type)
Translates the value of an ARGeoTrackingState to a readable string.
unsigned int planeIdCounter_
The counter for unique plane ids.
Definition AKPlaneTracker6DOF.h:133
bool isObjectTracked(const ObjectId &objectId) const override
Returns whether a specific object is currently actively tracked by this tracker.
bool stop() override
Stops the device.
static std::string deviceNameAKPlaneTracker6DOF()
Returns the name of this tracker.
Definition AKPlaneTracker6DOF.h:136
void onNewSample(const HomogenousMatrix4 &world_T_camera, SharedSceneElement &&sceneElement, const Timestamp ×tamp, Metadata &&metadata)
Event function for a new 6DOF pose.
const Timestamp & timestamp
Definition AKPlaneTracker6DOF.h:83
bool pause() override
Pauses the device.
const Timestamp ARFrame * arFrame
Definition AKPlaneTracker6DOF.h:83
bool isStarted_
True, if the tracker has been started.
Definition AKPlaneTracker6DOF.h:124
std::unordered_map< std::string, Index32 > IdentifierMap
Definition of an unordered map mapping anchor identifier strings to unique ids.
Definition AKPlaneTracker6DOF.h:42
ObjectId worldObjectId_
The unique id for the world object.
Definition AKPlaneTracker6DOF.h:121
API_AVAILABLE(ios(11.3)) void onNewSample(const HomogenousMatrix4 &world_T_camera
Event function for a new 6DOF pose.
bool worldIsTracked_
True, if the world object is currently tracked.
Definition AKPlaneTracker6DOF.h:127
bool start() override
Starts the device.
AKPlaneTracker6DOF()
Creates a new 6DOF plane tracker.
static DeviceType deviceTypeAKPlaneTracker6DOF()
Returns the device type of this tracker.
Definition AKPlaneTracker6DOF.h:141
void setInput(Media::FrameMediumRefs &&frameMediums) override
Sets the multi-view visual input of this tracker.
IdentifierMap identifierMap_
The map mapping unique plane identifier strings to plane ids.
Definition AKPlaneTracker6DOF.h:130
friend class AKFactory
Definition AKPlaneTracker6DOF.h:35
Definition of a class holding the major and minor device type.
Definition devices/Device.h:62
ObjectId objectId(const std::string &description) const
Returns the object id for an object description.
static constexpr ObjectId invalidObjectId()
Returns an invalid object id.
Definition Measurement.h:631
uint32_t ObjectId
Definition of an object id.
Definition Measurement.h:47
std::unordered_map< std::string, Value > Metadata
Definition of an unordered map mapping keys to values.
Definition Measurement.h:62
SceneTracker6DOF(const std::string &name)
Creates a new 6-DOF scene tracker object.
std::shared_ptr< SceneElement > SharedSceneElement
Definition of a shared pointer holding a scene element.
Definition SceneTracker6DOF.h:910
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
@ SCENE_TRACKER_6DOF
6DOF scene tracker.
Definition devices/Tracker.h:56
VisualTracker(const std::string &name, const DeviceType type)
Creates a new visual tracker object.
This class implements a timestamp.
Definition Timestamp.h:64
HomogenousMatrixT4< Scalar > HomogenousMatrix4
Definition of the HomogenousMatrix4 object, depending on the OCEAN_MATH_USE_SINGLE_PRECISION flag eit...
Definition HomogenousMatrix4.h:44
Namespace of the Devices ARKit library.
Definition AKDepthTracker6DOF.h:24
Namespace of the Devices library.
Definition AccelerationSensor3DOF.h:24
The namespace covering the entire Ocean framework.
Definition Accessor.h:15