Config Structure

The robot is described in YAML. raccoon codegen turns that YAML into the Python classes your missions import (Defs and Robot), see Code Generator . The config is not read while the robot runs: the YAML is the source of truth and the generated Python is the output.

Files

raccoon.project.yml              root file, includes everything below
  ├── config/robot.yml           drivetrain, motion tuning, physical size
  ├── config/missions.yml        ordered mission list
  ├── config/hardware.yml        sensors, sensor groups
  │   ├── config/motors.yml      motors        (!include-merge)
  │   └── config/servos.yml      servos        (!include-merge)
  └── config/connection.yml      how to reach the robot

raccoon.project.yml is the root. It uses !include to hand each top-level key to one of the files in config/. hardware.yml in turn merges motors.yml and servos.yml with !include-merge, so all hardware ends up in one flat namespace. How includes work is explained below .

FileContainsYou edit it?
raccoon.project.ymlProject name, uuid, format_version, the includes and the optional simulation: blockRarely
config/hardware.ymlSensors and sensor groups. See hardware.ymlYes
config/motors.ymlMotors. See Motor configYes
config/servos.ymlServos and their positions. See Servos in servos.ymlYes
config/robot.ymlDrive kinematics, motion PID, physical dimensions, shutdown_in. See robot.yml ReferenceSet it up once, then leave it. The calibration commands and auto-tuning tune values in it
config/missions.ymlThe mission listNo, raccoon mission manages it
config/connection.ymlAddress and port of the robotNo, raccoon connect saves it
racoon.calibration.ymlValues measured by calibrationNo, written by calibration

Some keys are written by the CLI and the calibration steps (ticks_to_rad, offset, the autotune values). Do not edit them by hand unless you know the exact value.

Includes

The root file hands its sections to other files with two YAML tags:

  • !include 'config/robot.yml' replaces the value with the content of that file.
  • !include-merge 'motors.yml' merges the top-level keys of that file into the surrounding mapping. This is how hardware.yml shows motors, servos and sensors as one flat list.
# config/hardware.yml
button:
  type: DigitalSensor
  port: 10

_motors: !include-merge 'motors.yml'
_servos: !include-merge 'servos.yml'

The key of an !include-merge line is dropped. The leading _ is only a convention that marks it as a merge anchor and not as a piece of hardware. Includes can be nested, up to 20 levels deep.

Tools that write values, such as the calibration commands, update the file that owns the value (for example motors.yml) and keep the include tags as they are.

raccoon.project.yml

KeyTypeDescription
namestringProject name, shown in the CLI and the WebIDE. Set once when the project is created.
uuidstringUnique project id (UUID v4). The raccoon daemon uses it to find the project on the robot. Never change it.
format_versionintegerSchema version of the project file. Written by raccoon migrate. raccoon run compares it with the version the installed raccoon-lib requires and refuses to run an older project until you run raccoon migrate.
robot!includeconfig/robot.yml
missions!includeconfig/missions.yml
definitions!includeconfig/hardware.yml
connection!includeconfig/connection.yml
simulationmappingOptional, see below

simulation: (optional)

Configures the Web-IDE simulator that runs when you use the simulate=real run configuration. When this block is absent, the simulator uses an empty table scene and falls back to robot.physical.start_pose for the starting position.

simulation:
  scene: empty_table.ftmap          # path to a .ftmap file (project-relative or absolute)
  start_pose:                       # overrides robot.physical.start_pose for simulation only
    x_cm: 0.0
    y_cm: 0.0
    theta_deg: 0.0
KeyTypeDefaultDescription
simulation.scenestring(empty table)Path to a .ftmap file used as the simulation arena. Can be project-relative or absolute.
simulation.start_pose.x_cmfloatfrom physical.start_pose.x_cmSimulation-only starting X position (cm). Overrides physical.start_pose for simulation runs only.
simulation.start_pose.y_cmfloatfrom physical.start_pose.y_cmSimulation-only starting Y position (cm).
simulation.start_pose.theta_degfloatfrom physical.start_pose.theta_degSimulation-only starting heading (degrees).

This block is intentionally separate from physical.start_pose so you can place the robot at a different starting position in simulation without affecting real-robot runs.

config/missions.yml

An ordered list of the missions to run. The order in this file is the order the missions run in. Create and reorder missions with raccoon mission, see Missions .

Normal mission (runs in sequence with others):

- MyMission

Typed mission (dict with a single key):

- SetupMission: setup
- AnotherMission: normal
- TeardownMission: shutdown

The value is one of three strings:

TypeDescription
normalAdded to Robot.missions list. Presented to the user for selection at runtime.
setupAssigned to Robot.setup_mission. Runs automatically before any normal mission is selected. Only one setup mission is allowed; if multiple are listed, the last one wins.
shutdownAssigned to Robot.shutdown_mission. Runs automatically after the program ends (timeout or explicit shutdown).

If a bare string entry (without a type key) is used, it is treated as normal.

Each mission class name is converted to snake_case to derive the source filename. DriveToBoxMission → src/missions/drive_to_box_mission.py.

To disable a mission for one run, comment it out with #. The source file stays untouched.

config/connection.yml

Controls how raccoon reaches the robot. raccoon connect saves the connection here.

KeyTypeDefaultDescription
pi_addressstring192.168.4.1IP address or hostname of the Wombat controller. When connected to the Wombat’s Wi-Fi hotspot, the default 192.168.4.1 is correct.
pi_portinteger8421TCP port on which the raccoon daemon (raccoon server) is listening on the Pi.
pi_userstringpiSSH username used for SFTP file transfers.
remote_pathstring(empty)Absolute path on the Pi where the project is deployed. When empty, raccoon uses a default path derived from the project UUID.
auto_connectbooltrueWhen true, Raccoon CLI commands that require a connection (run, sync, calibrate, etc.) will attempt to connect automatically without prompting. Set to false to always require an explicit raccoon connect.

Where the rest is documented

WhatPage
The generated Defs and Robot classesCode Generator and Robot Definition
Flags for raccoon runRun Configurations