8#ifndef META_OCEAN_DEVICES_ARKIT_AK_SCENE_TRACKER_6_DOF_H
9#define META_OCEAN_DEVICES_ARKIT_AK_SCENE_TRACKER_6_DOF_H
56 inline size_t operator()(
const ARMeshAnchor* anchor)
const;
206 return std::string(
"ARKit 6DOF Scene Tracker");
AKDevice(const TrackerCapabilities trackerCapabilities, const std::string &name, const DeviceType type)
Translates the value of an ARGeoTrackingState to a readable string.
std::vector< ARAnchor * > ARAnchors
Definition of a vector holding ARAnchors.
Definition AKDevice.h:75
Vectors3 & vectors
Definition AKSceneTracker6DOF.h:158
const HomogenousMatrix4 const Timestamp ARFrame * arFrame
Definition AKSceneTracker6DOF.h:104
std::unordered_set< ARMeshAnchor *, ARMeshAnchorHash > ARMeshAnchorSet
Definition of an unordered set holding ARMeshAnchor objects.
Definition AKSceneTracker6DOF.h:62
unsigned int meshIdCounter_
The counter for unique mesh ids.
Definition AKSceneTracker6DOF.h:193
ARMeshAnchorSet updatedMeshAnchors_
The set holding all updated ARMeshAnchor objects.
Definition AKSceneTracker6DOF.h:196
bool start() override
Starts the device.
void onAddedAnchors(const ARAnchors &anchors) override
Event function for added anchors.
bool isStarted_
True, if the tracker has been started.
Definition AKSceneTracker6DOF.h:184
AKSceneTracker6DOF()
Creates a new 6DOF scene tracker.
Indices32 & indices
Definition AKSceneTracker6DOF.h:167
std::unordered_map< std::string, Index32 > IdentifierMap
Definition of an unordered map mapping anchor identifier strings to unique ids.
Definition AKSceneTracker6DOF.h:44
bool pause() override
Pauses the device.
ObjectId worldObjectId_
The unique id for the world object.
Definition AKSceneTracker6DOF.h:181
SceneElementMeshes::Mesh::FaceTypes & faceTypes
Definition AKSceneTracker6DOF.h:176
bool stop() override
Stops the device.
bool worldIsTracked_
True, if the world object is currently tracked.
Definition AKSceneTracker6DOF.h:187
static DeviceType deviceTypeAKSceneTracker6DOF()
Returns the device type of this tracker.
Definition AKSceneTracker6DOF.h:209
void onUpdateAnchors(const ARAnchors &anchors) override
Event function for updated anchors.
API_AVAILABLE(ios(11.3)) void onNewSample(const HomogenousMatrix4 &world_T_camera
Event function for a new 6DOF pose.
const HomogenousMatrix4 const Timestamp & timestamp
Definition AKSceneTracker6DOF.h:104
void onNewSample(const HomogenousMatrix4 &world_T_camera, SharedSceneElements &&sceneElements, const Timestamp ×tamp, Metadata &&metadata)
Event function for a new 6DOF pose.
IdentifierMap identifierMap_
The map mapping unique plane identifier strings to mesh ids.
Definition AKSceneTracker6DOF.h:190
void setInput(Media::FrameMediumRefs &&frameMediums) override
Sets the multi-view visual input of this tracker.
const HomogenousMatrix4 & world_T_rotatedWorld
Definition AKSceneTracker6DOF.h:104
static std::string deviceNameAKSceneTracker6DOF()
Returns the name of this tracker.
Definition AKSceneTracker6DOF.h:204
friend class AKFactory
Definition AKSceneTracker6DOF.h:37
bool isObjectTracked(const ObjectId &objectId) const override
Returns whether a specific object is currently actively tracked by this tracker.
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
This class implements a scene element holding 3D meshes.
Definition SceneTracker6DOF.h:346
SceneTracker6DOF(const std::string &name)
Creates a new 6-DOF scene tracker object.
std::vector< SharedSceneElement > SharedSceneElements
Definition of a vector holding scene elements.
Definition SceneTracker6DOF.h:915
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.
static std::string toUTF8(NSString *object)
Converts a given NSString object to a string with UTF8 encoding.
This class implements a timestamp.
Definition Timestamp.h:64
std::vector< Index32 > Indices32
Definition of a vector holding 32 bit index values.
Definition Base.h:96
HomogenousMatrixT4< Scalar > HomogenousMatrix4
Definition of the HomogenousMatrix4 object, depending on the OCEAN_MATH_USE_SINGLE_PRECISION flag eit...
Definition HomogenousMatrix4.h:44
std::vector< Vector3 > Vectors3
Definition of a vector holding Vector3 objects.
Definition Vector3.h:65
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
Helper class implementing a hash function for ARMeshAnchor.
Definition AKSceneTracker6DOF.h:50
size_t operator()(const ARMeshAnchor *anchor) const
Hash function returning a hash value for an ARMeshAnchor object.
Definition AKSceneTracker6DOF.h:199