You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

126 lines
2.4 KiB

7 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. #ifndef __R_GOOSE_DATA_STRUCTURES_HEADER__
  2. #define __R_GOOSE_DATA_STRUCTURES_HEADER__
  3. #incldue <stdint.h>
  4. typedef enum E_MeasurementUnits{
  5. MU_COUNTS = 0,
  6. MU_METERS = 1,
  7. MU_DEG,
  8. MU_RAD,
  9. MU_CELSIUS,
  10. MU_SECONDS,
  11. MU_PIXELS
  12. } measurementUnits;
  13. typedef struct S_WGS84_Location{
  14. float lat;
  15. float lon;
  16. float alt;
  17. } locationWGS84, locationAnchore, * p_locationWGS84, * p_locationAnchore;
  18. typedef struct S_XYZ_Location{
  19. float x;
  20. float y;
  21. float z;
  22. } locationXYZ, locationRelative, * p_locationXYZ, * p_locationRelative;
  23. typedef struct S_Orientation{
  24. float phi;
  25. float sigma;
  26. float tau;
  27. } orientation;
  28. typedef struct S_Position{
  29. locationXYZ d;
  30. locationAnchore at;
  31. orientation world;
  32. } position;
  33. typedef enum E_RGooseNodeClasses{
  34. NC_NODEF = 0,
  35. NC_ACCESS = 1,
  36. NC_IMAGER,
  37. NC_STORAGE,
  38. NC_ANALYTIC,
  39. NC_UI_IO
  40. } rgooseNodeClass, * p_RgooseNodeClass;
  41. #ifdef __linux__
  42. typedef unsigned long long timeStamp;
  43. #else
  44. typedef unsigned __int64 timeStamp;
  45. #endif
  46. typedef char[32] UOID, * PUOID;
  47. typedef struct S_Event_Source{
  48. uint32_t db_id;
  49. position pos;
  50. rgooseNodeClass cls;
  51. uint8_t sub;
  52. timeStamp utc;
  53. UOID uid;
  54. } eventSource;
  55. typedef enum E_Capabilities{
  56. FC_ALARM_INIT = 0,
  57. FC_ALARM_RCPT = 1,
  58. FC_IMAGE_ASC = 2,
  59. FC_VIDEO_ASC = 3,
  60. FC_AUDIO_ASC = 4,
  61. FC_FINGER_ASC = 5,
  62. FC_CODE_ASC = 6,
  63. FC_RFID_ASC = 7,
  64. FC_MOVE_PAN = 8,
  65. FC_MOVE_TILT = 9,
  66. FC_MOVE_ZOOM = 10,
  67. FC_HAVE_PRESET = 11,
  68. FC_CAN_APROVE = 12,
  69. FC_CAN_CLEANUP = 13,
  70. FC_RESET = 14,
  71. FC_RECORD_DATA = 15,
  72. FC_LIGHT_ON = 16,
  73. FC_SUGGEST = 17
  74. } nodeCaps;
  75. typedef enum E_CapabilityFlags{
  76. FCF_ALARM_INIT = 1,
  77. FCF_ALARM_RCPT = 2,
  78. FCF_IMAGE_ASC = 4,
  79. FCF_VIDEO_ASC = 8,
  80. FCF_AUDIO_ASC = 16,
  81. FCF_FINGER_ASC = 32,
  82. FCF_CODE_ASC = 64,
  83. FCF_RFID_ASC = 128,
  84. FCF_MOVE_PAN = 256,
  85. FCF_MOVE_TILT = 512,
  86. FCF_MOVE_ZOOM = 1024,
  87. FCF_HAVE_PRESET = 2048,
  88. FCF_CAN_APROVE = 4096,
  89. FCF_CAN_CLEANUP = 8192,
  90. FCF_RESET = 16384,
  91. FCF_RECORD_DATA = 32768,
  92. FCF_LIGHT_ON = 65536,
  93. FCF_SUGGEST = 131072
  94. } nodeCapFlag;
  95. typedef enum E_AccessLevels{
  96. AL_NONE = 0,
  97. AL_TREAT = 1,
  98. AL_SUSPISIOUSE,
  99. AL_IDENT,
  100. AL_GUEST,
  101. AL_OPERATOR,
  102. AL_OPERATOR_PLUS,
  103. AL_ADMINISTRATOR,
  104. AL_GOD
  105. } rgooseAccesLevel, * p_RgooseAccesLevel;
  106. typedef struct S_Persone{
  107. uint32_t db_id;
  108. rgooseAccesLevel access;
  109. UOID uid;
  110. } rgoosePersone, *pRgoosePersone;
  111. #endif