Contributing

RaccoonOS is open source and lives in several repositories in the htl-stp-ecer GitHub organization.

The repositories

RepositoryWhat is in itTests
raccoon-libThe robot library (C++20, Python bindings), steps, missionspytest tests/ and ctest
raccoon-cliThe raccoon CLI, raccoon-server, the WebIDEpytest tests/
raccoon-transportMessages, channels, shared-memory transport, contractintegration_tests/, python3 -m unittest scripts/test_contract.py
stm32-data-readerThe Pi service for the STM32, and the STM32 firmwarepython3 build.py --test
botuiThe Flutter UI on the robotflutter analyze, flutter test
raccoon-camThe camera servicepytest
raccoon-imageBuilds the SD card image from a bundletests/
documentationThis documentation (Hugo)hugo server -D

Every repository has a README with the build commands and a CONTRIBUTING.md where it needs one.

Getting a change in

  1. Work on a feature branch. main holds the released state and receives changes through pull requests.
  2. Build and test locally. Every repository builds with python3 build.py in Docker (see Build System ).
  3. To try a change on a real robot, use python3 deploy.py --host <pi>, which installs your local build.
  4. If you change a message, a channel or the ring layout in raccoon-transport, regenerate the contract with python3 scripts/contract.py --write and commit it. Otherwise CI fails, see Transport .
  5. Open a pull request. CI builds the change in the same Docker setup.

Two rules to know:

  • Transport pin: in botui, stm32-data-reader and raccoon-lib, a pull request to main fails the check pin-gate unless the raccoon-transport submodule points at a released tag. The message layouts and the ring format are compiled into every component, so a commit without a release cannot be matched against the others.
  • Merging to main in raccoon-transport is a release. CI numbers and publishes it and opens pull requests that move the submodule in the three components.

Writing documentation

The documentation is a Hugo site. The folders under content/ are the top-level sections of the sidebar, and the numeric prefixes set their order. CONTRIBUTING.md in the documentation repository has the style rules, the front matter and the shortcodes. Two things to know:

  • The Steps Reference is generated from raccoon-lib (data/dsl_steps.json). Do not edit the catalog by hand; fix the docstring of the step in the library instead.
  • When a page moves, fix the ref links that point to it. Use the full path from content/.
Written by Mario Scholze