OSDN Git Service

Adding support for a 6 DOF pose sensor
authorAshutosh Joshi <ashutoshj@google.com>
Fri, 15 Jan 2016 06:28:24 +0000 (22:28 -0800)
committerAshutosh Joshi <ashutoshj@google.com>
Mon, 25 Jan 2016 22:22:29 +0000 (14:22 -0800)
Adding a six degree of freedom sensor returning device pose.

This pose is comprised of two parts a rotation from an orientaion
pointing due north and zero pitch and roll && a translation from
an initial point of reference.

Change-Id: If9e1d5a421b81e6e388c446a5a1c19e9c08ad067

include/hardware/sensors.h

index 4bd6c3c..b6f4a04 100644 (file)
@@ -691,6 +691,26 @@ enum {
 #define SENSOR_TYPE_DEVICE_ORIENTATION                 (27)
 #define SENSOR_STRING_TYPE_DEVICE_ORIENTATION          "android.sensor.device_orientation"
 
+/*
+ * SENSOR_TYPE_POSE_6DOF
+ * trigger-mode: continuous
+ *
+ * A sensor of this type returns the pose of the device.
+ * Pose of the device is defined as the orientation of the device from a
+ * Earth Centered Earth Fixed frame and the translation from an arbitrary
+ * point at subscription.
+ *
+ * This sensor can be high power. It can use any and all of the following
+ *           . Accelerometer
+ *           . Gyroscope
+ *           . Camera
+ *           . Depth Camera
+ *
+ * Implement only the wake-up version of this sensor.
+ */
+#define SENSOR_TYPE_POSE_6DOF                         (28)
+#define SENSOR_STRING_TYPE_POSE_6DOF                  "android.sensor.pose_6dof"
+
 /**
  * Values returned by the accelerometer in various locations in the universe.
  * all values are in SI units (m/s^2)