avlite 0.4.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 (81) hide show
  1. avlite-0.4.0/LICENSE +21 -0
  2. avlite-0.4.0/PKG-INFO +356 -0
  3. avlite-0.4.0/README.md +334 -0
  4. avlite-0.4.0/avlite/__init__.py +19 -0
  5. avlite-0.4.0/avlite/__main__.py +31 -0
  6. avlite-0.4.0/avlite/c10_perception/__init__.py +0 -0
  7. avlite-0.4.0/avlite/c10_perception/c11_perception_model.py +470 -0
  8. avlite-0.4.0/avlite/c10_perception/c12_perception_strategy.py +176 -0
  9. avlite-0.4.0/avlite/c10_perception/c13_localization_strategy.py +76 -0
  10. avlite-0.4.0/avlite/c10_perception/c14_mapping_strategy.py +36 -0
  11. avlite-0.4.0/avlite/c10_perception/c15_perception_algs.py +387 -0
  12. avlite-0.4.0/avlite/c10_perception/c16_localization_algs.py +225 -0
  13. avlite-0.4.0/avlite/c10_perception/c17_mapping_algs.py +0 -0
  14. avlite-0.4.0/avlite/c10_perception/c18_hdmap_parser.py +512 -0
  15. avlite-0.4.0/avlite/c10_perception/c19_settings.py +47 -0
  16. avlite-0.4.0/avlite/c20_planning/__init__.py +0 -0
  17. avlite-0.4.0/avlite/c20_planning/c21_planning_model.py +166 -0
  18. avlite-0.4.0/avlite/c20_planning/c22_global_planning_strategy.py +51 -0
  19. avlite-0.4.0/avlite/c20_planning/c23_local_planning_strategy.py +353 -0
  20. avlite-0.4.0/avlite/c20_planning/c24_global_hdmap_planners.py +344 -0
  21. avlite-0.4.0/avlite/c20_planning/c25_global_race_planners.py +140 -0
  22. avlite-0.4.0/avlite/c20_planning/c26_local_path_planners.py +49 -0
  23. avlite-0.4.0/avlite/c20_planning/c27_local_behavioral_and_velocity_planners.py +306 -0
  24. avlite-0.4.0/avlite/c20_planning/c28_local_lattice_planners.py +823 -0
  25. avlite-0.4.0/avlite/c20_planning/c29_settings.py +50 -0
  26. avlite-0.4.0/avlite/c30_control/__init__.py +0 -0
  27. avlite-0.4.0/avlite/c30_control/c31_control_model.py +35 -0
  28. avlite-0.4.0/avlite/c30_control/c32_control_strategy.py +77 -0
  29. avlite-0.4.0/avlite/c30_control/c33_pid.py +128 -0
  30. avlite-0.4.0/avlite/c30_control/c34_stanley.py +140 -0
  31. avlite-0.4.0/avlite/c30_control/c38_control_mapping.py +31 -0
  32. avlite-0.4.0/avlite/c30_control/c39_settings.py +45 -0
  33. avlite-0.4.0/avlite/c40_execution/__init__.py +0 -0
  34. avlite-0.4.0/avlite/c40_execution/c41_world_bridge.py +182 -0
  35. avlite-0.4.0/avlite/c40_execution/c42_execution_strategy.py +330 -0
  36. avlite-0.4.0/avlite/c40_execution/c44_sync_executer.py +104 -0
  37. avlite-0.4.0/avlite/c40_execution/c45_async_threaded_executer.py +290 -0
  38. avlite-0.4.0/avlite/c40_execution/c46_basic_sim.py +249 -0
  39. avlite-0.4.0/avlite/c40_execution/c49_settings.py +66 -0
  40. avlite-0.4.0/avlite/c50_common/__init__.py +1 -0
  41. avlite-0.4.0/avlite/c50_common/c51_capabilities.py +77 -0
  42. avlite-0.4.0/avlite/c50_common/c52_sensor_datatypes.py +121 -0
  43. avlite-0.4.0/avlite/c50_common/c53_trajectory_tracker.py +856 -0
  44. avlite-0.4.0/avlite/c50_common/c54_collision_checking.py +185 -0
  45. avlite-0.4.0/avlite/c50_common/c55_fps_tracker.py +42 -0
  46. avlite-0.4.0/avlite/c60_apps/__init__.py +0 -0
  47. avlite-0.4.0/avlite/c60_apps/c61_app_strategy.py +89 -0
  48. avlite-0.4.0/avlite/c60_apps/c62_factory.py +365 -0
  49. avlite-0.4.0/avlite/c60_apps/c63_plugins.py +596 -0
  50. avlite-0.4.0/avlite/c60_apps/c64_settings_schema.py +251 -0
  51. avlite-0.4.0/avlite/c60_apps/c65_setting_utils.py +471 -0
  52. avlite-0.4.0/avlite/c60_apps/c68_paths.py +390 -0
  53. avlite-0.4.0/avlite/c60_apps/c69_settings.py +35 -0
  54. avlite-0.4.0/avlite/plugins/__init__.py +5 -0
  55. avlite-0.4.0/avlite/plugins/p60_headless_mode/__init__.py +8 -0
  56. avlite-0.4.0/avlite/plugins/p60_headless_mode/p61_headless.py +439 -0
  57. avlite-0.4.0/avlite/plugins/p60_headless_mode/settings.py +13 -0
  58. avlite-0.4.0/avlite/plugins/p60_setting_cli/__init__.py +8 -0
  59. avlite-0.4.0/avlite/plugins/p60_setting_cli/p61_setting_cli.py +222 -0
  60. avlite-0.4.0/avlite/plugins/p60_setting_cli/settings.py +8 -0
  61. avlite-0.4.0/avlite/plugins/p60_visualizer_tk/__init__.py +14 -0
  62. avlite-0.4.0/avlite/plugins/p60_visualizer_tk/p61_visualizer_app.py +596 -0
  63. avlite-0.4.0/avlite/plugins/p60_visualizer_tk/p62_setting_app.py +95 -0
  64. avlite-0.4.0/avlite/plugins/p60_visualizer_tk/p63_plugins_app.py +1958 -0
  65. avlite-0.4.0/avlite/plugins/p60_visualizer_tk/p64_setting_views.py +1316 -0
  66. avlite-0.4.0/avlite/plugins/p60_visualizer_tk/p65_ui_lib.py +846 -0
  67. avlite-0.4.0/avlite/plugins/p60_visualizer_tk/p66_plot_views.py +481 -0
  68. avlite-0.4.0/avlite/plugins/p60_visualizer_tk/p67_stack_views.py +922 -0
  69. avlite-0.4.0/avlite/plugins/p60_visualizer_tk/p68_log_view.py +511 -0
  70. avlite-0.4.0/avlite/plugins/p60_visualizer_tk/p69_plot_lib.py +1278 -0
  71. avlite-0.4.0/avlite/plugins/p60_visualizer_tk/settings.py +482 -0
  72. avlite-0.4.0/avlite.egg-info/PKG-INFO +356 -0
  73. avlite-0.4.0/avlite.egg-info/SOURCES.txt +80 -0
  74. avlite-0.4.0/avlite.egg-info/dependency_links.txt +1 -0
  75. avlite-0.4.0/avlite.egg-info/entry_points.txt +2 -0
  76. avlite-0.4.0/avlite.egg-info/requires.txt +12 -0
  77. avlite-0.4.0/avlite.egg-info/top_level.txt +6 -0
  78. avlite-0.4.0/pyproject.toml +45 -0
  79. avlite-0.4.0/scripts/migrate_configs.py +160 -0
  80. avlite-0.4.0/setup.cfg +10 -0
  81. avlite-0.4.0/setup.py +7 -0
avlite-0.4.0/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 AV-Lab
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
avlite-0.4.0/PKG-INFO ADDED
@@ -0,0 +1,356 @@
1
+ Metadata-Version: 2.4
2
+ Name: avlite
3
+ Version: 0.4.0
4
+ Summary: AVLite - Modular Autonomous Vehicle Stack for rapid prototyping, research, and education
5
+ Maintainer-email: mkhonji <majid.khonji@gmail.com>
6
+ License: MIT
7
+ Requires-Python: >=3.10
8
+ Description-Content-Type: text/markdown
9
+ License-File: LICENSE
10
+ Requires-Dist: numpy>=2.0
11
+ Requires-Dist: matplotlib>=3.8
12
+ Requires-Dist: PyYAML>=6.0
13
+ Requires-Dist: shapely>=2.0
14
+ Requires-Dist: networkx>=3.0
15
+ Requires-Dist: ttkthemes>=3.2
16
+ Requires-Dist: scipy>=1.11
17
+ Requires-Dist: pydantic>=2.0
18
+ Provides-Extra: dev
19
+ Requires-Dist: pytest>=8.0; extra == "dev"
20
+ Requires-Dist: pytest-cov>=5.0; extra == "dev"
21
+ Dynamic: license-file
22
+
23
+ <p align="center">
24
+ <img src="data/imgs/logo-black-bg.png" alt="AVLite Logo" width="200">
25
+ </p>
26
+
27
+ # AVLite - Modular Autonomous Vehicle Stack
28
+
29
+ AVLite is a lightweight, extensible autonomous vehicle software stack designed for rapid prototyping, research, and education. It provides clean abstractions for perception, planning, and control while maintaining flexibility through a plugin-based architecture.
30
+
31
+ **ROS2 & Autoware Ready**: Optional ROS2 executer plugin (`avlite-executer-ROS2` in `related-repos/`) with native Autoware message support (Trajectory, ControlCommand, etc.).
32
+
33
+ ![](docs/imgs/tk_visualizer.png)
34
+
35
+ ## Architecture Overview
36
+
37
+ AVLite follows a modular architecture with clear separation of concerns:
38
+
39
+ ```mermaid
40
+ flowchart TB
41
+ subgraph ENTRY[" "]
42
+ direction LR
43
+ VIZ["🖥️ Visualization · c50\nReal-time Tkinter GUI"]
44
+ HL["⌨️ Headless Mode\nTerminal dashboard · rich"]
45
+ VIZ ~~~ HL
46
+ end
47
+
48
+ EXEC["⚙️ Execution Layer · c40\nSyncExecuter · AsyncThreadedExecuter · Factory"]
49
+
50
+ subgraph COMPONENTS[" "]
51
+ direction LR
52
+ PERC["Perception · c10 (optional)\nLocalization · Mapping\nDetection · Tracking · Prediction"]
53
+ PLAN["Planning · c20\nGlobal · Local · Lattice"]
54
+ CTRL["Control · c30\nStanley · PID"]
55
+ WB["World Bridge · c40\nBasicSim · Carla · Gazebo · ROS2"]
56
+ PERC ~~~ PLAN ~~~ CTRL ~~~ WB
57
+ end
58
+
59
+ COMMON["🔧 Common · c60\nSettings · Capabilities · TrajectoryTracker · CollisionChecker"]
60
+
61
+ ENTRY --> EXEC
62
+ EXEC --> COMPONENTS
63
+ COMPONENTS --> COMMON
64
+ ```
65
+
66
+ ### Core Components
67
+
68
+ - **c10_perception**: Interfaces and built-in algorithms for detection (`FastBEVLidarDetection`), tracking (`KalmanTracker`), prediction, and localization (`LidarLocalization`); `Map` / `RaceMap` in c11; OpenDRIVE `HDMap` parser in c18
69
+ - **c20_planning**: Global planning (`GlobalCenterlineRacePlanner`, `HDMapGlobalPlanner`) and local planning (`VelocityLocalPlanner`, lattice-based `GreedyLatticePlanner`)
70
+ - **c30_control**: Vehicle control algorithms (Stanley, PID)
71
+ - **c40_execution**: Execution orchestration with sync/async modes, simulator bridges, and `replan_global()`
72
+ - **c60_apps**: App infrastructure (`c61_app_strategy`, `c62_factory`, `c63_plugins`, `c64_settings_schema`, `c65_setting_utils`, `c68_paths`); no tkinter
73
+ - **c50_common**: Algorithm utilities only (`c51`–`c55`: capabilities, sensor data, trajectory, collision, FPS)
74
+ - **plugins** (`avlite/plugins/`): Built-in Tk visualizer package (`p60_visualizer_tk`), headless mode, config CLI; bridges and ROS executer live in `related-repos/`
75
+
76
+ ### Key Features
77
+
78
+ **Strategy Pattern Architecture**: All major components (perception, localization, planning, control) use the strategy pattern with automatic registration, allowing runtime selection and hot-reloading without code changes.
79
+
80
+ **Capability-Based System**: Components declare their requirements and capabilities, enabling automatic compatibility checking between perception/localization strategies and world bridges.
81
+
82
+ **Optional Perception & Localization**: Both perception and localization are optional in the execution pipeline. Run with ground truth data or plug in your own strategies as needed.
83
+
84
+ **YAML-Based Configuration**: Profile-based configuration system allows quick switching between different algorithm combinations and parameters.
85
+
86
+ **Hot Reloading**: Modify code and configuration files while the system is running without restarting.
87
+
88
+ **Multiple Simulator Support**: Works with BasicSim (built-in), CARLA, Gazebo, and ROS2/Autoware through abstract world bridge interface.
89
+
90
+ **Extensible Plugin System**: Add custom perception, planning, or control algorithms as plugins without modifying core code.
91
+
92
+ ## Why AVLite?
93
+
94
+ - **Lightweight**: Small codebase focused on clarity over production complexity
95
+ - **No middleware lock-in**: Works standalone; ROS2/Autoware integration is optional via `avlite-executer-ROS2`
96
+ - **Multi-simulator**: Same code runs on BasicSim, Carla, or Gazebo
97
+ - **Rapid iteration**: Hot-reload code and tune parameters without restarting
98
+ - **Minimal dependencies**: Core needs only NumPy, Matplotlib, Tkinter
99
+ - **Educational**: Numbered modules and clean abstractions for learning
100
+
101
+ ## Installation
102
+
103
+ **Minimal** (core functionality):
104
+ ```bash
105
+ pip install -r requirements-minimal.txt
106
+ ```
107
+
108
+ **Full** (dev tools, docs):
109
+ ```bash
110
+ pip install -r requirements-full.txt
111
+ ```
112
+
113
+ **Optional integrations** (install separately as needed):
114
+ - **CARLA**: [CARLA releases](https://github.com/carla-simulator/carla/releases) + `avlite-bridge-carla` plugin
115
+ - **Gazebo**: ROS 2 + `avlite-bridge-gazebo` plugin
116
+ - **ROS2 + Autoware**: ROS 2 (Humble+) and optionally `autoware_auto_msgs`; clone `avlite-executer-ROS2` and/or `avlite-bridge-ROS2` from `related-repos/` (see [Optional plugins](docs/optional-plugins.md))
117
+ - **Joystick**: `avlite-controller-joystick` plugin (`pip install -r related-repos/avlite-controller-joystick/requirements.txt`)
118
+
119
+ Run from source:
120
+ ```bash
121
+ python -m avlite
122
+ ```
123
+
124
+ Install system-wide:
125
+ ```bash
126
+ pip install .
127
+ ```
128
+
129
+ ## Quick Start
130
+
131
+ 1. Launch the visualizer: `python -m avlite`
132
+ 2. Select a profile from the Config tab (e.g., "default")
133
+ 3. Click "Start/Stop Stack" to begin execution
134
+ 4. Right-click on the plot to spawn NPC vehicles
135
+ 5. Adjust parameters in real-time through the GUI
136
+
137
+ ## Headless Mode
138
+
139
+ For long-running deployments (robots, servers, CI) AVLite ships a minimal
140
+ terminal dashboard that runs the executer without a GUI.
141
+
142
+ ```bash
143
+ # Run with the 'default' profile
144
+ python -m avlite headless
145
+
146
+ # Pick a profile (saved from the visualizer)
147
+ python -m avlite headless -p my_robot_profile
148
+ python -m avlite headless my_robot_profile # positional shortcut
149
+
150
+ # Useful options
151
+ python -m avlite headless -p my_robot_profile \
152
+ --log-level WARNING \
153
+ --control-dt 0.01 --replan-dt 0.5 --perceive
154
+ ```
155
+
156
+ The dashboard shows live FPS, ego state, lap counter, and recent log lines.
157
+ Press **Ctrl+C** to stop.
158
+
159
+ Requires the optional [`rich`](https://github.com/Textualize/rich) package:
160
+
161
+ ```bash
162
+ pip install rich
163
+ ```
164
+
165
+ ### Recommended workflow
166
+
167
+ 1. **Configure** with the visualizer (`python -m avlite`): pick the bridge,
168
+ strategies, and tune parameters until it behaves the way you want.
169
+ 2. **Save** the result as a named profile from the Config tab.
170
+ 3. **Transfer** (optional): export the profile as a single `.yaml` from the settings
171
+ window (`T`) or with `python -m avlite setting-cli export-profile <name>`, then import
172
+ on the target machine with **Import profile** or `setting-cli import-profile`.
173
+ 4. **Deploy** that profile on your robot/server with
174
+ `python -m avlite headless -p <profile>`.
175
+
176
+ The same YAML profiles drive both the GUI and headless mode, so what you
177
+ see in the visualizer is what the robot will run.
178
+
179
+ ## Configuration files
180
+
181
+ Each profile is a single `configs/<profile>.yaml` file with sections for the core layers (`c10_perception`, `c20_planning`, `c30_control`, `c40_execution`), app bootstrap (`c69_apps`), and plugins (`plugins:`). Shipped defaults are in the repository `configs/` directory. Saving from the GUI or settings window writes to `~/.config/avlite/` with the same filename; load prefers the user copy when present. User maps and trajectories live under `~/.config/avlite/data/`; the Planning panel **Save Global Plan** button (⬇) opens a file picker there. Set `AVLITE_CONFIG_DIR` or `AVLITE_DATA_DIR` to use different directories.
182
+
183
+ ```bash
184
+ python -m avlite setting # settings GUI (no visualizer)
185
+ python -m avlite setting-cli help
186
+ python -m avlite setting-cli validate --profile default
187
+ python -m avlite setting-cli export-profile myprofile -o myprofile.yaml
188
+ python -m avlite setting-cli import-profile myprofile.yaml --force
189
+ ```
190
+
191
+ See [Configuration](docs/index.md#configuration) in the docs for paths, CLI, and resetting to repo defaults.
192
+
193
+ ## Community Plugins
194
+
195
+ AVLite has a community plugin system that lets anyone publish perception,
196
+ planning, control, executer, or world-bridge strategies as a small Git
197
+ repository. Community and member plugins are third-party or unverified code;
198
+ AV-Lab does not guarantee their safety. Use for research and development at
199
+ your own risk.
200
+
201
+ **Browse and install** from the GUI:
202
+
203
+ ```bash
204
+ python -m avlite plugins
205
+ ```
206
+
207
+ The browser has **Community** (public registry) and **Members** (AV-Lab private
208
+ registry) tabs. It fetches the official community registry
209
+ (<https://github.com/AV-Lab/avlite-community-plugins>) and lets you
210
+ install, uninstall, and register plugins with the active profile.
211
+ Installed plugins live under `$XDG_DATA_HOME/avlite/plugins`
212
+ (or `~/.local/share/avlite/plugins`); override with `AVLITE_PLUGINS_DIR`.
213
+
214
+ **Member plugins** (Members tab): sign in with GitHub (Device Flow) to browse
215
+ plugins from [avlite-private-plugins](https://github.com/AV-Lab/avlite-private-plugins).
216
+ Your account must have access to that registry and each listed plugin repo.
217
+ OAuth token is stored at `~/.config/avlite/github_oauth.json`. Distribution
218
+ builds set `AVLITE_GITHUB_OAUTH_CLIENT_ID`. See
219
+ [docs/index.md — Member plugins](docs/index.md#member-plugins) for SSO and
220
+ OAuth troubleshooting.
221
+
222
+ **Publish your own plugin**:
223
+
224
+ See the [Plugin Development Guide — Publish via pull request](docs/plugin-development.md#10-publish-to-the-community-registry-pull-request) for prerequisites, registry fields, and a PR checklist. Summary:
225
+
226
+ 1. Build a plugin following the [Plugin Development Guide](docs/plugin-development.md).
227
+ 2. Push it to a public Git repository.
228
+ 3. Fork <https://github.com/AV-Lab/avlite-community-plugins>, add an entry
229
+ to `plugins.yaml`:
230
+
231
+ ```yaml
232
+ plugins:
233
+ - name: my_perception_plugin
234
+ description: One-line summary of what the plugin does
235
+ repository: https://github.com/your-org/your-plugin-repo
236
+ version: latest # or a tag/commit SHA
237
+ author: your-org
238
+ category:
239
+ - PerceptionStrategy
240
+ ```
241
+
242
+ 4. Open a pull request. Once merged it shows up in every user's
243
+ `python -m avlite plugins` browser for install and register.
244
+
245
+ ## Project Structure
246
+
247
+ AVLite uses a numbered module system for easy navigation:
248
+
249
+ ```
250
+ avlite/
251
+ ├── c10_perception/ # Perception components (8 modules)
252
+ │ ├── c11_perception_model.py # PerceptionModel, Map, RaceMap
253
+ │ ├── c12_perception_strategy.py
254
+ │ ├── c13_localization_strategy.py
255
+ │ ├── c14_mapping_strategy.py
256
+ │ ├── c15_perception_algs.py # FastBEVLidarDetection, KalmanTracker, ConstantVelocityPrediction
257
+ │ ├── c16_localization_algs.py # LidarLocalization (ICP)
258
+ │ ├── c18_hdmap_parser.py # HDMap (OpenDRIVE parsing)
259
+ │ └── c19_settings.py
260
+ ├── c20_planning/ # Planning components
261
+ │ ├── c21_planning_model.py
262
+ │ ├── c22_global_planning_strategy.py
263
+ │ ├── c23_local_planning_strategy.py
264
+ │ ├── c24_global_hdmap_planners.py # HDMapGlobalPlanner
265
+ │ ├── c25_global_race_planners.py # GlobalCenterlineRacePlanner
266
+ │ ├── c26_local_path_planners.py # ReferencePathPlanner
267
+ │ ├── c27_local_behavioral_and_velocity_planners.py # CruiseBehavioralPlanner, VelocityLocalPlanner
268
+ │ ├── c28_local_lattice_planners.py # Node/Edge/Lattice, GreedyLatticePlanner
269
+ │ └── c29_settings.py
270
+ ├── c30_control/ # Control components
271
+ │ ├── c31_control_model.py
272
+ │ ├── c32_control_strategy.py
273
+ │ ├── c33_pid.py
274
+ │ ├── c34_stanley.py
275
+ │ └── c39_settings.py
276
+ ├── c40_execution/ # Execution and simulation
277
+ │ ├── c41_world_bridge.py
278
+ │ ├── c42_execution_strategy.py
279
+ │ ├── c44_sync_executer.py
280
+ │ ├── c45_async_threaded_executer.py
281
+ │ ├── c46_basic_sim.py
282
+ │ └── c49_settings.py
283
+ ├── c60_apps/ # App infrastructure (no tkinter)
284
+ │ ├── c61_app_strategy.py # AppStrategy registry + bootstrap
285
+ │ ├── c62_factory.py # executor_factory, load_stack_settings
286
+ │ ├── c63_plugins.py # Plugin discovery, loading, log routing
287
+ │ ├── c64_settings_schema.py # SettingsSchema, validation
288
+ │ ├── c65_setting_utils.py # YAML profile load/save/export
289
+ │ └── c68_paths.py # ConfigPaths, PluginPaths, DataPaths
290
+ ├── c50_common/ # Algorithm utilities (c51–c55)
291
+ │ ├── c51_capabilities.py
292
+ │ ├── c52_sensor_datatypes.py
293
+ │ ├── c53_trajectory_tracker.py
294
+ │ ├── c54_collision_checking.py
295
+ │ └── c55_fps_tracker.py
296
+ └── plugins/ # Built-in plugins
297
+ ├── p60_visualizer_tk/ # Tk visualizer + config + plugins apps (p61–p69)
298
+ ├── p60_setting_cli/
299
+ └── p60_headless_mode/
300
+
301
+ related-repos/ # Optional plugins (see related-repos/README.md)
302
+ ├── avlite-bridge-carla/
303
+ ├── avlite-bridge-gazebo/
304
+ ├── avlite-bridge-ROS2/
305
+ ├── avlite-controller-joystick/
306
+ └── avlite-executer-ROS2/
307
+ ```
308
+
309
+ The numbering scheme allows quick navigation: search for "c23" to find local planning, "c34" for Stanley controller, etc.
310
+
311
+ ### Optional plugins (`related-repos/`)
312
+
313
+ | Plugin | Repository folder | Role |
314
+ |--------|-------------------|------|
315
+ | `avlite-bridge-carla` | `related-repos/avlite-bridge-carla/` | CARLA world bridge |
316
+ | `avlite-bridge-gazebo` | `related-repos/avlite-bridge-gazebo/` | Gazebo Ignition bridge |
317
+ | `avlite-bridge-ROS2` | `related-repos/avlite-bridge-ROS2/` | External ROS world bridge |
318
+ | `avlite-controller-joystick` | `related-repos/avlite-controller-joystick/` | Gamepad controller |
319
+ | `avlite-executer-ROS2` | `related-repos/avlite-executer-ROS2/` | Multiprocess ROS executer |
320
+
321
+ Register in `c62_community_plugins` in the `c69_apps` section of `configs/<profile>.yaml` (shipped profiles already include repo-relative paths). Community plugin settings live under the profile's `plugins:` mapping, keyed by the plugin's dashed name, e.g. `avlite-bridge-carla`.
322
+
323
+ ## Testing
324
+
325
+ Install dev dependencies and run the default fast suite (excludes slow and data-dependent tests):
326
+
327
+ ```bash
328
+ pip install -e ".[dev]"
329
+ pytest
330
+ ```
331
+
332
+ Run the full suite including slow timing tests and repo `data/` regressions:
333
+
334
+ ```bash
335
+ pytest -m ""
336
+ ```
337
+
338
+ Run with coverage (advisory, no threshold enforced):
339
+
340
+ ```bash
341
+ pytest --cov=avlite --cov-report=term-missing
342
+ ```
343
+
344
+ Tests mirror the package layout under `test/`. Synthetic fixtures live in `test/fixtures/` so CI does not depend on large map assets. Markers: `slow` for timing-sensitive tests, `requires_data` for Yas Marina and similar repo data checks.
345
+
346
+ ## Developing Custom Plugins
347
+
348
+ See the [Plugin Development Guide](docs/plugin-development.md) for detailed instructions on creating custom perception, planning, and control components.
349
+
350
+
351
+
352
+
353
+
354
+
355
+
356
+