8#ifndef META_OCEAN_DEVICES_ARKIT_AK_GEO_ANCHORS_TRACKER_6_DOF_H
9#define META_OCEAN_DEVICES_ARKIT_AK_GEO_ANCHORS_TRACKER_6_DOF_H
193 return std::string(
"ARKit 6DOF Geo Anchors Tracker");
AKDevice(const TrackerCapabilities trackerCapabilities, const std::string &name, const DeviceType type)
Translates the value of an ARGeoTrackingState to a readable string.
ObjectId objectId_
The object id of the location.
Definition AKGeoAnchorsTracker6DOF.h:76
double altitude_
The location's altitude, in meters, with range (-infinity, infinity), NumericD::minVaue() if unknown.
Definition AKGeoAnchorsTracker6DOF.h:73
double longitude_
The location's longitude, in degree, with range [-180, 180].
Definition AKGeoAnchorsTracker6DOF.h:70
double latitude_
The location's latitude, in degree, with range [-90, 90].
Definition AKGeoAnchorsTracker6DOF.h:67
Location(const ObjectId objectId, const double latitude, const double longitude, const double altitude)
Creates a new location object.
Definition AKGeoAnchorsTracker6DOF.h:182
bool isStarted_
True, if the tracker has been started.
Definition AKGeoAnchorsTracker6DOF.h:176
ObjectIdSet trackedObjectIds_
The ids of all objects (including the world object) which are currently tracked.
Definition AKGeoAnchorsTracker6DOF.h:173
const HomogenousMatrix4 & world_T_rotatedWorld
Definition AKGeoAnchorsTracker6DOF.h:136
std::unordered_map< ObjectId, HomogenousMatrix4 > TransformationMap
Definition of an unordered map mapping object ids to transformations.
Definition AKGeoAnchorsTracker6DOF.h:44
static DeviceType deviceTypeAKGeoAnchorsTracker6DOF()
Returns the device type of this tracker.
Definition AKGeoAnchorsTracker6DOF.h:196
AKGeoAnchorsTracker6DOF()
Creates a new 6DOF Geo Anchor tracker.
bool isObjectTracked(const ObjectId &objectId) const override
Returns whether a specific object is currently actively tracked by this tracker.
const HomogenousMatrix4 const Timestamp & timestamp
Definition AKGeoAnchorsTracker6DOF.h:136
bool unregisterObject(const ObjectId objectId) override
Unregisters (removes) a previously registered object.
static std::string deviceNameAKGeoAnchorsTracker6DOF()
Returns the name of this tracker.
Definition AKGeoAnchorsTracker6DOF.h:191
bool start() override
Starts the device.
void onNewSample(const TransformationMap &anchors_T_camera, const Timestamp ×tamp, Metadata &&metadata)
Event function for new 6DOF transformations.
void setInput(Media::FrameMediumRefs &&frameMediums) override
Sets the multi-view visual input of this tracker.
API_AVAILABLE(ios(14.0)) void onNewSample(const HomogenousMatrix4 &world_T_camera
Event function for a new 6DOF pose.
std::vector< Location > Locations
Definition of a vector holding locations.
Definition AKGeoAnchorsTracker6DOF.h:82
const HomogenousMatrix4 const Timestamp ARFrame * arFrame
Definition AKGeoAnchorsTracker6DOF.h:136
Locations intermediateLocations_
Intermediate locations which have been registered before the device have been started.
Definition AKGeoAnchorsTracker6DOF.h:179
ObjectId registerObject(const std::string &description, const Vector3 &dimension) override
Registers (adds) a new object to be tracked.
bool stop() override
Stops the device.
bool pause() override
Pauses the device.
friend class AKFactory
Definition AKGeoAnchorsTracker6DOF.h:37
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
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
std::unordered_map< std::string, Value > Metadata
Definition of an unordered map mapping keys to values.
Definition Measurement.h:62
ObjectTracker(const std::string &name, const DeviceType type)
Creates a new object 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
VisualTracker(const std::string &name, const DeviceType type)
Creates a new visual tracker object.
static constexpr double minValue()
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
VectorT3< Scalar > Vector3
Definition of a 3D vector.
Definition Vector3.h:29
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