@foxglove/schemas 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (506) hide show
  1. package/.eslintrc.js +19 -0
  2. package/.gitattributes +1 -0
  3. package/.github/workflows/ci.yml +89 -0
  4. package/.prettierignore +1 -0
  5. package/.prettierrc.yml +2 -0
  6. package/.vscode/launch.json +23 -0
  7. package/.vscode/settings.json +20 -0
  8. package/LICENSE.md +21 -0
  9. package/README.md +31 -0
  10. package/dist/cjs/schemas/typescript/CameraCalibration.d.ts +63 -0
  11. package/dist/cjs/schemas/typescript/CameraCalibration.d.ts.map +1 -0
  12. package/dist/cjs/schemas/typescript/CameraCalibration.js +4 -0
  13. package/dist/cjs/schemas/typescript/CameraCalibration.js.map +1 -0
  14. package/dist/cjs/schemas/typescript/CircleAnnotation.d.ts +19 -0
  15. package/dist/cjs/schemas/typescript/CircleAnnotation.d.ts.map +1 -0
  16. package/dist/cjs/schemas/typescript/CircleAnnotation.js +4 -0
  17. package/dist/cjs/schemas/typescript/CircleAnnotation.js.map +1 -0
  18. package/dist/cjs/schemas/typescript/Color.d.ts +12 -0
  19. package/dist/cjs/schemas/typescript/Color.d.ts.map +1 -0
  20. package/dist/cjs/schemas/typescript/Color.js +4 -0
  21. package/dist/cjs/schemas/typescript/Color.js.map +1 -0
  22. package/dist/cjs/schemas/typescript/CompressedImage.d.ts +11 -0
  23. package/dist/cjs/schemas/typescript/CompressedImage.d.ts.map +1 -0
  24. package/dist/cjs/schemas/typescript/CompressedImage.js +4 -0
  25. package/dist/cjs/schemas/typescript/CompressedImage.js.map +1 -0
  26. package/dist/cjs/schemas/typescript/Duration.d.ts +5 -0
  27. package/dist/cjs/schemas/typescript/Duration.d.ts.map +1 -0
  28. package/dist/cjs/schemas/typescript/Duration.js +3 -0
  29. package/dist/cjs/schemas/typescript/Duration.js.map +1 -0
  30. package/dist/cjs/schemas/typescript/FrameTransform.d.ts +14 -0
  31. package/dist/cjs/schemas/typescript/FrameTransform.d.ts.map +1 -0
  32. package/dist/cjs/schemas/typescript/FrameTransform.js +4 -0
  33. package/dist/cjs/schemas/typescript/FrameTransform.js.map +1 -0
  34. package/dist/cjs/schemas/typescript/GeoJSON.d.ts +6 -0
  35. package/dist/cjs/schemas/typescript/GeoJSON.d.ts.map +1 -0
  36. package/dist/cjs/schemas/typescript/GeoJSON.js +4 -0
  37. package/dist/cjs/schemas/typescript/GeoJSON.js.map +1 -0
  38. package/dist/cjs/schemas/typescript/Grid.d.ts +26 -0
  39. package/dist/cjs/schemas/typescript/Grid.d.ts.map +1 -0
  40. package/dist/cjs/schemas/typescript/Grid.js +4 -0
  41. package/dist/cjs/schemas/typescript/Grid.js.map +1 -0
  42. package/dist/cjs/schemas/typescript/ImageAnnotations.d.ts +10 -0
  43. package/dist/cjs/schemas/typescript/ImageAnnotations.d.ts.map +1 -0
  44. package/dist/cjs/schemas/typescript/ImageAnnotations.js +4 -0
  45. package/dist/cjs/schemas/typescript/ImageAnnotations.js.map +1 -0
  46. package/dist/cjs/schemas/typescript/LaserScan.d.ts +20 -0
  47. package/dist/cjs/schemas/typescript/LaserScan.d.ts.map +1 -0
  48. package/dist/cjs/schemas/typescript/LaserScan.js +4 -0
  49. package/dist/cjs/schemas/typescript/LaserScan.js.map +1 -0
  50. package/dist/cjs/schemas/typescript/LocationFix.d.ts +15 -0
  51. package/dist/cjs/schemas/typescript/LocationFix.d.ts.map +1 -0
  52. package/dist/cjs/schemas/typescript/LocationFix.js +4 -0
  53. package/dist/cjs/schemas/typescript/LocationFix.js.map +1 -0
  54. package/dist/cjs/schemas/typescript/Log.d.ts +18 -0
  55. package/dist/cjs/schemas/typescript/Log.d.ts.map +1 -0
  56. package/dist/cjs/schemas/typescript/Log.js +4 -0
  57. package/dist/cjs/schemas/typescript/Log.js.map +1 -0
  58. package/dist/cjs/schemas/typescript/LogLevel.d.ts +10 -0
  59. package/dist/cjs/schemas/typescript/LogLevel.d.ts.map +1 -0
  60. package/dist/cjs/schemas/typescript/LogLevel.js +15 -0
  61. package/dist/cjs/schemas/typescript/LogLevel.js.map +1 -0
  62. package/dist/cjs/schemas/typescript/NumericType.d.ts +13 -0
  63. package/dist/cjs/schemas/typescript/NumericType.d.ts.map +1 -0
  64. package/dist/cjs/schemas/typescript/NumericType.js +18 -0
  65. package/dist/cjs/schemas/typescript/NumericType.js.map +1 -0
  66. package/dist/cjs/schemas/typescript/PackedElementField.d.ts +11 -0
  67. package/dist/cjs/schemas/typescript/PackedElementField.d.ts.map +1 -0
  68. package/dist/cjs/schemas/typescript/PackedElementField.js +4 -0
  69. package/dist/cjs/schemas/typescript/PackedElementField.js.map +1 -0
  70. package/dist/cjs/schemas/typescript/Point2.d.ts +8 -0
  71. package/dist/cjs/schemas/typescript/Point2.d.ts.map +1 -0
  72. package/dist/cjs/schemas/typescript/Point2.js +4 -0
  73. package/dist/cjs/schemas/typescript/Point2.js.map +1 -0
  74. package/dist/cjs/schemas/typescript/Point3.d.ts +10 -0
  75. package/dist/cjs/schemas/typescript/Point3.d.ts.map +1 -0
  76. package/dist/cjs/schemas/typescript/Point3.js +4 -0
  77. package/dist/cjs/schemas/typescript/Point3.js.map +1 -0
  78. package/dist/cjs/schemas/typescript/PointCloud.d.ts +19 -0
  79. package/dist/cjs/schemas/typescript/PointCloud.d.ts.map +1 -0
  80. package/dist/cjs/schemas/typescript/PointCloud.js +4 -0
  81. package/dist/cjs/schemas/typescript/PointCloud.js.map +1 -0
  82. package/dist/cjs/schemas/typescript/PointsAnnotation.d.ts +18 -0
  83. package/dist/cjs/schemas/typescript/PointsAnnotation.d.ts.map +1 -0
  84. package/dist/cjs/schemas/typescript/PointsAnnotation.js +4 -0
  85. package/dist/cjs/schemas/typescript/PointsAnnotation.js.map +1 -0
  86. package/dist/cjs/schemas/typescript/PointsAnnotationType.d.ts +9 -0
  87. package/dist/cjs/schemas/typescript/PointsAnnotationType.d.ts.map +1 -0
  88. package/dist/cjs/schemas/typescript/PointsAnnotationType.js +14 -0
  89. package/dist/cjs/schemas/typescript/PointsAnnotationType.js.map +1 -0
  90. package/dist/cjs/schemas/typescript/Pose.d.ts +10 -0
  91. package/dist/cjs/schemas/typescript/Pose.d.ts.map +1 -0
  92. package/dist/cjs/schemas/typescript/Pose.js +4 -0
  93. package/dist/cjs/schemas/typescript/Pose.js.map +1 -0
  94. package/dist/cjs/schemas/typescript/PoseInFrame.d.ts +12 -0
  95. package/dist/cjs/schemas/typescript/PoseInFrame.d.ts.map +1 -0
  96. package/dist/cjs/schemas/typescript/PoseInFrame.js +4 -0
  97. package/dist/cjs/schemas/typescript/PoseInFrame.js.map +1 -0
  98. package/dist/cjs/schemas/typescript/PosesInFrame.d.ts +12 -0
  99. package/dist/cjs/schemas/typescript/PosesInFrame.d.ts.map +1 -0
  100. package/dist/cjs/schemas/typescript/PosesInFrame.js +4 -0
  101. package/dist/cjs/schemas/typescript/PosesInFrame.js.map +1 -0
  102. package/dist/cjs/schemas/typescript/PositionCovarianceType.d.ts +8 -0
  103. package/dist/cjs/schemas/typescript/PositionCovarianceType.d.ts.map +1 -0
  104. package/dist/cjs/schemas/typescript/PositionCovarianceType.js +13 -0
  105. package/dist/cjs/schemas/typescript/PositionCovarianceType.js.map +1 -0
  106. package/dist/cjs/schemas/typescript/Quaternion.d.ts +12 -0
  107. package/dist/cjs/schemas/typescript/Quaternion.d.ts.map +1 -0
  108. package/dist/cjs/schemas/typescript/Quaternion.js +4 -0
  109. package/dist/cjs/schemas/typescript/Quaternion.js.map +1 -0
  110. package/dist/cjs/schemas/typescript/RawImage.d.ts +17 -0
  111. package/dist/cjs/schemas/typescript/RawImage.d.ts.map +1 -0
  112. package/dist/cjs/schemas/typescript/RawImage.js +4 -0
  113. package/dist/cjs/schemas/typescript/RawImage.js.map +1 -0
  114. package/dist/cjs/schemas/typescript/Time.d.ts +5 -0
  115. package/dist/cjs/schemas/typescript/Time.d.ts.map +1 -0
  116. package/dist/cjs/schemas/typescript/Time.js +3 -0
  117. package/dist/cjs/schemas/typescript/Time.js.map +1 -0
  118. package/dist/cjs/schemas/typescript/Transform.d.ts +13 -0
  119. package/dist/cjs/schemas/typescript/Transform.d.ts.map +1 -0
  120. package/dist/cjs/schemas/typescript/Transform.js +4 -0
  121. package/dist/cjs/schemas/typescript/Transform.js.map +1 -0
  122. package/dist/cjs/schemas/typescript/Vector2.d.ts +8 -0
  123. package/dist/cjs/schemas/typescript/Vector2.d.ts.map +1 -0
  124. package/dist/cjs/schemas/typescript/Vector2.js +4 -0
  125. package/dist/cjs/schemas/typescript/Vector2.js.map +1 -0
  126. package/dist/cjs/schemas/typescript/Vector3.d.ts +10 -0
  127. package/dist/cjs/schemas/typescript/Vector3.d.ts.map +1 -0
  128. package/dist/cjs/schemas/typescript/Vector3.js +4 -0
  129. package/dist/cjs/schemas/typescript/Vector3.js.map +1 -0
  130. package/dist/cjs/schemas/typescript/index.d.ts +29 -0
  131. package/dist/cjs/schemas/typescript/index.d.ts.map +1 -0
  132. package/dist/cjs/schemas/typescript/index.js +32 -0
  133. package/dist/cjs/schemas/typescript/index.js.map +1 -0
  134. package/dist/cjs/scripts/updateGeneratedFiles.d.ts +2 -0
  135. package/dist/cjs/scripts/updateGeneratedFiles.d.ts.map +1 -0
  136. package/dist/cjs/scripts/updateGeneratedFiles.js +77 -0
  137. package/dist/cjs/scripts/updateGeneratedFiles.js.map +1 -0
  138. package/dist/cjs/src/generateJsonSchema.d.ts +3 -0
  139. package/dist/cjs/src/generateJsonSchema.d.ts.map +1 -0
  140. package/dist/cjs/src/generateJsonSchema.js +85 -0
  141. package/dist/cjs/src/generateJsonSchema.js.map +1 -0
  142. package/dist/cjs/src/generateJsonSchema.test.d.ts +2 -0
  143. package/dist/cjs/src/generateJsonSchema.test.d.ts.map +1 -0
  144. package/dist/cjs/src/generateJsonSchema.test.js +312 -0
  145. package/dist/cjs/src/generateJsonSchema.test.js.map +1 -0
  146. package/dist/cjs/src/generateProto.d.ts +3 -0
  147. package/dist/cjs/src/generateProto.d.ts.map +1 -0
  148. package/dist/cjs/src/generateProto.js +84 -0
  149. package/dist/cjs/src/generateProto.js.map +1 -0
  150. package/dist/cjs/src/generateProto.test.d.ts +2 -0
  151. package/dist/cjs/src/generateProto.test.d.ts.map +1 -0
  152. package/dist/cjs/src/generateProto.test.js +125 -0
  153. package/dist/cjs/src/generateProto.test.js.map +1 -0
  154. package/dist/cjs/src/generateRos.d.ts +20 -0
  155. package/dist/cjs/src/generateRos.d.ts.map +1 -0
  156. package/dist/cjs/src/generateRos.js +186 -0
  157. package/dist/cjs/src/generateRos.js.map +1 -0
  158. package/dist/cjs/src/generateRos.test.d.ts +2 -0
  159. package/dist/cjs/src/generateRos.test.d.ts.map +1 -0
  160. package/dist/cjs/src/generateRos.test.js +911 -0
  161. package/dist/cjs/src/generateRos.test.js.map +1 -0
  162. package/dist/cjs/src/generateTypeScript.d.ts +5 -0
  163. package/dist/cjs/src/generateTypeScript.d.ts.map +1 -0
  164. package/dist/cjs/src/generateTypeScript.js +100 -0
  165. package/dist/cjs/src/generateTypeScript.js.map +1 -0
  166. package/dist/cjs/src/generateTypeScript.test.d.ts +2 -0
  167. package/dist/cjs/src/generateTypeScript.test.d.ts.map +1 -0
  168. package/dist/cjs/src/generateTypeScript.test.js +142 -0
  169. package/dist/cjs/src/generateTypeScript.test.js.map +1 -0
  170. package/dist/cjs/src/index.d.ts +6 -0
  171. package/dist/cjs/src/index.d.ts.map +1 -0
  172. package/dist/cjs/src/index.js +9 -0
  173. package/dist/cjs/src/index.js.map +1 -0
  174. package/dist/cjs/src/schemas.d.ts +35 -0
  175. package/dist/cjs/src/schemas.d.ts.map +1 -0
  176. package/dist/cjs/src/schemas.js +820 -0
  177. package/dist/cjs/src/schemas.js.map +1 -0
  178. package/dist/cjs/src/schemas.test.d.ts +2 -0
  179. package/dist/cjs/src/schemas.test.d.ts.map +1 -0
  180. package/dist/cjs/src/schemas.test.js +24 -0
  181. package/dist/cjs/src/schemas.test.js.map +1 -0
  182. package/dist/cjs/src/testFixtures.d.ts +5 -0
  183. package/dist/cjs/src/testFixtures.d.ts.map +1 -0
  184. package/dist/cjs/src/testFixtures.js +86 -0
  185. package/dist/cjs/src/testFixtures.js.map +1 -0
  186. package/dist/cjs/src/types.d.ts +37 -0
  187. package/dist/cjs/src/types.d.ts.map +1 -0
  188. package/dist/cjs/src/types.js +3 -0
  189. package/dist/cjs/src/types.js.map +1 -0
  190. package/dist/esm/schemas/typescript/CameraCalibration.d.ts +63 -0
  191. package/dist/esm/schemas/typescript/CameraCalibration.d.ts.map +1 -0
  192. package/dist/esm/schemas/typescript/CameraCalibration.js +3 -0
  193. package/dist/esm/schemas/typescript/CameraCalibration.js.map +1 -0
  194. package/dist/esm/schemas/typescript/CircleAnnotation.d.ts +19 -0
  195. package/dist/esm/schemas/typescript/CircleAnnotation.d.ts.map +1 -0
  196. package/dist/esm/schemas/typescript/CircleAnnotation.js +3 -0
  197. package/dist/esm/schemas/typescript/CircleAnnotation.js.map +1 -0
  198. package/dist/esm/schemas/typescript/Color.d.ts +12 -0
  199. package/dist/esm/schemas/typescript/Color.d.ts.map +1 -0
  200. package/dist/esm/schemas/typescript/Color.js +3 -0
  201. package/dist/esm/schemas/typescript/Color.js.map +1 -0
  202. package/dist/esm/schemas/typescript/CompressedImage.d.ts +11 -0
  203. package/dist/esm/schemas/typescript/CompressedImage.d.ts.map +1 -0
  204. package/dist/esm/schemas/typescript/CompressedImage.js +3 -0
  205. package/dist/esm/schemas/typescript/CompressedImage.js.map +1 -0
  206. package/dist/esm/schemas/typescript/Duration.d.ts +5 -0
  207. package/dist/esm/schemas/typescript/Duration.d.ts.map +1 -0
  208. package/dist/esm/schemas/typescript/Duration.js +2 -0
  209. package/dist/esm/schemas/typescript/Duration.js.map +1 -0
  210. package/dist/esm/schemas/typescript/FrameTransform.d.ts +14 -0
  211. package/dist/esm/schemas/typescript/FrameTransform.d.ts.map +1 -0
  212. package/dist/esm/schemas/typescript/FrameTransform.js +3 -0
  213. package/dist/esm/schemas/typescript/FrameTransform.js.map +1 -0
  214. package/dist/esm/schemas/typescript/GeoJSON.d.ts +6 -0
  215. package/dist/esm/schemas/typescript/GeoJSON.d.ts.map +1 -0
  216. package/dist/esm/schemas/typescript/GeoJSON.js +3 -0
  217. package/dist/esm/schemas/typescript/GeoJSON.js.map +1 -0
  218. package/dist/esm/schemas/typescript/Grid.d.ts +26 -0
  219. package/dist/esm/schemas/typescript/Grid.d.ts.map +1 -0
  220. package/dist/esm/schemas/typescript/Grid.js +3 -0
  221. package/dist/esm/schemas/typescript/Grid.js.map +1 -0
  222. package/dist/esm/schemas/typescript/ImageAnnotations.d.ts +10 -0
  223. package/dist/esm/schemas/typescript/ImageAnnotations.d.ts.map +1 -0
  224. package/dist/esm/schemas/typescript/ImageAnnotations.js +3 -0
  225. package/dist/esm/schemas/typescript/ImageAnnotations.js.map +1 -0
  226. package/dist/esm/schemas/typescript/LaserScan.d.ts +20 -0
  227. package/dist/esm/schemas/typescript/LaserScan.d.ts.map +1 -0
  228. package/dist/esm/schemas/typescript/LaserScan.js +3 -0
  229. package/dist/esm/schemas/typescript/LaserScan.js.map +1 -0
  230. package/dist/esm/schemas/typescript/LocationFix.d.ts +15 -0
  231. package/dist/esm/schemas/typescript/LocationFix.d.ts.map +1 -0
  232. package/dist/esm/schemas/typescript/LocationFix.js +3 -0
  233. package/dist/esm/schemas/typescript/LocationFix.js.map +1 -0
  234. package/dist/esm/schemas/typescript/Log.d.ts +18 -0
  235. package/dist/esm/schemas/typescript/Log.d.ts.map +1 -0
  236. package/dist/esm/schemas/typescript/Log.js +3 -0
  237. package/dist/esm/schemas/typescript/Log.js.map +1 -0
  238. package/dist/esm/schemas/typescript/LogLevel.d.ts +10 -0
  239. package/dist/esm/schemas/typescript/LogLevel.d.ts.map +1 -0
  240. package/dist/esm/schemas/typescript/LogLevel.js +12 -0
  241. package/dist/esm/schemas/typescript/LogLevel.js.map +1 -0
  242. package/dist/esm/schemas/typescript/NumericType.d.ts +13 -0
  243. package/dist/esm/schemas/typescript/NumericType.d.ts.map +1 -0
  244. package/dist/esm/schemas/typescript/NumericType.js +15 -0
  245. package/dist/esm/schemas/typescript/NumericType.js.map +1 -0
  246. package/dist/esm/schemas/typescript/PackedElementField.d.ts +11 -0
  247. package/dist/esm/schemas/typescript/PackedElementField.d.ts.map +1 -0
  248. package/dist/esm/schemas/typescript/PackedElementField.js +3 -0
  249. package/dist/esm/schemas/typescript/PackedElementField.js.map +1 -0
  250. package/dist/esm/schemas/typescript/Point2.d.ts +8 -0
  251. package/dist/esm/schemas/typescript/Point2.d.ts.map +1 -0
  252. package/dist/esm/schemas/typescript/Point2.js +3 -0
  253. package/dist/esm/schemas/typescript/Point2.js.map +1 -0
  254. package/dist/esm/schemas/typescript/Point3.d.ts +10 -0
  255. package/dist/esm/schemas/typescript/Point3.d.ts.map +1 -0
  256. package/dist/esm/schemas/typescript/Point3.js +3 -0
  257. package/dist/esm/schemas/typescript/Point3.js.map +1 -0
  258. package/dist/esm/schemas/typescript/PointCloud.d.ts +19 -0
  259. package/dist/esm/schemas/typescript/PointCloud.d.ts.map +1 -0
  260. package/dist/esm/schemas/typescript/PointCloud.js +3 -0
  261. package/dist/esm/schemas/typescript/PointCloud.js.map +1 -0
  262. package/dist/esm/schemas/typescript/PointsAnnotation.d.ts +18 -0
  263. package/dist/esm/schemas/typescript/PointsAnnotation.d.ts.map +1 -0
  264. package/dist/esm/schemas/typescript/PointsAnnotation.js +3 -0
  265. package/dist/esm/schemas/typescript/PointsAnnotation.js.map +1 -0
  266. package/dist/esm/schemas/typescript/PointsAnnotationType.d.ts +9 -0
  267. package/dist/esm/schemas/typescript/PointsAnnotationType.d.ts.map +1 -0
  268. package/dist/esm/schemas/typescript/PointsAnnotationType.js +11 -0
  269. package/dist/esm/schemas/typescript/PointsAnnotationType.js.map +1 -0
  270. package/dist/esm/schemas/typescript/Pose.d.ts +10 -0
  271. package/dist/esm/schemas/typescript/Pose.d.ts.map +1 -0
  272. package/dist/esm/schemas/typescript/Pose.js +3 -0
  273. package/dist/esm/schemas/typescript/Pose.js.map +1 -0
  274. package/dist/esm/schemas/typescript/PoseInFrame.d.ts +12 -0
  275. package/dist/esm/schemas/typescript/PoseInFrame.d.ts.map +1 -0
  276. package/dist/esm/schemas/typescript/PoseInFrame.js +3 -0
  277. package/dist/esm/schemas/typescript/PoseInFrame.js.map +1 -0
  278. package/dist/esm/schemas/typescript/PosesInFrame.d.ts +12 -0
  279. package/dist/esm/schemas/typescript/PosesInFrame.d.ts.map +1 -0
  280. package/dist/esm/schemas/typescript/PosesInFrame.js +3 -0
  281. package/dist/esm/schemas/typescript/PosesInFrame.js.map +1 -0
  282. package/dist/esm/schemas/typescript/PositionCovarianceType.d.ts +8 -0
  283. package/dist/esm/schemas/typescript/PositionCovarianceType.d.ts.map +1 -0
  284. package/dist/esm/schemas/typescript/PositionCovarianceType.js +10 -0
  285. package/dist/esm/schemas/typescript/PositionCovarianceType.js.map +1 -0
  286. package/dist/esm/schemas/typescript/Quaternion.d.ts +12 -0
  287. package/dist/esm/schemas/typescript/Quaternion.d.ts.map +1 -0
  288. package/dist/esm/schemas/typescript/Quaternion.js +3 -0
  289. package/dist/esm/schemas/typescript/Quaternion.js.map +1 -0
  290. package/dist/esm/schemas/typescript/RawImage.d.ts +17 -0
  291. package/dist/esm/schemas/typescript/RawImage.d.ts.map +1 -0
  292. package/dist/esm/schemas/typescript/RawImage.js +3 -0
  293. package/dist/esm/schemas/typescript/RawImage.js.map +1 -0
  294. package/dist/esm/schemas/typescript/Time.d.ts +5 -0
  295. package/dist/esm/schemas/typescript/Time.d.ts.map +1 -0
  296. package/dist/esm/schemas/typescript/Time.js +2 -0
  297. package/dist/esm/schemas/typescript/Time.js.map +1 -0
  298. package/dist/esm/schemas/typescript/Transform.d.ts +13 -0
  299. package/dist/esm/schemas/typescript/Transform.d.ts.map +1 -0
  300. package/dist/esm/schemas/typescript/Transform.js +3 -0
  301. package/dist/esm/schemas/typescript/Transform.js.map +1 -0
  302. package/dist/esm/schemas/typescript/Vector2.d.ts +8 -0
  303. package/dist/esm/schemas/typescript/Vector2.d.ts.map +1 -0
  304. package/dist/esm/schemas/typescript/Vector2.js +3 -0
  305. package/dist/esm/schemas/typescript/Vector2.js.map +1 -0
  306. package/dist/esm/schemas/typescript/Vector3.d.ts +10 -0
  307. package/dist/esm/schemas/typescript/Vector3.d.ts.map +1 -0
  308. package/dist/esm/schemas/typescript/Vector3.js +3 -0
  309. package/dist/esm/schemas/typescript/Vector3.js.map +1 -0
  310. package/dist/esm/schemas/typescript/index.d.ts +29 -0
  311. package/dist/esm/schemas/typescript/index.d.ts.map +1 -0
  312. package/dist/esm/schemas/typescript/index.js +29 -0
  313. package/dist/esm/schemas/typescript/index.js.map +1 -0
  314. package/dist/esm/scripts/updateGeneratedFiles.d.ts +2 -0
  315. package/dist/esm/scripts/updateGeneratedFiles.d.ts.map +1 -0
  316. package/dist/esm/scripts/updateGeneratedFiles.js +74 -0
  317. package/dist/esm/scripts/updateGeneratedFiles.js.map +1 -0
  318. package/dist/esm/src/generateJsonSchema.d.ts +3 -0
  319. package/dist/esm/src/generateJsonSchema.d.ts.map +1 -0
  320. package/dist/esm/src/generateJsonSchema.js +81 -0
  321. package/dist/esm/src/generateJsonSchema.js.map +1 -0
  322. package/dist/esm/src/generateJsonSchema.test.d.ts +2 -0
  323. package/dist/esm/src/generateJsonSchema.test.d.ts.map +1 -0
  324. package/dist/esm/src/generateJsonSchema.test.js +309 -0
  325. package/dist/esm/src/generateJsonSchema.test.js.map +1 -0
  326. package/dist/esm/src/generateProto.d.ts +3 -0
  327. package/dist/esm/src/generateProto.d.ts.map +1 -0
  328. package/dist/esm/src/generateProto.js +80 -0
  329. package/dist/esm/src/generateProto.js.map +1 -0
  330. package/dist/esm/src/generateProto.test.d.ts +2 -0
  331. package/dist/esm/src/generateProto.test.d.ts.map +1 -0
  332. package/dist/esm/src/generateProto.test.js +122 -0
  333. package/dist/esm/src/generateProto.test.js.map +1 -0
  334. package/dist/esm/src/generateRos.d.ts +20 -0
  335. package/dist/esm/src/generateRos.d.ts.map +1 -0
  336. package/dist/esm/src/generateRos.js +180 -0
  337. package/dist/esm/src/generateRos.js.map +1 -0
  338. package/dist/esm/src/generateRos.test.d.ts +2 -0
  339. package/dist/esm/src/generateRos.test.d.ts.map +1 -0
  340. package/dist/esm/src/generateRos.test.js +909 -0
  341. package/dist/esm/src/generateRos.test.js.map +1 -0
  342. package/dist/esm/src/generateTypeScript.d.ts +5 -0
  343. package/dist/esm/src/generateTypeScript.d.ts.map +1 -0
  344. package/dist/esm/src/generateTypeScript.js +96 -0
  345. package/dist/esm/src/generateTypeScript.js.map +1 -0
  346. package/dist/esm/src/generateTypeScript.test.d.ts +2 -0
  347. package/dist/esm/src/generateTypeScript.test.d.ts.map +1 -0
  348. package/dist/esm/src/generateTypeScript.test.js +117 -0
  349. package/dist/esm/src/generateTypeScript.test.js.map +1 -0
  350. package/dist/esm/src/index.d.ts +6 -0
  351. package/dist/esm/src/index.d.ts.map +1 -0
  352. package/dist/esm/src/index.js +6 -0
  353. package/dist/esm/src/index.js.map +1 -0
  354. package/dist/esm/src/schemas.d.ts +35 -0
  355. package/dist/esm/src/schemas.d.ts.map +1 -0
  356. package/dist/esm/src/schemas.js +817 -0
  357. package/dist/esm/src/schemas.js.map +1 -0
  358. package/dist/esm/src/schemas.test.d.ts +2 -0
  359. package/dist/esm/src/schemas.test.d.ts.map +1 -0
  360. package/dist/esm/src/schemas.test.js +22 -0
  361. package/dist/esm/src/schemas.test.js.map +1 -0
  362. package/dist/esm/src/testFixtures.d.ts +5 -0
  363. package/dist/esm/src/testFixtures.d.ts.map +1 -0
  364. package/dist/esm/src/testFixtures.js +83 -0
  365. package/dist/esm/src/testFixtures.js.map +1 -0
  366. package/dist/esm/src/types.d.ts +37 -0
  367. package/dist/esm/src/types.d.ts.map +1 -0
  368. package/dist/esm/src/types.js +2 -0
  369. package/dist/esm/src/types.js.map +1 -0
  370. package/jest.config.json +16 -0
  371. package/package.json +55 -0
  372. package/schemas/jsonschema/CameraCalibration.json +72 -0
  373. package/schemas/jsonschema/CircleAnnotation.json +96 -0
  374. package/schemas/jsonschema/Color.json +24 -0
  375. package/schemas/jsonschema/CompressedImage.json +33 -0
  376. package/schemas/jsonschema/FrameTransform.json +100 -0
  377. package/schemas/jsonschema/GeoJSON.json +12 -0
  378. package/schemas/jsonschema/Grid.json +179 -0
  379. package/schemas/jsonschema/ImageAnnotations.json +234 -0
  380. package/schemas/jsonschema/LaserScan.json +102 -0
  381. package/schemas/jsonschema/LocationFix.json +51 -0
  382. package/schemas/jsonschema/Log.json +71 -0
  383. package/schemas/jsonschema/PackedElementField.json +59 -0
  384. package/schemas/jsonschema/Point2.json +16 -0
  385. package/schemas/jsonschema/Point3.json +20 -0
  386. package/schemas/jsonschema/PointCloud.json +153 -0
  387. package/schemas/jsonschema/PointsAnnotation.json +122 -0
  388. package/schemas/jsonschema/Pose.json +52 -0
  389. package/schemas/jsonschema/PoseInFrame.json +80 -0
  390. package/schemas/jsonschema/PosesInFrame.json +84 -0
  391. package/schemas/jsonschema/Quaternion.json +24 -0
  392. package/schemas/jsonschema/RawImage.json +48 -0
  393. package/schemas/jsonschema/Transform.json +68 -0
  394. package/schemas/jsonschema/Vector2.json +16 -0
  395. package/schemas/jsonschema/Vector3.json +20 -0
  396. package/schemas/proto/foxglove/CameraCalibration.proto +70 -0
  397. package/schemas/proto/foxglove/CircleAnnotation.proto +30 -0
  398. package/schemas/proto/foxglove/Color.proto +20 -0
  399. package/schemas/proto/foxglove/CompressedImage.proto +19 -0
  400. package/schemas/proto/foxglove/FrameTransform.proto +23 -0
  401. package/schemas/proto/foxglove/GeoJSON.proto +11 -0
  402. package/schemas/proto/foxglove/Grid.proto +40 -0
  403. package/schemas/proto/foxglove/ImageAnnotations.proto +17 -0
  404. package/schemas/proto/foxglove/LaserScan.proto +32 -0
  405. package/schemas/proto/foxglove/LocationFix.proto +33 -0
  406. package/schemas/proto/foxglove/Log.proto +42 -0
  407. package/schemas/proto/foxglove/PackedElementField.proto +37 -0
  408. package/schemas/proto/foxglove/Point2.proto +14 -0
  409. package/schemas/proto/foxglove/Point3.proto +17 -0
  410. package/schemas/proto/foxglove/PointCloud.proto +30 -0
  411. package/schemas/proto/foxglove/PointsAnnotation.proto +39 -0
  412. package/schemas/proto/foxglove/Pose.proto +17 -0
  413. package/schemas/proto/foxglove/PoseInFrame.proto +20 -0
  414. package/schemas/proto/foxglove/PosesInFrame.proto +20 -0
  415. package/schemas/proto/foxglove/Quaternion.proto +20 -0
  416. package/schemas/proto/foxglove/RawImage.proto +28 -0
  417. package/schemas/proto/foxglove/Transform.proto +21 -0
  418. package/schemas/proto/foxglove/Vector2.proto +14 -0
  419. package/schemas/proto/foxglove/Vector3.proto +17 -0
  420. package/schemas/ros1/CameraCalibration.msg +61 -0
  421. package/schemas/ros1/CircleAnnotation.msg +19 -0
  422. package/schemas/ros1/Color.msg +13 -0
  423. package/schemas/ros1/CompressedImage.msg +10 -0
  424. package/schemas/ros1/FrameTransform.msg +13 -0
  425. package/schemas/ros1/GeoJSON.msg +4 -0
  426. package/schemas/ros1/Grid.msg +28 -0
  427. package/schemas/ros1/ImageAnnotations.msg +7 -0
  428. package/schemas/ros1/LaserScan.msg +22 -0
  429. package/schemas/ros1/LocationFix.msg +21 -0
  430. package/schemas/ros1/Log.msg +26 -0
  431. package/schemas/ros1/PackedElementField.msg +20 -0
  432. package/schemas/ros1/Point2.msg +7 -0
  433. package/schemas/ros1/PointCloud.msg +19 -0
  434. package/schemas/ros1/PointsAnnotation.msg +22 -0
  435. package/schemas/ros1/PoseInFrame.msg +10 -0
  436. package/schemas/ros1/PosesInFrame.msg +10 -0
  437. package/schemas/ros1/RawImage.msg +19 -0
  438. package/schemas/ros1/Transform.msg +10 -0
  439. package/schemas/ros1/Vector2.msg +7 -0
  440. package/schemas/ros2/CameraCalibration.msg +61 -0
  441. package/schemas/ros2/CircleAnnotation.msg +19 -0
  442. package/schemas/ros2/Color.msg +13 -0
  443. package/schemas/ros2/CompressedImage.msg +10 -0
  444. package/schemas/ros2/FrameTransform.msg +13 -0
  445. package/schemas/ros2/GeoJSON.msg +4 -0
  446. package/schemas/ros2/Grid.msg +28 -0
  447. package/schemas/ros2/ImageAnnotations.msg +7 -0
  448. package/schemas/ros2/LaserScan.msg +22 -0
  449. package/schemas/ros2/LocationFix.msg +21 -0
  450. package/schemas/ros2/Log.msg +26 -0
  451. package/schemas/ros2/PackedElementField.msg +20 -0
  452. package/schemas/ros2/Point2.msg +7 -0
  453. package/schemas/ros2/PointCloud.msg +19 -0
  454. package/schemas/ros2/PointsAnnotation.msg +22 -0
  455. package/schemas/ros2/PoseInFrame.msg +10 -0
  456. package/schemas/ros2/PosesInFrame.msg +10 -0
  457. package/schemas/ros2/RawImage.msg +19 -0
  458. package/schemas/ros2/Transform.msg +10 -0
  459. package/schemas/ros2/Vector2.msg +7 -0
  460. package/schemas/typescript/CameraCalibration.ts +72 -0
  461. package/schemas/typescript/CircleAnnotation.ts +26 -0
  462. package/schemas/typescript/Color.ts +16 -0
  463. package/schemas/typescript/CompressedImage.ts +15 -0
  464. package/schemas/typescript/Duration.ts +4 -0
  465. package/schemas/typescript/FrameTransform.ts +19 -0
  466. package/schemas/typescript/GeoJSON.ts +7 -0
  467. package/schemas/typescript/Grid.ts +36 -0
  468. package/schemas/typescript/ImageAnnotations.ts +13 -0
  469. package/schemas/typescript/LaserScan.ts +28 -0
  470. package/schemas/typescript/LocationFix.ts +21 -0
  471. package/schemas/typescript/Log.ts +25 -0
  472. package/schemas/typescript/LogLevel.ts +16 -0
  473. package/schemas/typescript/NumericType.ts +22 -0
  474. package/schemas/typescript/PackedElementField.ts +15 -0
  475. package/schemas/typescript/Point2.ts +10 -0
  476. package/schemas/typescript/Point3.ts +13 -0
  477. package/schemas/typescript/PointCloud.ts +26 -0
  478. package/schemas/typescript/PointsAnnotation.ts +24 -0
  479. package/schemas/typescript/PointsAnnotationType.ts +14 -0
  480. package/schemas/typescript/Pose.ts +13 -0
  481. package/schemas/typescript/PoseInFrame.ts +16 -0
  482. package/schemas/typescript/PosesInFrame.ts +16 -0
  483. package/schemas/typescript/PositionCovarianceType.ts +12 -0
  484. package/schemas/typescript/Quaternion.ts +16 -0
  485. package/schemas/typescript/RawImage.ts +24 -0
  486. package/schemas/typescript/Time.ts +4 -0
  487. package/schemas/typescript/Transform.ts +17 -0
  488. package/schemas/typescript/Vector2.ts +10 -0
  489. package/schemas/typescript/Vector3.ts +13 -0
  490. package/schemas/typescript/index.ts +28 -0
  491. package/scripts/updateGeneratedFiles.ts +103 -0
  492. package/src/generateJsonSchema.test.ts +314 -0
  493. package/src/generateJsonSchema.ts +82 -0
  494. package/src/generateProto.test.ts +126 -0
  495. package/src/generateProto.ts +97 -0
  496. package/src/generateRos.test.ts +931 -0
  497. package/src/generateRos.ts +219 -0
  498. package/src/generateTypeScript.test.ts +118 -0
  499. package/src/generateTypeScript.ts +106 -0
  500. package/src/index.ts +5 -0
  501. package/src/schemas.test.ts +23 -0
  502. package/src/schemas.ts +853 -0
  503. package/src/testFixtures.ts +90 -0
  504. package/src/types.ts +40 -0
  505. package/tsconfig.cjs.json +7 -0
  506. package/tsconfig.json +9 -0
@@ -0,0 +1,22 @@
1
+ # Generated from PointsAnnotation by @foxglove/schemas
2
+
3
+ # Timestamp of annotation
4
+ builtin_interfaces/Time timestamp
5
+
6
+ uint8 UNKNOWN=0
7
+ uint8 POINTS=1
8
+ uint8 LINE_LOOP=2
9
+ uint8 LINE_STRIP=3
10
+ uint8 LINE_LIST=4
11
+
12
+ # Type of points annotation to draw
13
+ uint8 type
14
+
15
+ # Points in 2D image coordinates
16
+ foxglove_msgs/Point2[] points
17
+
18
+ # Outline colors
19
+ foxglove_msgs/Color[] outline_colors
20
+
21
+ # Fill color
22
+ foxglove_msgs/Color fill_color
@@ -0,0 +1,10 @@
1
+ # Generated from PoseInFrame by @foxglove/schemas
2
+
3
+ # Timestamp of pose
4
+ builtin_interfaces/Time timestamp
5
+
6
+ # Frame of reference for pose position and orientation
7
+ string frame_id
8
+
9
+ # Pose in 3D space
10
+ geometry_msgs/Pose pose
@@ -0,0 +1,10 @@
1
+ # Generated from PosesInFrame by @foxglove/schemas
2
+
3
+ # Timestamp of pose
4
+ builtin_interfaces/Time timestamp
5
+
6
+ # Frame of reference for pose position and orientation
7
+ string frame_id
8
+
9
+ # Poses in 3D space
10
+ geometry_msgs/Pose[] poses
@@ -0,0 +1,19 @@
1
+ # Generated from RawImage by @foxglove/schemas
2
+
3
+ # Timestamp of image
4
+ builtin_interfaces/Time timestamp
5
+
6
+ # Image width
7
+ uint32 width
8
+
9
+ # Image height
10
+ uint32 height
11
+
12
+ # Encoding of the raw image data
13
+ string encoding
14
+
15
+ # Byte length of a single row
16
+ uint32 step
17
+
18
+ # Raw image data
19
+ uint8[] data
@@ -0,0 +1,10 @@
1
+ # Generated from Transform by @foxglove/schemas
2
+
3
+ # Transform time
4
+ builtin_interfaces/Time timestamp
5
+
6
+ # Translation component of the transform
7
+ geometry_msgs/Vector3 translation
8
+
9
+ # Rotation component of the transform
10
+ geometry_msgs/Quaternion rotation
@@ -0,0 +1,7 @@
1
+ # Generated from Vector2 by @foxglove/schemas
2
+
3
+ # x coordinate length
4
+ float64 x
5
+
6
+ # y coordinate length
7
+ float64 y
@@ -0,0 +1,72 @@
1
+ // Generated from CameraCalibration by @foxglove/schemas
2
+
3
+ import { Time } from "./Time";
4
+
5
+ /** Camera calibration parameters */
6
+ export type CameraCalibration = {
7
+ /** Timestamp of calibration data */
8
+ timestamp: Time;
9
+
10
+ /** Image width */
11
+ width: number;
12
+
13
+ /** Image height */
14
+ height: number;
15
+
16
+ /** Name of distortion model */
17
+ distortion_model: string;
18
+
19
+ /** Distortion parameters */
20
+ D: number[];
21
+
22
+ /**
23
+ * Intrinsic camera matrix (3x3 row-major matrix)
24
+ *
25
+ * A 3x3 row-major matrix for the raw (distorted) image.
26
+ *
27
+ * Projects 3D points in the camera coordinate frame to 2D pixel coordinates using the focal lengths (fx, fy) and principal point (cx, cy).
28
+ *
29
+ * ```
30
+ * [fx 0 cx]
31
+ * K = [ 0 fy cy]
32
+ * [ 0 0 1]
33
+ * ```
34
+ */
35
+ K: [number, number, number, number, number, number, number, number, number];
36
+
37
+ /**
38
+ * Rectification matrix (3x3 row-major matrix)
39
+ *
40
+ * A rotation matrix aligning the camera coordinate system to the ideal stereo image plane so that epipolar lines in both stereo images are parallel.
41
+ */
42
+ R: [number, number, number, number, number, number, number, number, number];
43
+
44
+ /**
45
+ * Projection/camera matrix (3x4 row-major matrix)
46
+ *
47
+ * ```
48
+ * [fx' 0 cx' Tx]
49
+ * P = [ 0 fy' cy' Ty]
50
+ * [ 0 0 1 0]
51
+ * ```
52
+ *
53
+ * By convention, this matrix specifies the intrinsic (camera) matrix of the processed (rectified) image. That is, the left 3x3 portion is the normal camera intrinsic matrix for the rectified image.
54
+ *
55
+ * It projects 3D points in the camera coordinate frame to 2D pixel coordinates using the focal lengths (fx', fy') and principal point (cx', cy') - these may differ from the values in K.
56
+ *
57
+ * For monocular cameras, Tx = Ty = 0. Normally, monocular cameras will also have R = the identity and P[1:3,1:3] = K.
58
+ *
59
+ * For a stereo pair, the fourth column [Tx Ty 0]' is related to the position of the optical center of the second camera in the first camera's frame. We assume Tz = 0 so both cameras are in the same stereo image plane. The first camera always has Tx = Ty = 0. For the right (second) camera of a horizontal stereo pair, Ty = 0 and Tx = -fx' * B, where B is the baseline between the cameras.
60
+ *
61
+ * Given a 3D point [X Y Z]', the projection (x, y) of the point onto the rectified image is given by:
62
+ *
63
+ * ```
64
+ * [u v w]' = P * [X Y Z 1]'
65
+ * x = u / w
66
+ * y = v / w
67
+ * ```
68
+ *
69
+ * This holds for both images of a stereo pair.
70
+ */
71
+ P: [number, number, number, number, number, number, number, number, number, number, number, number];
72
+ };
@@ -0,0 +1,26 @@
1
+ // Generated from CircleAnnotation by @foxglove/schemas
2
+
3
+ import { Color } from "./Color";
4
+ import { Point2 } from "./Point2";
5
+ import { Time } from "./Time";
6
+
7
+ /** A circle annotation on a 2D image */
8
+ export type CircleAnnotation = {
9
+ /** Timestamp of circle */
10
+ timestamp: Time;
11
+
12
+ /** Center of the circle in 2D image coordinates */
13
+ position: Point2;
14
+
15
+ /** Circle diameter */
16
+ diameter: number;
17
+
18
+ /** Line thickness */
19
+ thickness: number;
20
+
21
+ /** Fill color */
22
+ fill_color: Color;
23
+
24
+ /** Outline color */
25
+ outline_color: Color;
26
+ };
@@ -0,0 +1,16 @@
1
+ // Generated from Color by @foxglove/schemas
2
+
3
+ /** A color in RGBA format */
4
+ export type Color = {
5
+ /** Red value between 0 and 1 */
6
+ r: number;
7
+
8
+ /** Green value between 0 and 1 */
9
+ g: number;
10
+
11
+ /** Blue value between 0 and 1 */
12
+ b: number;
13
+
14
+ /** Alpha value between 0 and 1 */
15
+ a: number;
16
+ };
@@ -0,0 +1,15 @@
1
+ // Generated from CompressedImage by @foxglove/schemas
2
+
3
+ import { Time } from "./Time";
4
+
5
+ /** A compressed image */
6
+ export type CompressedImage = {
7
+ /** Timestamp of image */
8
+ timestamp: Time;
9
+
10
+ /** Compressed image data */
11
+ data: Uint8Array;
12
+
13
+ /** Image format */
14
+ format: string;
15
+ };
@@ -0,0 +1,4 @@
1
+ export type Duration = {
2
+ sec: number;
3
+ nsec: number;
4
+ };
@@ -0,0 +1,19 @@
1
+ // Generated from FrameTransform by @foxglove/schemas
2
+
3
+ import { Time } from "./Time";
4
+ import { Transform } from "./Transform";
5
+
6
+ /** A transform between two reference frames in 3D space */
7
+ export type FrameTransform = {
8
+ /** Timestamp of transform */
9
+ timestamp: Time;
10
+
11
+ /** Name of the parent frame */
12
+ parent_frame_id: string;
13
+
14
+ /** Name of the child frame */
15
+ child_frame_id: string;
16
+
17
+ /** Transform from parent frame to child frame */
18
+ transform: Transform;
19
+ };
@@ -0,0 +1,7 @@
1
+ // Generated from GeoJSON by @foxglove/schemas
2
+
3
+ /** GeoJSON data for annotating maps */
4
+ export type GeoJSON = {
5
+ /** GeoJSON data encoded as a UTF-8 string */
6
+ geojson: string;
7
+ };
@@ -0,0 +1,36 @@
1
+ // Generated from Grid by @foxglove/schemas
2
+
3
+ import { PackedElementField } from "./PackedElementField";
4
+ import { Pose } from "./Pose";
5
+ import { Time } from "./Time";
6
+ import { Vector2 } from "./Vector2";
7
+
8
+ /** A 2D grid of data */
9
+ export type Grid = {
10
+ /** Timestamp of grid */
11
+ timestamp: Time;
12
+
13
+ /** Frame of reference */
14
+ frame_id: string;
15
+
16
+ /** Origin of grid's corner relative to frame of reference; grid is positioned in the x-y plane relative to this origin */
17
+ pose: Pose;
18
+
19
+ /** Number of grid columns */
20
+ column_count: number;
21
+
22
+ /** Size of single grid cell along x and y axes, relative to `pose` */
23
+ cell_size: Vector2;
24
+
25
+ /** Number of bytes between rows in `data` */
26
+ row_stride: number;
27
+
28
+ /** Number of bytes between cells within a row in `data` */
29
+ cell_stride: number;
30
+
31
+ /** Fields in `data` */
32
+ fields: PackedElementField[];
33
+
34
+ /** Grid cell data, interpreted using `fields`, in row-major (y-major) order */
35
+ data: Uint8Array;
36
+ };
@@ -0,0 +1,13 @@
1
+ // Generated from ImageAnnotations by @foxglove/schemas
2
+
3
+ import { CircleAnnotation } from "./CircleAnnotation";
4
+ import { PointsAnnotation } from "./PointsAnnotation";
5
+
6
+ /** Array of annotations for a 2D image */
7
+ export type ImageAnnotations = {
8
+ /** Circle annotations */
9
+ circles: CircleAnnotation[];
10
+
11
+ /** Points annotations */
12
+ points: PointsAnnotation[];
13
+ };
@@ -0,0 +1,28 @@
1
+ // Generated from LaserScan by @foxglove/schemas
2
+
3
+ import { Pose } from "./Pose";
4
+ import { Time } from "./Time";
5
+
6
+ /** A single scan from a planar laser range-finder */
7
+ export type LaserScan = {
8
+ /** Timestamp of scan */
9
+ timestamp: Time;
10
+
11
+ /** Frame of reference */
12
+ frame_id: string;
13
+
14
+ /** Origin of scan relative to frame of reference; points are positioned in the x-y plane relative to this origin; angles are interpreted as counterclockwise rotations around the z axis with 0 rad being in the +x direction */
15
+ pose: Pose;
16
+
17
+ /** Bearing of first point, in radians */
18
+ start_angle: number;
19
+
20
+ /** Bearing of last point, in radians */
21
+ end_angle: number;
22
+
23
+ /** Distance of detections from origin; assumed to be at equally-spaced angles between `start_angle` and `end_angle` */
24
+ ranges: number[];
25
+
26
+ /** Intensity of detections */
27
+ intensities: number[];
28
+ };
@@ -0,0 +1,21 @@
1
+ // Generated from LocationFix by @foxglove/schemas
2
+
3
+ import { PositionCovarianceType } from "./PositionCovarianceType";
4
+
5
+ /** A navigation satellite fix for any Global Navigation Satellite System */
6
+ export type LocationFix = {
7
+ /** Latitude in degrees */
8
+ latitude: number;
9
+
10
+ /** Longitude in degrees */
11
+ longitude: number;
12
+
13
+ /** Altitude in meters */
14
+ altitude: number;
15
+
16
+ /** Position covariance (m^2) defined relative to a tangential plane through the reported position. The components are East, North, and Up (ENU), in row-major order. */
17
+ position_covariance: [number, number, number, number, number, number, number, number, number];
18
+
19
+ /** If `position_covariance` is available, `position_covariance_type` must be set to indicate the type of covariance. */
20
+ position_covariance_type: PositionCovarianceType;
21
+ };
@@ -0,0 +1,25 @@
1
+ // Generated from Log by @foxglove/schemas
2
+
3
+ import { LogLevel } from "./LogLevel";
4
+ import { Time } from "./Time";
5
+
6
+ /** A log message */
7
+ export type Log = {
8
+ /** Timestamp of log message */
9
+ timestamp: Time;
10
+
11
+ /** Log level */
12
+ level: LogLevel;
13
+
14
+ /** Log message */
15
+ message: string;
16
+
17
+ /** Process or node name */
18
+ name: string;
19
+
20
+ /** Filename */
21
+ file: string;
22
+
23
+ /** Line number in the file */
24
+ line: number;
25
+ };
@@ -0,0 +1,16 @@
1
+ // Generated from LogLevel by @foxglove/schemas
2
+
3
+ /** Log level */
4
+ export enum LogLevel {
5
+ UNKNOWN = 0,
6
+
7
+ DEBUG = 1,
8
+
9
+ INFO = 2,
10
+
11
+ WARNING = 3,
12
+
13
+ ERROR = 4,
14
+
15
+ FATAL = 5,
16
+ }
@@ -0,0 +1,22 @@
1
+ // Generated from NumericType by @foxglove/schemas
2
+
3
+ /** Numeric type */
4
+ export enum NumericType {
5
+ UNKNOWN = 0,
6
+
7
+ UINT8 = 1,
8
+
9
+ INT8 = 2,
10
+
11
+ UINT16 = 3,
12
+
13
+ INT16 = 4,
14
+
15
+ UINT32 = 5,
16
+
17
+ INT32 = 6,
18
+
19
+ FLOAT32 = 7,
20
+
21
+ FLOAT64 = 8,
22
+ }
@@ -0,0 +1,15 @@
1
+ // Generated from PackedElementField by @foxglove/schemas
2
+
3
+ import { NumericType } from "./NumericType";
4
+
5
+ /** List of fields for every element in a byte array */
6
+ export type PackedElementField = {
7
+ /** Name of the field */
8
+ name: string;
9
+
10
+ /** Byte offset from start of data buffer */
11
+ offset: number;
12
+
13
+ /** Type of data in the field. Integers are stored using little-endian byte order. */
14
+ type: NumericType;
15
+ };
@@ -0,0 +1,10 @@
1
+ // Generated from Point2 by @foxglove/schemas
2
+
3
+ /** A point representing a position in 2D space */
4
+ export type Point2 = {
5
+ /** x coordinate position */
6
+ x: number;
7
+
8
+ /** y coordinate position */
9
+ y: number;
10
+ };
@@ -0,0 +1,13 @@
1
+ // Generated from Point3 by @foxglove/schemas
2
+
3
+ /** A point representing a position in 3D space */
4
+ export type Point3 = {
5
+ /** x coordinate position */
6
+ x: number;
7
+
8
+ /** y coordinate position */
9
+ y: number;
10
+
11
+ /** z coordinate position */
12
+ z: number;
13
+ };
@@ -0,0 +1,26 @@
1
+ // Generated from PointCloud by @foxglove/schemas
2
+
3
+ import { PackedElementField } from "./PackedElementField";
4
+ import { Pose } from "./Pose";
5
+ import { Time } from "./Time";
6
+
7
+ /** A collection of N-dimensional points, which may contain additional fields with information like normals, intensity, etc. */
8
+ export type PointCloud = {
9
+ /** Timestamp of point cloud */
10
+ timestamp: Time;
11
+
12
+ /** Frame of reference */
13
+ frame_id: string;
14
+
15
+ /** The origin of the point cloud relative to the frame of reference */
16
+ pose: Pose;
17
+
18
+ /** Number of bytes between points in the `data` */
19
+ point_stride: number;
20
+
21
+ /** Fields in the `data` */
22
+ fields: PackedElementField[];
23
+
24
+ /** Point data, interpreted using `fields` */
25
+ data: Uint8Array;
26
+ };
@@ -0,0 +1,24 @@
1
+ // Generated from PointsAnnotation by @foxglove/schemas
2
+
3
+ import { Color } from "./Color";
4
+ import { Point2 } from "./Point2";
5
+ import { PointsAnnotationType } from "./PointsAnnotationType";
6
+ import { Time } from "./Time";
7
+
8
+ /** An array of points on a 2D image */
9
+ export type PointsAnnotation = {
10
+ /** Timestamp of annotation */
11
+ timestamp: Time;
12
+
13
+ /** Type of points annotation to draw */
14
+ type: PointsAnnotationType;
15
+
16
+ /** Points in 2D image coordinates */
17
+ points: Point2[];
18
+
19
+ /** Outline colors */
20
+ outline_colors: Color[];
21
+
22
+ /** Fill color */
23
+ fill_color: Color;
24
+ };
@@ -0,0 +1,14 @@
1
+ // Generated from PointsAnnotationType by @foxglove/schemas
2
+
3
+ /** Type of points annotation */
4
+ export enum PointsAnnotationType {
5
+ UNKNOWN = 0,
6
+
7
+ POINTS = 1,
8
+
9
+ LINE_LOOP = 2,
10
+
11
+ LINE_STRIP = 3,
12
+
13
+ LINE_LIST = 4,
14
+ }
@@ -0,0 +1,13 @@
1
+ // Generated from Pose by @foxglove/schemas
2
+
3
+ import { Quaternion } from "./Quaternion";
4
+ import { Vector3 } from "./Vector3";
5
+
6
+ /** A position and orientation for an object or reference frame in 3D space */
7
+ export type Pose = {
8
+ /** Point denoting position in 3D space */
9
+ position: Vector3;
10
+
11
+ /** Quaternion denoting orientation in 3D space */
12
+ orientation: Quaternion;
13
+ };
@@ -0,0 +1,16 @@
1
+ // Generated from PoseInFrame by @foxglove/schemas
2
+
3
+ import { Pose } from "./Pose";
4
+ import { Time } from "./Time";
5
+
6
+ /** A timestamped pose for an object or reference frame in 3D space */
7
+ export type PoseInFrame = {
8
+ /** Timestamp of pose */
9
+ timestamp: Time;
10
+
11
+ /** Frame of reference for pose position and orientation */
12
+ frame_id: string;
13
+
14
+ /** Pose in 3D space */
15
+ pose: Pose;
16
+ };
@@ -0,0 +1,16 @@
1
+ // Generated from PosesInFrame by @foxglove/schemas
2
+
3
+ import { Pose } from "./Pose";
4
+ import { Time } from "./Time";
5
+
6
+ /** An array of timestamped poses for an object or reference frame in 3D space */
7
+ export type PosesInFrame = {
8
+ /** Timestamp of pose */
9
+ timestamp: Time;
10
+
11
+ /** Frame of reference for pose position and orientation */
12
+ frame_id: string;
13
+
14
+ /** Poses in 3D space */
15
+ poses: Pose[];
16
+ };
@@ -0,0 +1,12 @@
1
+ // Generated from PositionCovarianceType by @foxglove/schemas
2
+
3
+ /** Type of position covariance */
4
+ export enum PositionCovarianceType {
5
+ UNKNOWN = 0,
6
+
7
+ APPROXIMATED = 1,
8
+
9
+ DIAGONAL_KNOWN = 2,
10
+
11
+ KNOWN = 3,
12
+ }
@@ -0,0 +1,16 @@
1
+ // Generated from Quaternion by @foxglove/schemas
2
+
3
+ /** A [quaternion](https://eater.net/quaternions) representing a rotation in 3D space */
4
+ export type Quaternion = {
5
+ /** x value */
6
+ x: number;
7
+
8
+ /** y value */
9
+ y: number;
10
+
11
+ /** z value */
12
+ z: number;
13
+
14
+ /** w value */
15
+ w: number;
16
+ };
@@ -0,0 +1,24 @@
1
+ // Generated from RawImage by @foxglove/schemas
2
+
3
+ import { Time } from "./Time";
4
+
5
+ /** A raw image */
6
+ export type RawImage = {
7
+ /** Timestamp of image */
8
+ timestamp: Time;
9
+
10
+ /** Image width */
11
+ width: number;
12
+
13
+ /** Image height */
14
+ height: number;
15
+
16
+ /** Encoding of the raw image data */
17
+ encoding: string;
18
+
19
+ /** Byte length of a single row */
20
+ step: number;
21
+
22
+ /** Raw image data */
23
+ data: Uint8Array;
24
+ };
@@ -0,0 +1,4 @@
1
+ export type Time = {
2
+ sec: number;
3
+ nsec: number;
4
+ };
@@ -0,0 +1,17 @@
1
+ // Generated from Transform by @foxglove/schemas
2
+
3
+ import { Quaternion } from "./Quaternion";
4
+ import { Time } from "./Time";
5
+ import { Vector3 } from "./Vector3";
6
+
7
+ /** A transform in 3D space */
8
+ export type Transform = {
9
+ /** Transform time */
10
+ timestamp: Time;
11
+
12
+ /** Translation component of the transform */
13
+ translation: Vector3;
14
+
15
+ /** Rotation component of the transform */
16
+ rotation: Quaternion;
17
+ };