Ocean
IOSSensor.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) Meta Platforms, Inc. and affiliates.
3  *
4  * This source code is licensed under the MIT license found in the
5  * LICENSE file in the root directory of this source tree.
6  */
7 
8 #ifndef META_OCEAN_DEVICES_IOS_IOS_SENSOR_H
9 #define META_OCEAN_DEVICES_IOS_IOS_SENSOR_H
10 
11 #include "ocean/devices/ios/IOS.h"
13 
14 #include "ocean/devices/Sensor.h"
15 
16 namespace Ocean
17 {
18 
19 namespace Devices
20 {
21 
22 namespace IOS
23 {
24 
25 /**
26  * This class implements a sensor for the IOS library.
27  * The coordinate system of each IOS sensor is defined so that the origin of the coordinate system is located in the center of the device.<br>
28  * The x-axis is horizontal and pointing to the right of the device (if the device is held in default orientation).<br>
29  * The y-axis is vertical and pointing to the top of the device.<br>
30  * The z-axis is perpendicular to the screen plane and pointing towards the user (a right handed coordinate system).
31  * @ingroup deviceios
32  */
33 class OCEAN_DEVICES_IOS_EXPORT IOSSensor :
34  virtual public IOSDevice,
35  virtual public Sensor
36 {
37  protected:
38 
39  /**
40  * Creates a new sensor by its name and type.
41  * @param name The name of the sensor
42  * @param type Major and minor device type of the sensor
43  */
44  IOSSensor(const std::string& name, const DeviceType type);
45 
46  protected:
47 
48  /// The object id of this sensor.
49  ObjectId sensorObjectId_ = invalidObjectId();
50 };
51 
52 }
53 
54 }
55 
56 }
57 
58 #endif // META_OCEAN_DEVICES_IOS_IOS_SENSOR_H
Definition of a class holding the major and minor device type.
Definition: devices/Device.h:62
This class implements a device for the IOS library.
Definition: IOSDevice.h:29
This class implements a sensor for the IOS library.
Definition: IOSSensor.h:36
IOSSensor(const std::string &name, const DeviceType type)
Creates a new sensor by its name and type.
unsigned int ObjectId
Definition of an object id.
Definition: Measurement.h:46
This class implements the base class for all sensors.
Definition: Sensor.h:36
const ObjectId invalidObjectId
Definition of an invalid object id.
Definition: rendering/Rendering.h:65
The namespace covering the entire Ocean framework.
Definition: Accessor.h:15