Advanced

You do not need this section to get a robot driving. It documents how RaccoonOS is built (which components exist, how they talk to each other, how the firmware, the transport and the WebIDE work inside) and the deeper features of the library, such as odometry, localization, arms and the simulator. Read it when you debug something deep, need a feature beyond the Programming Guide, or are just curious.

The platform at a glance

flowchart LR
    subgraph Laptop
        CLI["Raccoon CLI
WebIDE"] end subgraph Pi["Raspberry Pi (Wombat)"] SRV["raccoon-server
(port 8421)"] LIB["raccoon-lib
your missions"] BUS[("raccoon-transport
shared-memory ring
/dev/shm")] RDR["stm32-data-reader"] UI["botui"] CAM["raccoon-cam"] end MCU["STM32 firmware
motors, IMU"] CLI -- "SSH / HTTP" --> SRV SRV -- "starts" --> LIB LIB <--> BUS UI <--> BUS CAM <--> BUS RDR <--> BUS RDR <-- "SPI" --> MCU
ComponentWhat it isRepository
raccoon-libThe C++20 library with Python bindings: steps, missions, motion control, odometry. Your mission code runs on itraccoon-lib
STM32 firmwareRuns on the STM32 microcontroller: motor control, IMU, and the chassis velocity loopstm32-data-reader (firmware/)
stm32-data-readerService on the Pi that talks SPI to the STM32 and publishes its data on the transportstm32-data-reader
raccoon-transportMessages, channels and the shared-memory transport between all components, for C++, Python and Dart, plus the contract hashraccoon-transport
botuiThe touchscreen UI on the robot (Flutter, rendered with flutter-pi)botui
raccoon-cli / raccoon-serverThe laptop tool and the daemon on the Pi that receives files and starts programs. The WebIDE is part of itraccoon-cli
raccoon-camCamera service with pluggable image processorsraccoon-cam
raccoon-imageBuilds the RaccoonOS SD card image from a bundle of component releasesraccoon-image

Every component is built and released on its own. A bundle names the exact version of each, and the transport contract hash makes sure they all speak the same wire format. See Transport contract .

In this section

PageWhat it covers
Library ArchitectureThe layers of raccoon-lib, the module map and what happens when you call drive_forward(25)
TransportChannels, messages, the shared-memory ring and the contract check
Firmware and Pi BridgeSTM32 firmware, SPI protocol, motor control, sensor pipeline, the Pi bridge
WebIDE InternalsHow the WebIDE backend and frontend are built
Motion and LocalizationDrive system, kinematics, odometry, IMU, localization, robot.yml
Arms and Table MapsInverse kinematics for arms and the table map files
Runtime and ToolingAsync model and services, UI steps, simulator, two robots, competition checklist

Looking for how to build or release these components yourself? That is in Build and Contribute .

Written by Mario Scholze