Build & Test
scout-drone is C++20 and builds with CMake ≥ 4.0 and Ninja, on GCC, Clang, and MSVC, using the same presets as the sibling repos.
Build and run the tests
Section titled “Build and run the tests”cmake --preset gcc-debug # also: gcc-release, clang-debug, clang-release, msvc, msvc-ninja, ...cmake --build --preset gcc-debugctest --preset gcc-debugThe first configure fetches anatomy, pinned in cmake/deps.cmake, and what anatomy builds on: yaml-cpp, reflex and Universal. The tests are built only when scout-drone is the top-level project (SCOUT_BUILD_TESTS).
Fly a baseline
Section titled “Fly a baseline”Each baseline gets sitl_<name>, replay_<name> and sitl_batch_<name>, in the build directory; score_log and log_dump read any baseline’s log, in its apps/. From the repo root:
b=build/gcc-debug$b/sitl_s0-gt-pid --scenario scenarios/s0-determinism.yaml --out run.brlog # fly, and write the log$b/replay_s0-gt-pid --log run.brlog --out replay.brlog --verify # reproduce every output$b/sitl_s0-gt-pid_graph --scenario scenarios/s0-open.yaml --print-graph mermaid # the graph the stack runs, as a flowchart$b/apps/score_log --log run.brlog # the score, as a JSON line$b/apps/log_dump --log run.brlog --out-dir run-dump # every channel as CSV$b/sitl_batch_s0-gt-pid --scenario scenarios/s0-forest.yaml --seeds 100 \ --min-success 0 --set cruise_speed_m_s=4 # 100 seeds, at 4 m/sA log records the field it flew, its obstacles listed, so it replays and scores on its own. score_log takes the scenario’s collision radius and speed limit as --collision-radius and --speed-limit, since the log doesn’t carry the scenario. --set changes numeric baseline parameters for one batch only.
The docs site
Section titled “The docs site”This site is generated from docs/ by docs-kit. To preview it:
cd docs-sitenpm cinpm run dev # regenerates the pages from docs/, then serves themNext: repository layout.