Skip to content

Create a Kit#

openadkit new makes a kit: your own project, which extends this release without copying it. A kit holds one or more deployments. Each runs a deployment of the release, its base, with the kit's files on top, so the kit holds only your differences. A new kit has a deployment on each deployment of the release, and the packages of a vehicle of its own. Every base is a simulation: a kit shows your vehicle's software in simulation, not on the vehicle.

Without a kit, a deployment of the release takes your settings from the host settings file and your packages from --ws. A kit keeps your changes, from config overrides to your vehicle, services and images, on top of a release that passed its evidence, and takes the next release when you change extends (Upgrade).

openadkit new my-kit

Commands are shown as the release installer installs them. From a source checkout, call its launcher by path: ./openadkit in the checkout, or <checkout>/openadkit in a kit.

One Kit, Several Deployments#

my-kit/
├── openadkit.json
├── settings.env                          # every deployment
├── config/autoware/                      # every deployment
├── overlay_ws/src/                       # every deployment
│   ├── kit_vehicle_description/          # the kit's vehicle and sensor kit
│   ├── kit_vehicle_launch/
│   ├── kit_sensor_kit_description/
│   └── kit_sensor_kit_launch/
└── deployments/
    ├── my-kit-planning-simulation/
    │   └── settings.env                  # this deployment only
    ├── my-kit-logging-simulation/
    └── ...                               # one for each deployment of the release

openadkit.json is the kit's one manifest. It pins the release (extends) and lists the kit's deployments, each with its base:

{
  "schemaVersion": 2,
  "kind": "kit",
  "extends": "v2.0.0",
  "deployments": {
    "my-kit-planning-simulation": { "base": "planning-simulation" },
    "my-kit-logging-simulation": { "base": "logging-simulation" },
    "my-kit-scenario-simulation": { "base": "scenario-simulation" },
    "my-kit-carla-simulation": { "base": "carla-simulation" },
    "my-kit-safety-island-simulation": { "base": "safety-island-simulation" }
  },
  "externalImages": {}
}
  • The kit root holds what belongs to your vehicle, whichever deployment runs it: settings, config overrides and ROS packages.
  • deployments/<name>/ holds what one deployment alone needs: its own settings and config overrides, and a compose.yaml when it adds or changes services. The directory is optional.
  • A deployment inherits its base's architectures, ROS distros, GPU mode, downloads and verify step; requirements in its manifest entry may narrow the first three. Without a compose.yaml it runs its base's services.

new names each deployment after the kit and its base. The name is yours to change: it is the key in openadkit.json, and its directory follows it. It cannot be the name of a deployment of the release, such as planning-simulation.

Add or Remove a Deployment#

To drop a deployment you do not use, remove its entry and its directory. To add one, such as the deployment of a later release, add an entry with its base. It gets the kit's settings, config overrides and packages; make its directory only when it needs files of its own. What you write at the kit root applies to every deployment, so what only one of them needs goes into its directory.

Run and Stop#

cd my-kit
openadkit run my-kit-planning-simulation --verify   # start, wait until ready, run the base's verify step
openadkit stop

run takes the name of a deployment, or its directory: openadkit run deployments/my-kit-planning-simulation, and ./my-kit/deployments/<name> from elsewhere, also while it has no directory of its own. validate and fetch without a name act on each deployment, so fetch downloads the data of all of them: name the ones you use. validate names and skips one that does not run on this host, on the ROS distro or in the GPU mode you asked for. A kit with one deployment needs no name, and from elsewhere its directory names it: openadkit run ./my-kit. A kit on a source checkout runs that checkout's local build, or the CI build OPENADKIT_BUILD names; see Overlay Workspace.

For Jazzy, add --ros-distro jazzy to run and validate. openadkit validate checks the kit and renders the Compose model without starting anything; it is not runtime or ABI evidence, so finish with run --verify.

Every release tests a kit made this way: the example kit exercises each extension point on Humble and Jazzy.

Add a Package#

Put your ROS packages in overlay_ws/src, then build them and restart the services, or only the one that runs them. The build runs in the release's devel image, so the host needs no ROS, and the next build compiles only what changed. For Jazzy, add --ros-distro jazzy to build too; for a package that needs CUDA or TensorRT, add --gpu:

openadkit build                 # overlay_ws, in the release's devel image
openadkit restart               # or: openadkit restart <service>

A changed copy of an Autoware package runs where Autoware already launches it; a new node needs something to start it, such as a service of your own (Overlay Workspace). Develop and Debug times this loop and shows how to look into the running services.

Change a Parameter#

A config override changes a parameter without a build. Put the file with only the keys you change under config/autoware/, at the path it has in its package's share directory, then recreate the services that use it:

mkdir -p config/autoware/autoware_planning_config/config/scenario_planning/common
$EDITOR config/autoware/autoware_planning_config/config/scenario_planning/common/common.param.yaml
openadkit restart               # the services with config overrides or settings that changed

Where Changes Go#

Keep parameter changes in config/autoware/ and packages in overlay_ws/ rather than mounting over /opt/autoware or replacing a base service's command.