nexus-uav 0.1.0__tar.gz

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 (148) hide show
  1. nexus_uav-0.1.0/LICENSE +201 -0
  2. nexus_uav-0.1.0/PKG-INFO +151 -0
  3. nexus_uav-0.1.0/README.md +102 -0
  4. nexus_uav-0.1.0/THIRD_PARTY_NOTICES.txt +109 -0
  5. nexus_uav-0.1.0/nexus_uav/__init__.py +126 -0
  6. nexus_uav-0.1.0/nexus_uav/_src/__init__.py +0 -0
  7. nexus_uav-0.1.0/nexus_uav/_src/api/__init__.py +36 -0
  8. nexus_uav-0.1.0/nexus_uav/_src/api/args.py +90 -0
  9. nexus_uav-0.1.0/nexus_uav/_src/api/sim.py +468 -0
  10. nexus_uav-0.1.0/nexus_uav/_src/assets/__init__.py +11 -0
  11. nexus_uav-0.1.0/nexus_uav/_src/assets/resolver.py +140 -0
  12. nexus_uav-0.1.0/nexus_uav/_src/build/__init__.py +5 -0
  13. nexus_uav-0.1.0/nexus_uav/_src/build/assembly.py +249 -0
  14. nexus_uav-0.1.0/nexus_uav/_src/build/components.py +88 -0
  15. nexus_uav-0.1.0/nexus_uav/_src/build/launch.py +274 -0
  16. nexus_uav-0.1.0/nexus_uav/_src/cli/__init__.py +5 -0
  17. nexus_uav-0.1.0/nexus_uav/_src/cli/main.py +40 -0
  18. nexus_uav-0.1.0/nexus_uav/_src/config/__init__.py +41 -0
  19. nexus_uav-0.1.0/nexus_uav/_src/config/catalog.py +260 -0
  20. nexus_uav-0.1.0/nexus_uav/_src/config/catalog.yaml +61 -0
  21. nexus_uav-0.1.0/nexus_uav/_src/config/models.py +188 -0
  22. nexus_uav-0.1.0/nexus_uav/_src/config/receipt.py +52 -0
  23. nexus_uav-0.1.0/nexus_uav/_src/config/resolve.py +170 -0
  24. nexus_uav-0.1.0/nexus_uav/_src/core/__init__.py +39 -0
  25. nexus_uav-0.1.0/nexus_uav/_src/core/clock.py +102 -0
  26. nexus_uav-0.1.0/nexus_uav/_src/core/components.py +54 -0
  27. nexus_uav-0.1.0/nexus_uav/_src/core/config.py +16 -0
  28. nexus_uav-0.1.0/nexus_uav/_src/core/geomag.py +136 -0
  29. nexus_uav-0.1.0/nexus_uav/_src/core/interfaces.py +145 -0
  30. nexus_uav-0.1.0/nexus_uav/_src/core/interrupts.py +64 -0
  31. nexus_uav-0.1.0/nexus_uav/_src/core/labels.py +17 -0
  32. nexus_uav-0.1.0/nexus_uav/_src/core/logging.py +17 -0
  33. nexus_uav-0.1.0/nexus_uav/_src/core/loop.py +824 -0
  34. nexus_uav-0.1.0/nexus_uav/_src/core/ports.py +33 -0
  35. nexus_uav-0.1.0/nexus_uav/_src/core/profiling.py +236 -0
  36. nexus_uav-0.1.0/nexus_uav/_src/core/registry.py +64 -0
  37. nexus_uav-0.1.0/nexus_uav/_src/core/schema.py +207 -0
  38. nexus_uav-0.1.0/nexus_uav/_src/core/seedtree.py +34 -0
  39. nexus_uav-0.1.0/nexus_uav/_src/core/signals.py +277 -0
  40. nexus_uav-0.1.0/nexus_uav/_src/core/stages.py +164 -0
  41. nexus_uav-0.1.0/nexus_uav/_src/diagnostics.py +76 -0
  42. nexus_uav-0.1.0/nexus_uav/_src/guidance/__init__.py +16 -0
  43. nexus_uav-0.1.0/nexus_uav/_src/guidance/base.py +122 -0
  44. nexus_uav-0.1.0/nexus_uav/_src/guidance/mission.py +121 -0
  45. nexus_uav-0.1.0/nexus_uav/_src/guidance/tracking.py +86 -0
  46. nexus_uav-0.1.0/nexus_uav/_src/logging/__init__.py +35 -0
  47. nexus_uav-0.1.0/nexus_uav/_src/logging/rerun_logging.py +1202 -0
  48. nexus_uav-0.1.0/nexus_uav/_src/peers/__init__.py +51 -0
  49. nexus_uav-0.1.0/nexus_uav/_src/peers/containers.py +181 -0
  50. nexus_uav-0.1.0/nexus_uav/_src/peers/kit/__init__.py +7 -0
  51. nexus_uav-0.1.0/nexus_uav/_src/peers/kit/fake.py +132 -0
  52. nexus_uav-0.1.0/nexus_uav/_src/peers/kit/peer-src/cesium_globe.py +241 -0
  53. nexus_uav-0.1.0/nexus_uav/_src/peers/kit/peer-src/kit_benchmark.py +82 -0
  54. nexus_uav-0.1.0/nexus_uav/_src/peers/kit/peer-src/link.py +51 -0
  55. nexus_uav-0.1.0/nexus_uav/_src/peers/kit/peer-src/render.py +454 -0
  56. nexus_uav-0.1.0/nexus_uav/_src/peers/kit/peer-src/serve.py +142 -0
  57. nexus_uav-0.1.0/nexus_uav/_src/peers/kit/runner.py +270 -0
  58. nexus_uav-0.1.0/nexus_uav/_src/peers/px4_sitl/__init__.py +28 -0
  59. nexus_uav-0.1.0/nexus_uav/_src/peers/px4_sitl/checkout.py +104 -0
  60. nexus_uav-0.1.0/nexus_uav/_src/peers/px4_sitl/fake.py +115 -0
  61. nexus_uav-0.1.0/nexus_uav/_src/peers/px4_sitl/image/Dockerfile +37 -0
  62. nexus_uav-0.1.0/nexus_uav/_src/peers/px4_sitl/instance.py +48 -0
  63. nexus_uav-0.1.0/nexus_uav/_src/peers/px4_sitl/offboard.py +830 -0
  64. nexus_uav-0.1.0/nexus_uav/_src/peers/px4_sitl/px4.ref +4 -0
  65. nexus_uav-0.1.0/nexus_uav/_src/peers/px4_sitl/qgc_plan.py +136 -0
  66. nexus_uav-0.1.0/nexus_uav/_src/peers/px4_sitl/runner.py +227 -0
  67. nexus_uav-0.1.0/nexus_uav/_src/physics/__init__.py +6 -0
  68. nexus_uav-0.1.0/nexus_uav/_src/physics/outputs.py +128 -0
  69. nexus_uav-0.1.0/nexus_uav/_src/physics/physics.py +284 -0
  70. nexus_uav-0.1.0/nexus_uav/_src/physics/vehicle.py +202 -0
  71. nexus_uav-0.1.0/nexus_uav/_src/recording/__init__.py +21 -0
  72. nexus_uav-0.1.0/nexus_uav/_src/recording/recorder.py +276 -0
  73. nexus_uav-0.1.0/nexus_uav/_src/rendering/__init__.py +170 -0
  74. nexus_uav-0.1.0/nexus_uav/_src/rendering/link.py +225 -0
  75. nexus_uav-0.1.0/nexus_uav/_src/scene/__init__.py +15 -0
  76. nexus_uav-0.1.0/nexus_uav/_src/scene/ingest.py +43 -0
  77. nexus_uav-0.1.0/nexus_uav/_src/scene/world.py +110 -0
  78. nexus_uav-0.1.0/nexus_uav/_src/transform.py +101 -0
  79. nexus_uav-0.1.0/nexus_uav/_src/usd/__init__.py +44 -0
  80. nexus_uav-0.1.0/nexus_uav/_src/usd/generatedSchema.usda +272 -0
  81. nexus_uav-0.1.0/nexus_uav/_src/usd/plugInfo.json +131 -0
  82. nexus_uav-0.1.0/nexus_uav/_src/usd/reader.py +171 -0
  83. nexus_uav-0.1.0/nexus_uav/_src/usd/released.json +177 -0
  84. nexus_uav-0.1.0/nexus_uav/_src/usd/released.py +94 -0
  85. nexus_uav-0.1.0/nexus_uav/_src/vehicle/__init__.py +9 -0
  86. nexus_uav-0.1.0/nexus_uav/_src/vehicle/commands/__init__.py +13 -0
  87. nexus_uav-0.1.0/nexus_uav/_src/vehicle/commands/rotors.py +115 -0
  88. nexus_uav-0.1.0/nexus_uav/_src/vehicle/controllers/__init__.py +0 -0
  89. nexus_uav-0.1.0/nexus_uav/_src/vehicle/controllers/px4/__init__.py +5 -0
  90. nexus_uav-0.1.0/nexus_uav/_src/vehicle/controllers/px4/controller.py +315 -0
  91. nexus_uav-0.1.0/nexus_uav/_src/vehicle/estimators/__init__.py +7 -0
  92. nexus_uav-0.1.0/nexus_uav/_src/vehicle/estimators/ground_truth.py +34 -0
  93. nexus_uav-0.1.0/nexus_uav/_src/vehicle/forces/__init__.py +13 -0
  94. nexus_uav-0.1.0/nexus_uav/_src/vehicle/forces/propellers.py +154 -0
  95. nexus_uav-0.1.0/nexus_uav/_src/vehicle/rotors.py +60 -0
  96. nexus_uav-0.1.0/nexus_uav/_src/vehicle/sensors/__init__.py +7 -0
  97. nexus_uav-0.1.0/nexus_uav/_src/vehicle/sensors/declared.py +103 -0
  98. nexus_uav-0.1.0/nexus_uav/_src/vehicle/sensors/lwir.py +123 -0
  99. nexus_uav-0.1.0/nexus_uav/_src/vehicle/sensors/rate.py +38 -0
  100. nexus_uav-0.1.0/nexus_uav/_src/vehicle/sensors/rtx_camera.py +72 -0
  101. nexus_uav-0.1.0/nexus_uav/_src/vehicle/sensors/rtx_lidar.py +54 -0
  102. nexus_uav-0.1.0/nexus_uav/_src/vehicle/sensors/rtx_sensor.py +147 -0
  103. nexus_uav-0.1.0/nexus_uav/_src/vehicle/sensors/rtx_stage.py +15 -0
  104. nexus_uav-0.1.0/nexus_uav/_src/vehicle/sensors/rtx_thermal.py +166 -0
  105. nexus_uav-0.1.0/nexus_uav/_src/vehicle/sensors/sensors.py +539 -0
  106. nexus_uav-0.1.0/nexus_uav/examples/__init__.py +81 -0
  107. nexus_uav-0.1.0/nexus_uav/examples/__main__.py +6 -0
  108. nexus_uav-0.1.0/nexus_uav/examples/_lib/__init__.py +39 -0
  109. nexus_uav-0.1.0/nexus_uav/examples/_lib/coupling.py +166 -0
  110. nexus_uav-0.1.0/nexus_uav/examples/_lib/eval_dump.py +136 -0
  111. nexus_uav-0.1.0/nexus_uav/examples/_lib/min_snap.py +222 -0
  112. nexus_uav-0.1.0/nexus_uav/examples/_lib/mixer.py +389 -0
  113. nexus_uav-0.1.0/nexus_uav/examples/_lib/motor.py +34 -0
  114. nexus_uav-0.1.0/nexus_uav/examples/_lib/observation.py +235 -0
  115. nexus_uav-0.1.0/nexus_uav/examples/_lib/origin.py +25 -0
  116. nexus_uav-0.1.0/nexus_uav/examples/_lib/reference.py +228 -0
  117. nexus_uav-0.1.0/nexus_uav/examples/_lib/rotors.py +106 -0
  118. nexus_uav-0.1.0/nexus_uav/examples/_lib/single_body.py +149 -0
  119. nexus_uav-0.1.0/nexus_uav/examples/controllers/acados_nmpc/__init__.py +11 -0
  120. nexus_uav-0.1.0/nexus_uav/examples/controllers/acados_nmpc/acados.ref +4 -0
  121. nexus_uav-0.1.0/nexus_uav/examples/controllers/acados_nmpc/assembly.py +105 -0
  122. nexus_uav-0.1.0/nexus_uav/examples/controllers/acados_nmpc/controller.py +360 -0
  123. nexus_uav-0.1.0/nexus_uav/examples/controllers/acados_nmpc/provision.py +148 -0
  124. nexus_uav-0.1.0/nexus_uav/examples/controllers/acados_nmpc/waypoint_tracking.py +167 -0
  125. nexus_uav-0.1.0/nexus_uav/examples/controllers/pid/__init__.py +29 -0
  126. nexus_uav-0.1.0/nexus_uav/examples/controllers/pid/assembly.py +144 -0
  127. nexus_uav-0.1.0/nexus_uav/examples/controllers/pid/controller.py +225 -0
  128. nexus_uav-0.1.0/nexus_uav/examples/controllers/pid/flight.py +87 -0
  129. nexus_uav-0.1.0/nexus_uav/examples/controllers/pid/law.py +110 -0
  130. nexus_uav-0.1.0/nexus_uav/examples/controllers/policy/assembly.py +137 -0
  131. nexus_uav-0.1.0/nexus_uav/examples/controllers/policy/controller.py +193 -0
  132. nexus_uav-0.1.0/nexus_uav/examples/controllers/policy/goto/flight.py +137 -0
  133. nexus_uav-0.1.0/nexus_uav/examples/controllers/policy/goto/geofence.py +75 -0
  134. nexus_uav-0.1.0/nexus_uav/examples/controllers/px4/box.plan +142 -0
  135. nexus_uav-0.1.0/nexus_uav/examples/controllers/px4/flight.py +165 -0
  136. nexus_uav-0.1.0/nexus_uav/examples/controllers/px4/flight_manual.py +120 -0
  137. nexus_uav-0.1.0/nexus_uav/examples/controllers/px4/log_warnings.py +57 -0
  138. nexus_uav-0.1.0/nexus_uav/examples/controllers/px4/mission.py +129 -0
  139. nexus_uav-0.1.0/nexus_uav/examples/controllers/sampling_mpc/__init__.py +10 -0
  140. nexus_uav-0.1.0/nexus_uav/examples/controllers/sampling_mpc/assembly.py +113 -0
  141. nexus_uav-0.1.0/nexus_uav/examples/controllers/sampling_mpc/controller.py +468 -0
  142. nexus_uav-0.1.0/nexus_uav/examples/controllers/sampling_mpc/obstacle_slalom.py +151 -0
  143. nexus_uav-0.1.0/nexus_uav/examples/design_opt/gain_tuning.py +444 -0
  144. nexus_uav-0.1.0/nexus_uav/examples/design_opt/mass_recovery.py +152 -0
  145. nexus_uav-0.1.0/nexus_uav/px4.py +42 -0
  146. nexus_uav-0.1.0/nexus_uav/py.typed +0 -0
  147. nexus_uav-0.1.0/pyproject.toml +199 -0
  148. nexus_uav-0.1.0/pyproject.toml.orig +169 -0
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright 2026 Peter Breuer
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
@@ -0,0 +1,151 @@
1
+ Metadata-Version: 2.4
2
+ Name: nexus-uav
3
+ Version: 0.1.0
4
+ Summary: Flight stack simulation with Newton
5
+ Keywords: newton,warp,openusd,flight-stack,drone,uav,px4,sitl,mavlink,simulation,robotics,reinforcement-learning
6
+ Author: Peter Breuer
7
+ License-Expression: Apache-2.0
8
+ License-File: LICENSE
9
+ License-File: THIRD_PARTY_NOTICES.txt
10
+ Classifier: Development Status :: 3 - Alpha
11
+ Classifier: Intended Audience :: Developers
12
+ Classifier: Intended Audience :: Science/Research
13
+ Classifier: Operating System :: POSIX :: Linux
14
+ Classifier: Programming Language :: Python :: 3
15
+ Classifier: Programming Language :: Python :: 3.12
16
+ Classifier: Topic :: Scientific/Engineering
17
+ Classifier: Topic :: Software Development :: Libraries :: Python Modules
18
+ Classifier: Topic :: Software Development :: Testing
19
+ Requires-Dist: newton[sim]==1.3.0
20
+ Requires-Dist: warp-lang>=1.14.0,<1.16
21
+ Requires-Dist: numpy
22
+ Requires-Dist: pyyaml>=6.0.2
23
+ Requires-Dist: pydantic>=2.0.0
24
+ Requires-Dist: pymavlink>=2.4.49
25
+ Requires-Dist: usd-core>=25.5,<26.5
26
+ Requires-Dist: newton-usd-schemas>=0.3.1
27
+ Requires-Dist: trimesh>=4.6.8
28
+ Requires-Dist: scipy>=1.11.0
29
+ Requires-Dist: rerun-sdk>=0.34.1,<0.35
30
+ Requires-Dist: docker>=7.1.0
31
+ Requires-Dist: casadi>=3.6,<=3.8.1 ; extra == 'acados'
32
+ Requires-Dist: ruckig>=0.14 ; extra == 'acados'
33
+ Requires-Dist: matplotlib ; extra == 'acados'
34
+ Requires-Dist: deprecated ; extra == 'acados'
35
+ Requires-Dist: nexus-uav[policy,examples] ; extra == 'all'
36
+ Requires-Dist: ruckig>=0.14 ; extra == 'examples'
37
+ Requires-Dist: torch ; extra == 'policy'
38
+ Requires-Python: ==3.12.*
39
+ Project-URL: Homepage, https://github.com/breuerpeter/nexus
40
+ Project-URL: Documentation, https://breuerpeter.github.io/nexus/
41
+ Project-URL: Repository, https://github.com/breuerpeter/nexus
42
+ Project-URL: Issues, https://github.com/breuerpeter/nexus/issues
43
+ Project-URL: Changelog, https://github.com/breuerpeter/nexus/blob/main/CHANGELOG.md
44
+ Provides-Extra: acados
45
+ Provides-Extra: all
46
+ Provides-Extra: examples
47
+ Provides-Extra: policy
48
+ Description-Content-Type: text/markdown
49
+
50
+ <img alt="The nexus logo: flight stack simulation with Newton" src="https://breuerpeter.github.io/nexus/assets/lockup-banner.svg" width="100%">
51
+
52
+ <br />
53
+ <br />
54
+
55
+ [![PyPI](https://img.shields.io/pypi/v/nexus-uav.svg)](https://pypi.org/project/nexus-uav/)
56
+ [![Docs](https://img.shields.io/badge/docs-breuerpeter.github.io-blue.svg)](https://breuerpeter.github.io/nexus/)
57
+
58
+ [![lint](https://github.com/breuerpeter/nexus/actions/workflows/lint.yml/badge.svg?branch=main)](https://github.com/breuerpeter/nexus/actions/workflows/lint.yml)
59
+ [![cpu-pytest](https://github.com/breuerpeter/nexus/actions/workflows/cpu-pytest.yml/badge.svg?branch=main)](https://github.com/breuerpeter/nexus/actions/workflows/cpu-pytest.yml)
60
+ [![gpu-pytest](https://github.com/breuerpeter/nexus/actions/workflows/gpu-pytest.yml/badge.svg?branch=main)](https://github.com/breuerpeter/nexus/actions/workflows/gpu-pytest.yml)
61
+ [![docs](https://github.com/breuerpeter/nexus/actions/workflows/docs.yml/badge.svg?branch=main)](https://github.com/breuerpeter/nexus/actions/workflows/docs.yml)
62
+ [![codecov](https://codecov.io/gh/breuerpeter/nexus/branch/main/graph/badge.svg)](https://codecov.io/gh/breuerpeter/nexus)
63
+
64
+ [![Newton](https://img.shields.io/badge/Newton-1.3.0-76b900.svg)](https://github.com/newton-physics/newton)
65
+ [![Isaac Sim](https://img.shields.io/badge/Isaac%20Sim-6.0.1-76b900.svg?logo=nvidia&logoColor=white)](https://developer.nvidia.com/isaac/sim)
66
+ [![Isaac Lab](https://img.shields.io/badge/Isaac%20Lab-3.0.0b2-76b900.svg?logo=nvidia&logoColor=white)](https://github.com/isaac-sim/IsaacLab)
67
+ [![Rerun](https://img.shields.io/badge/Rerun-0.34.1-1a1a1a.svg?logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAJb0lEQVR4Aa1Xa4xdVRX%2Bztn7nHPf986D6TQtdKjQWCgKFSEGSWrAkAZ%2BEMVqjA9ICL9QQX%2BYmJiYGIM%2FTIgkRvxh0OA7KgU1xvhIH2gLKK0QtA%2Bhr5lOOzPtfd97nvv4rX3HiZdaTIwns%2Bfcc87ee631rW89tgNei4uPzeWZ91QG98bcQcPARZYDKQffIbXPDozD3wbgH3I49p3D344jTw5nGf43UHzn8kOew75J%2BCWWYVx4fF9FvHsqiB69ev2jJ53hicfmUpUccvK8ISscI1I5cmPvueJ2novcdUWSFWwcEctHPsmVOyNprtwNRRpj38Pka7dEeRi6PjrwrUEVpK2Sh5u0MeHjjus2Uu0jyhVSbpJBI%2BMqsSjm7yFtSo1rLbfoGMcKl61kVmRtptVWPUARESVI6BwF2l%2FLQpSHAxR6bdQrBQzLRSSu1%2FCy9CnN%2BfcarddgiozCkIqEoMZm9E6EpjkFQ1yiLKwCvwWKEl1rvQBkqG5uFfFECaKo8gIBrGCiHGEjVoCj51GoBCheVUde8G%2FUApebZii4OQITwslFQE5BFOBqa7XDjSzszsjLOUa%2BjcVyvvb43RWX%2FUsZUdm6kzvxHhP6NkpYLjcwM9NH9OdF6KU%2BvGsnGzoPUzgRbeNw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xhGA84YnbUidxVkdHDyGECy3gg8YjwJkJ%2BVbiAc4VZ%2FIHCT1TnUAtb3Jd%2BTAV4LkipQMBsJ41nxhKsEciRxLpEezwR0DqpN%2BKGqiEyydBC7xIhRYV9IUc%2BhEla1gAhsvwvJ32U8wFOFK%2FCvunbsVicRTXqYTOV0gMnaDHVNEbHDvpfjY5emfHgaELKBGSTrCPnQ2XPgVUzQD%2Fu8iwR0nUjJESQyiV7GKnlVDy3CUnOEs1gCq%2F61%2BFI43q06Pt63MHVvRO4Il6iArp8WJlkh%2BDg0UIRol05RLKt4shWDykp4ZfzncpSGx0pz4sDQu2u5n8hoLHzlc2iCcM05QhJ8p5XQZ9pXJE%2Fs8Pz2DiYx2Tc5Df%2FWZ0HzgNRVjyUmqyRigVUQkgm5z7HSS3BhM1JbsFGwHCUhsLluU%2Bxrjt8Tli4EiariPeYmVO4ImtEIXta4p7romVa3sR02mREhVj2p1oDTz9i%2B7C5LzXnCN%2FjKjP3CowOw0%2FOdtIViYB8NSkoZ6SgT2gLDE8hl4SqzZyrKDjO6BArx3Q5aXuyZjXKFO9UrNX0Jg6HxYkH9nx168l%2FAnmCoXr8L2ceAAAAAElFTkSuQmCC&logoColor=white)](https://rerun.io)
68
+ [![Python](https://img.shields.io/pypi/pyversions/nexus-uav.svg)](https://pypi.org/project/nexus-uav/)
69
+
70
+ Built on [Newton](https://github.com/newton-physics/newton), [Warp](https://github.com/NVIDIA/warp)
71
+ and [OpenUSD](https://openusd.org/), nexus lets you develop drone subsystems and test them as part of
72
+ the full flight stack.
73
+
74
+ ## What nexus adds to Newton
75
+
76
+ - **One deterministic loop.** Each tick runs the sensors, the flight stack and Newton's step, always in
77
+ that order. On a GPU the tick replays as CUDA graphs. On CPU a flight with the Proportional Integral
78
+ Derivative (PID) controller repeats bit for bit, which a CI gate checks.
79
+ [Execution](https://breuerpeter.github.io/nexus/design/execution/)
80
+ - **Components you can swap.** Sensors, estimators, guidance, controllers, and force elements fill
81
+ fixed roles under one contract. Write your own, declare it in the vehicle's
82
+ Universal Scene Description (USD) file beside Newton's physics, and the loop runs it as it runs the
83
+ shipped ones.
84
+ [Your own component](https://breuerpeter.github.io/nexus/guide/your-own-component/)
85
+ - **PX4 in lockstep.** PX4 Software In The Loop (SITL) flies the vehicle in MAVLink lockstep with the
86
+ loop. QGroundControl and offboard scripts connect through the run's links.
87
+ [Running SITL flights](https://breuerpeter.github.io/nexus/guide/running/)
88
+ - **RTX sensors from Isaac Sim.** A vehicle that declares a camera or lidar starts an Isaac Sim
89
+ container beside the loop. It renders each frame at the loop's poses, and the loop never runs inside
90
+ Isaac Sim. [RTX cameras and lidar](https://breuerpeter.github.io/nexus/guide/running/#rtx-cameras-and-lidar)
91
+ - **One vehicle file, three uses.** PX4 flies the vehicle's USD file in CI, Isaac Lab trains a policy on
92
+ the same file, and the design examples take gradients through Newton from it. A catalog pins each
93
+ vehicle and scene by its hash. [Examples](https://breuerpeter.github.io/nexus/examples/)
94
+ - **Every tick recorded.** The Recorder keeps every row of a run, and the Logger writes it to a Rerun
95
+ recording. [Logging](https://breuerpeter.github.io/nexus/reference/api/logging/)
96
+
97
+ ## Installation
98
+
99
+ The framework requires **Python 3.12**, **Linux**, and a **CUDA-capable GPU**. It ships
100
+ on PyPI:
101
+
102
+ ```bash
103
+ pip install nexus-uav
104
+ ```
105
+
106
+ Optional extras: `policy` adds PyTorch, `examples` adds jerk-limited trajectories,
107
+ `acados` adds Nonlinear Model Predictive Control (NMPC) code generation, and `all` equals
108
+ `policy` plus `examples`.
109
+
110
+ Development uses [`uv`](https://docs.astral.sh/uv/):
111
+
112
+ ```bash
113
+ git clone https://github.com/breuerpeter/nexus.git
114
+ cd nexus
115
+ uv sync # install the framework
116
+ uv run nexus run --vehicle astro_max_base --scene empty # fly a vehicle against PX4 SITL
117
+ ```
118
+
119
+ ## Quickstart
120
+
121
+ Run the command-line tool with a vehicle and a scene. `astro_max_base` declares PX4 as its controller, and `empty` is flat ground:
122
+
123
+ ```bash
124
+ uv run nexus run --vehicle astro_max_base --scene empty
125
+ ```
126
+
127
+ Run a self-contained example. Every example records a Rerun `.rrd`, and `--list` names them:
128
+
129
+ ```bash
130
+ uv run -m nexus_uav.examples sampling_mpc
131
+ ```
132
+
133
+ The decoupled SITL flight workflow, nexus plus PX4 SITL plus QGroundControl, with the
134
+ port map, lives in [Running a SITL flight](https://breuerpeter.github.io/nexus/guide/running/).
135
+
136
+ ## Documentation
137
+
138
+ The full docs, with the design, the guide, the examples and the API reference, are at
139
+ **<https://breuerpeter.github.io/nexus/>**.
140
+
141
+ ## Contributing
142
+
143
+ Contributions are welcome. See [Contributing](https://breuerpeter.github.io/nexus/guide/contributing/)
144
+ for setup and the conventional-commit / pre-commit workflow, and
145
+ [Conventions](https://breuerpeter.github.io/nexus/design/conventions/) for the framework-versus-example rule.
146
+
147
+ ## License
148
+
149
+ Licensed under the [Apache License 2.0](https://github.com/breuerpeter/nexus/blob/main/LICENSE). © 2026 Peter Breuer
150
+
151
+ The hosted vehicle and scene assets and the Astro photograph in the banner aren't Apache-licensed. See [License](https://breuerpeter.github.io/nexus/license/).
@@ -0,0 +1,102 @@
1
+ <img alt="The nexus logo: flight stack simulation with Newton" src="https://breuerpeter.github.io/nexus/assets/lockup-banner.svg" width="100%">
2
+
3
+ <br />
4
+ <br />
5
+
6
+ [![PyPI](https://img.shields.io/pypi/v/nexus-uav.svg)](https://pypi.org/project/nexus-uav/)
7
+ [![Docs](https://img.shields.io/badge/docs-breuerpeter.github.io-blue.svg)](https://breuerpeter.github.io/nexus/)
8
+
9
+ [![lint](https://github.com/breuerpeter/nexus/actions/workflows/lint.yml/badge.svg?branch=main)](https://github.com/breuerpeter/nexus/actions/workflows/lint.yml)
10
+ [![cpu-pytest](https://github.com/breuerpeter/nexus/actions/workflows/cpu-pytest.yml/badge.svg?branch=main)](https://github.com/breuerpeter/nexus/actions/workflows/cpu-pytest.yml)
11
+ [![gpu-pytest](https://github.com/breuerpeter/nexus/actions/workflows/gpu-pytest.yml/badge.svg?branch=main)](https://github.com/breuerpeter/nexus/actions/workflows/gpu-pytest.yml)
12
+ [![docs](https://github.com/breuerpeter/nexus/actions/workflows/docs.yml/badge.svg?branch=main)](https://github.com/breuerpeter/nexus/actions/workflows/docs.yml)
13
+ [![codecov](https://codecov.io/gh/breuerpeter/nexus/branch/main/graph/badge.svg)](https://codecov.io/gh/breuerpeter/nexus)
14
+
15
+ [![Newton](https://img.shields.io/badge/Newton-1.3.0-76b900.svg)](https://github.com/newton-physics/newton)
16
+ [![Isaac Sim](https://img.shields.io/badge/Isaac%20Sim-6.0.1-76b900.svg?logo=nvidia&logoColor=white)](https://developer.nvidia.com/isaac/sim)
17
+ [![Isaac Lab](https://img.shields.io/badge/Isaac%20Lab-3.0.0b2-76b900.svg?logo=nvidia&logoColor=white)](https://github.com/isaac-sim/IsaacLab)
18
+ [![Rerun](https://img.shields.io/badge/Rerun-0.34.1-1a1a1a.svg?logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAJb0lEQVR4Aa1Xa4xdVRX%2Bztn7nHPf986D6TQtdKjQWCgKFSEGSWrAkAZ%2BEMVqjA9ICL9QQX%2BYmJiYGIM%2FTIgkRvxh0OA7KgU1xvhIH2gLKK0QtA%2Bhr5lOOzPtfd97nvv4rX3HiZdaTIwns%2Bfcc87ee631rW89tgNei4uPzeWZ91QG98bcQcPARZYDKQffIbXPDozD3wbgH3I49p3D344jTw5nGf43UHzn8kOew75J%2BCWWYVx4fF9FvHsqiB69ev2jJ53hicfmUpUccvK8ISscI1I5cmPvueJ2novcdUWSFWwcEctHPsmVOyNprtwNRRpj38Pka7dEeRi6PjrwrUEVpK2Sh5u0MeHjjus2Uu0jyhVSbpJBI%2BMqsSjm7yFtSo1rLbfoGMcKl61kVmRtptVWPUARESVI6BwF2l%2FLQpSHAxR6bdQrBQzLRSSu1%2FCy9CnN%2BfcarddgiozCkIqEoMZm9E6EpjkFQ1yiLKwCvwWKEl1rvQBkqG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RKWYDVLIehfYQZJFFqZgxdbDzVVlsEet6NRvCQjHN%2Fk9zjmafKCSUPSQ%2FiyJLpfU47W%2FA24ZvYDMjo0Vu%2FX76fThWuVYQKMClj0MWo0Iui7nEwiz9PptsJqiIczSFSncrWd4jiaTf15wr7bxhGA84YnbUidxVkdHDyGECy3gg8YjwJkJ%2BVbiAc4VZ%2FIHCT1TnUAtb3Jd%2BTAV4LkipQMBsJ41nxhKsEciRxLpEezwR0DqpN%2BKGqiEyydBC7xIhRYV9IUc%2BhEla1gAhsvwvJ32U8wFOFK%2FCvunbsVicRTXqYTOV0gMnaDHVNEbHDvpfjY5emfHgaELKBGSTrCPnQ2XPgVUzQD%2Fu8iwR0nUjJESQyiV7GKnlVDy3CUnOEs1gCq%2F61%2BFI43q06Pt63MHVvRO4Il6iArp8WJlkh%2BDg0UIRol05RLKt4shWDykp4ZfzncpSGx0pz4sDQu2u5n8hoLHzlc2iCcM05QhJ8p5XQZ9pXJE%2Fs8Pz2DiYx2Tc5Df%2FWZ0HzgNRVjyUmqyRigVUQkgm5z7HSS3BhM1JbsFGwHCUhsLluU%2Bxrjt8Tli4EiariPeYmVO4ImtEIXta4p7romVa3sR02mREhVj2p1oDTz9i%2B7C5LzXnCN%2FjKjP3CowOw0%2FOdtIViYB8NSkoZ6SgT2gLDE8hl4SqzZyrKDjO6BArx3Q5aXuyZjXKFO9UrNX0Jg6HxYkH9nx168l%2FAnmCoXr8L2ceAAAAAElFTkSuQmCC&logoColor=white)](https://rerun.io)
19
+ [![Python](https://img.shields.io/pypi/pyversions/nexus-uav.svg)](https://pypi.org/project/nexus-uav/)
20
+
21
+ Built on [Newton](https://github.com/newton-physics/newton), [Warp](https://github.com/NVIDIA/warp)
22
+ and [OpenUSD](https://openusd.org/), nexus lets you develop drone subsystems and test them as part of
23
+ the full flight stack.
24
+
25
+ ## What nexus adds to Newton
26
+
27
+ - **One deterministic loop.** Each tick runs the sensors, the flight stack and Newton's step, always in
28
+ that order. On a GPU the tick replays as CUDA graphs. On CPU a flight with the Proportional Integral
29
+ Derivative (PID) controller repeats bit for bit, which a CI gate checks.
30
+ [Execution](https://breuerpeter.github.io/nexus/design/execution/)
31
+ - **Components you can swap.** Sensors, estimators, guidance, controllers, and force elements fill
32
+ fixed roles under one contract. Write your own, declare it in the vehicle's
33
+ Universal Scene Description (USD) file beside Newton's physics, and the loop runs it as it runs the
34
+ shipped ones.
35
+ [Your own component](https://breuerpeter.github.io/nexus/guide/your-own-component/)
36
+ - **PX4 in lockstep.** PX4 Software In The Loop (SITL) flies the vehicle in MAVLink lockstep with the
37
+ loop. QGroundControl and offboard scripts connect through the run's links.
38
+ [Running SITL flights](https://breuerpeter.github.io/nexus/guide/running/)
39
+ - **RTX sensors from Isaac Sim.** A vehicle that declares a camera or lidar starts an Isaac Sim
40
+ container beside the loop. It renders each frame at the loop's poses, and the loop never runs inside
41
+ Isaac Sim. [RTX cameras and lidar](https://breuerpeter.github.io/nexus/guide/running/#rtx-cameras-and-lidar)
42
+ - **One vehicle file, three uses.** PX4 flies the vehicle's USD file in CI, Isaac Lab trains a policy on
43
+ the same file, and the design examples take gradients through Newton from it. A catalog pins each
44
+ vehicle and scene by its hash. [Examples](https://breuerpeter.github.io/nexus/examples/)
45
+ - **Every tick recorded.** The Recorder keeps every row of a run, and the Logger writes it to a Rerun
46
+ recording. [Logging](https://breuerpeter.github.io/nexus/reference/api/logging/)
47
+
48
+ ## Installation
49
+
50
+ The framework requires **Python 3.12**, **Linux**, and a **CUDA-capable GPU**. It ships
51
+ on PyPI:
52
+
53
+ ```bash
54
+ pip install nexus-uav
55
+ ```
56
+
57
+ Optional extras: `policy` adds PyTorch, `examples` adds jerk-limited trajectories,
58
+ `acados` adds Nonlinear Model Predictive Control (NMPC) code generation, and `all` equals
59
+ `policy` plus `examples`.
60
+
61
+ Development uses [`uv`](https://docs.astral.sh/uv/):
62
+
63
+ ```bash
64
+ git clone https://github.com/breuerpeter/nexus.git
65
+ cd nexus
66
+ uv sync # install the framework
67
+ uv run nexus run --vehicle astro_max_base --scene empty # fly a vehicle against PX4 SITL
68
+ ```
69
+
70
+ ## Quickstart
71
+
72
+ Run the command-line tool with a vehicle and a scene. `astro_max_base` declares PX4 as its controller, and `empty` is flat ground:
73
+
74
+ ```bash
75
+ uv run nexus run --vehicle astro_max_base --scene empty
76
+ ```
77
+
78
+ Run a self-contained example. Every example records a Rerun `.rrd`, and `--list` names them:
79
+
80
+ ```bash
81
+ uv run -m nexus_uav.examples sampling_mpc
82
+ ```
83
+
84
+ The decoupled SITL flight workflow, nexus plus PX4 SITL plus QGroundControl, with the
85
+ port map, lives in [Running a SITL flight](https://breuerpeter.github.io/nexus/guide/running/).
86
+
87
+ ## Documentation
88
+
89
+ The full docs, with the design, the guide, the examples and the API reference, are at
90
+ **<https://breuerpeter.github.io/nexus/>**.
91
+
92
+ ## Contributing
93
+
94
+ Contributions are welcome. See [Contributing](https://breuerpeter.github.io/nexus/guide/contributing/)
95
+ for setup and the conventional-commit / pre-commit workflow, and
96
+ [Conventions](https://breuerpeter.github.io/nexus/design/conventions/) for the framework-versus-example rule.
97
+
98
+ ## License
99
+
100
+ Licensed under the [Apache License 2.0](https://github.com/breuerpeter/nexus/blob/main/LICENSE). © 2026 Peter Breuer
101
+
102
+ The hosted vehicle and scene assets and the Astro photograph in the banner aren't Apache-licensed. See [License](https://breuerpeter.github.io/nexus/license/).
@@ -0,0 +1,109 @@
1
+ Third-party notices
2
+ ===================
3
+
4
+ nexus_uav/_src/core/geomag.py
5
+ ------------------------------
6
+
7
+ The World Magnetic Model tables and the lookup scheme come from PX4's geo_mag_declination.cpp
8
+ (https://github.com/PX4/PX4-Autopilot), ported via PegasusSimulator
9
+ (https://github.com/PegasusSimulator/PegasusSimulator). Both are distributed under the BSD-3-Clause
10
+ license, whose notice follows verbatim.
11
+
12
+ Copyright (c) 2014-2022 PX4 Development Team. All rights reserved.
13
+ Copyright (c) 2023, Marcelo Fialho Jacinto. All rights reserved.
14
+
15
+ Redistribution and use in source and binary forms, with or without modification, are permitted
16
+ provided that the following conditions are met:
17
+
18
+ 1. Redistributions of source code must retain the above copyright notice, this list of
19
+ conditions and the following disclaimer.
20
+ 2. Redistributions in binary form must reproduce the above copyright notice, this list of
21
+ conditions and the following disclaimer in the documentation and/or other materials
22
+ provided with the distribution.
23
+ 3. Neither the name PX4 nor the names of its contributors may be used to endorse or promote
24
+ products derived from this software without specific prior written permission.
25
+
26
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS
27
+ OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
28
+ MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
29
+ COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
30
+ EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
31
+ GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
32
+ AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
33
+ NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
34
+ OF THE POSSIBILITY OF SUCH DAMAGE.
35
+
36
+ scripts/ci/discover_aws_runner_config.py
37
+ ----------------------------------------
38
+
39
+ Adapted from scripts/ci/discover_aws_runner_config.py in Newton
40
+ (https://github.com/newton-physics/newton), distributed under the Apache License, Version 2.0, the
41
+ license of this project, whose text is in LICENSE.
42
+
43
+ Copyright (c) 2026 The Newton Developers
44
+
45
+ docs/javascripts/model-viewer.min.js
46
+ ------------------------------------
47
+
48
+ The minified bundle of Google's model-viewer (https://github.com/google/model-viewer), distributed
49
+ under the Apache License, Version 2.0, whose text is in LICENSE. The bundle carries the notices of
50
+ its parts in its own comments.
51
+
52
+ Copyright 2019-2023 Google LLC. All Rights Reserved.
53
+
54
+ It bundles Lit (https://github.com/lit/lit), distributed under the BSD-3-Clause license, whose
55
+ notice follows verbatim.
56
+
57
+ Copyright 2017-2021 Google LLC
58
+
59
+ Redistribution and use in source and binary forms, with or without modification, are permitted
60
+ provided that the following conditions are met:
61
+
62
+ 1. Redistributions of source code must retain the above copyright notice, this list of
63
+ conditions and the following disclaimer.
64
+ 2. Redistributions in binary form must reproduce the above copyright notice, this list of
65
+ conditions and the following disclaimer in the documentation and/or other materials
66
+ provided with the distribution.
67
+ 3. Neither the name of the copyright holder nor the names of its contributors may be used to
68
+ endorse or promote products derived from this software without specific prior written
69
+ permission.
70
+
71
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS
72
+ OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
73
+ MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
74
+ COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
75
+ EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
76
+ GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
77
+ AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
78
+ NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
79
+ OF THE POSSIBILITY OF SUCH DAMAGE.
80
+
81
+ It bundles three.js r169 (https://github.com/mrdoob/three.js), distributed under the MIT license,
82
+ whose notice follows verbatim.
83
+
84
+ Copyright 2010-2024 Three.js Authors
85
+
86
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
87
+ associated documentation files (the "Software"), to deal in the Software without restriction,
88
+ including without limitation the rights to use, copy, modify, merge, publish, distribute,
89
+ sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is
90
+ furnished to do so, subject to the following conditions:
91
+
92
+ The above copyright notice and this permission notice shall be included in all copies or
93
+ substantial portions of the Software.
94
+
95
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT
96
+ NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
97
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
98
+ DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT
99
+ OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
100
+
101
+ scripts/logo/OFL.txt
102
+ ------------------
103
+
104
+ The license of the Michroma font, scripts/logo/Michroma-Regular.ttf
105
+ (https://github.com/googlefonts/Michroma-font), which the logo scripts render. The font is
106
+ distributed under the SIL Open Font License, Version 1.1, whose text and copyright notice
107
+ scripts/logo/OFL.txt holds.
108
+
109
+ Copyright 2011 The Michroma Project Authors