8#ifndef META_OCEAN_DEVICES_ARKIT_AK_DEVICE_H
9#define META_OCEAN_DEVICES_ARKIT_AK_DEVICE_H
20#include <ARKit/ARKit.h>
35class AKGeoAnchorsTracker6DOF;
38class AKSceneTracker6DOF;
41class AKWorldTracker6DOF;
80 using DeviceMap = std::unordered_map<AKDevice*, unsigned int>;
207 API_AVAILABLE(ios(14.0))
208 static std::
string translateGeoTrackingState(const ARGeoTrackingState& state);
215 API_AVAILABLE(ios(14.0))
216 static std::
string translateGeoTrackingStateReason(const ARGeoTrackingStateReason& stateReason);
223 API_AVAILABLE(ios(14.0))
224 static std::
string translateGeoTrackingAccuracy(const ARGeoTrackingAccuracy& accuracy);
bool start(AKDevice *tracker, const Media::FrameMediumRef &frameMedium)
Starts the session for a given tracker.
ARSessionManager()
Creates a new manager.
AKTracker6DOFDelegate * akTracker6DOFDelegate_
The delegate of the ARKit Tracker.
Definition AKDevice.h:141
bool pause(AKDevice *tracker)
Pauses the session for a given tracker.
bool stop(AKDevice *tracker)
Stops the session for a given tracker.
bool unregisterGeoAnchor(const Measurement::ObjectId &objectId)
Unregisters a geo anchor.
bool registerGeoAnchor(const Measurement::ObjectId &objectId, const double latitude, const double longitude, const double altitude)
Registers a new geo anchor.
AKDevice(const TrackerCapabilities trackerCapabilities, const std::string &name, const DeviceType type)
Translates the value of an ARGeoTrackingState to a readable string.
bool setParameter(const std::string ¶meter, const Value &value) override
Sets a parameter for this tracker.
virtual void onRemovedAnchors(const ARAnchors &anchors)
Event function for removed anchors.
TrackerCapabilities trackerCapabilities() const
Returns the capabilities of the tracker necessary for this device.
Definition AKDevice.h:245
std::unordered_map< AKDevice *, unsigned int > DeviceMap
Definition of an unordered map mapping devices to usage counters.
Definition AKDevice.h:80
TrackerCapabilities trackerCapabilities_
The capabilities of the tracker for this device.
Definition AKDevice.h:239
virtual void onAddedAnchors(const ARAnchors &anchors)
Event function for added anchors.
std::vector< ARAnchor * > ARAnchors
Definition of a vector holding ARAnchors.
Definition AKDevice.h:75
ParameterMap parameterMap_
The map with optional parameters.
Definition AKDevice.h:242
static std::string translateTrackingState(const ARTrackingState &state)
Translates the value of an ARTrackingState to a readable string.
bool parameter(const std::string ¶meter, Value &value) override
Returns a parameter of this device.
std::unordered_map< std::string, Value > ParameterMap
Definition of an unordered map mapping names to values.
Definition AKDevice.h:147
virtual void onUpdateAnchors(const ARAnchors &anchors)
Event function for updated anchors.
TrackerCapabilities
Definition of individual capabilities.
Definition AKDevice.h:55
@ TC_SLAM
The tracker provides basic SLAM.
Definition AKDevice.h:59
@ TC_INVALID
An invalid capability.
Definition AKDevice.h:57
@ TC_GEO_ANCHORS
The tracker provides Geo Anchors.
Definition AKDevice.h:61
@ TC_DEPTH
The tracker provides depth information.
Definition AKDevice.h:67
@ TC_PLANE_DETECTION
The tracker provide plane detection.
Definition AKDevice.h:63
@ TC_FACE
The tracker is able to track faces.
Definition AKDevice.h:69
@ TC_MESH_RECONSTRUCTION
The tracker provide mesh reconstruction.
Definition AKDevice.h:65
const std::string & library() const override
Returns the name of the owner library.
Definition of a class holding the major and minor device type.
Definition devices/Device.h:62
DeviceType type() const
Returns the major and minor type of this device.
Definition devices/Device.h:345
Device(const Device &device)=delete
Disabled copy constructor.
const std::string & name() const
Returns the name of this device.
Definition devices/Device.h:340
uint32_t ObjectId
Definition of an object id.
Definition Measurement.h:47
This class implements a type independent value.
Definition Value.h:23
The namespace covering the entire Ocean framework.
Definition Accessor.h:15