MBNNMotionData.h 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. // This file is generated and will be overwritten automatically.
  2. #import <Foundation/Foundation.h>
  3. @class MBNNAttitudeData;
  4. @class MBNNPoint3d;
  5. /** https://github.com/mapbox/mapbox-vision/blob/4a976f1d2f4c284a8481e0760b98078804d457d4/VisionCore/Public/VisionCore/platform_types.hpp#L211 */
  6. NS_SWIFT_NAME(MotionData)
  7. __attribute__((visibility ("default")))
  8. @interface MBNNMotionData : NSObject
  9. // This class provides custom init which should be called
  10. - (nonnull instancetype)init NS_UNAVAILABLE;
  11. // This class provides custom init which should be called
  12. + (nonnull instancetype)new NS_UNAVAILABLE;
  13. - (nonnull instancetype)initWithAttitude:(nonnull MBNNAttitudeData *)attitude
  14. rotationRate:(nonnull MBNNPoint3d *)rotationRate
  15. gravityAcceleration:(nonnull MBNNPoint3d *)gravityAcceleration
  16. userAcceleration:(nonnull MBNNPoint3d *)userAcceleration
  17. magneticField:(nonnull MBNNPoint3d *)magneticField
  18. heading:(float)heading
  19. monotonicTimestampNanoseconds:(int64_t)monotonicTimestampNanoseconds;
  20. /** the attitude of device */
  21. @property (nonatomic, readonly, nonnull) MBNNAttitudeData *attitude;
  22. /** the rotation rate of device (in rad/s) */
  23. @property (nonatomic, readonly, nonnull) MBNNPoint3d *rotationRate;
  24. /** the gravity acceleration vector expressed in the device's reference frame (in gravitational forces) */
  25. @property (nonatomic, readonly, nonnull) MBNNPoint3d *gravityAcceleration;
  26. /** the acceleration that the user is giving to the device (in gravitational forces). */
  27. @property (nonatomic, readonly, nonnull) MBNNPoint3d *userAcceleration;
  28. /** the magnetic field vector with respect to the device (in microteslas) */
  29. @property (nonatomic, readonly, nonnull) MBNNPoint3d *magneticField;
  30. /** The heading angle (measured in degrees) relative to the current reference frame. */
  31. @property (nonatomic, readonly) float heading;
  32. /** monotonic timestamp in nanoseconds */
  33. @property (nonatomic, readonly) int64_t monotonicTimestampNanoseconds;
  34. - (BOOL)isEqualToMotionData:(nonnull MBNNMotionData *)other;
  35. @end