A New Vehicle#
Autoware finds a vehicle and its sensors by package name. openadkit new
makes the four packages it reads in the kit's overlay_ws/src. With
VEHICLE_MODEL=kit_vehicle and SENSOR_MODEL=kit_sensor_kit:
| Package | Holds |
|---|---|
kit_vehicle_description |
vehicle_info.param.yaml, the simulator model and the vehicle's URDF and mesh |
kit_vehicle_launch |
vehicle_interface.launch.xml, which starts your vehicle interface |
kit_sensor_kit_description |
The sensor calibration files and the sensor kit's URDF |
kit_sensor_kit_launch |
The sensor launch files and the sensor kit's diagnostics configuration |
The kit_ prefix keeps them apart from the packages of the images. To name
them after your vehicle, replace kit_vehicle and kit_sensor_kit in the four
directory names, in every file of the packages and in settings.env. Then
remove overlay_ws/build and overlay_ws/install, which still hold the old
names, and build again.
They start as the sample vehicle. Its dimensions, simulator model, sensor poses
and lidar crop boxes are copies in the config directories, yours to change.
Its body, its sensors' URDF and its sensor launch files stay in Autoware's
sample_* packages, which yours include: replace an include with your own
files when your vehicle differs there. A new kit runs the sample vehicle until
its settings select these packages.
- Change the packages to your vehicle, starting with the parameters in the table below.
- Remove the
#fromVEHICLE_MODELandSENSOR_MODELin the kit'ssettings.env, so every deployment of the kit runs your vehicle, with the limits of each simulation. - Point
MAP_PATHat your map and name its files, in thedeployments/<name>/settings.envof each deployment that drives on it, such as Planning Simulation's:MAP_PATH=${OPENADKIT_KIT}/map LANELET2_MAP_FILE=my_town.osm POINTCLOUD_MAP_FILE=my_town.pcdThe kit's own
settings.envwould give the map to every deployment, but CARLA Simulation drives in CARLA's Town01, Logging Simulation needs the map of its recording and Scenario Simulation that of its scenarios.A map too large for the kit's repository stays outside it: give its absolute path in the host settings file instead. The CLI uses a map directory of yours as it is (Downloaded Data). 4. Build and run:
openadkit build, thenopenadkit run <deployment> --verify. The base's verify step drives the sample map's route, so on your own map give the deployment a verify step of its own.
Every service sources the workspace, so planning, control, the simulator and
the visualizer all read the same vehicle. All four packages must exist: the
vehicle and system services look up the two _launch packages on every start.
validate does not check for them. When one is missing, run reports the
service that failed, and openadkit logs <service> names the package. Every
release tests this path: the example kit drives with four such packages.
Limits of the Simulations#
The kit's settings apply to every deployment, but only Planning Simulation takes all it simulates from the kit's packages:
- Scenario Simulation moves the ego with your wheel base and simulator model, but the body it checks for collisions is the one that the scenario names in its vehicle catalog. In the bundled scenario that is the sample vehicle: describe yours in your own scenarios.
- Logging Simulation replays a recording of the sample vehicle's sensors. With other sensor poses, replay your own recording.
- CARLA Simulation drives CARLA's Toyota Prius, while Autoware plans and controls with your vehicle's dimensions.
- Safety Island Simulation controls with the dimensions built into the Safety Island's binary, which are close to the sample vehicle's. The rest of Autoware and the simulator use yours, so the further your wheel base is from the sample's, the less its driving says about your vehicle.
CARLA also simulates the sensors of its own sensor kit. So openadkit new
keeps that sensor kit in the CARLA deployment's own
deployments/<name>/settings.env, which wins over the kit's. A CARLA
deployment you add yourself needs the same line:
SENSOR_MODEL=carla_sensor_kit
Parameters to Review#
Autoware's defaults describe a passenger car. Review these for your vehicle.
The first three are in your packages. The others belong to Autoware packages, so
change them with config overrides; their package and
path depend on the release's Autoware version, so look them up in its images and
check run's override warnings.
| Parameters | File | Why |
|---|---|---|
Dimensions, wheel_base, max_steer_angle |
vehicle_info.param.yaml of your vehicle description |
Planning and control use them as limits; a steering limit above the vehicle's makes control ask for angles it cannot reach. |
| Sensor poses | your sensor kit's sensor_kit_calibration.yaml and sensors_calibration.yaml |
A wrong sign or offset shows up as a localization error of the same size. |
The vehicle's own body and mirrors, as boxes around base_link |
your sensor kit launch package's crop_box_filter_self.param.yaml and crop_box_filter_mirror.param.yaml |
The lidar points inside them are dropped. They do not follow the dimensions: around a larger vehicle, its own body shows up as an obstacle. |
nominal_latency, assumed_limit_acc |
control_validator.param.yaml |
Your actuation latency and achievable braking. With car values a slower or weaker vehicle fails validation and triggers an MRM. |
pose_measurement.pose_gate_dist |
ekf_localizer.param.yaml |
The Mahalanobis gate for pose updates. A start pose far from the truth can be rejected for good. |
| Velocity, acceleration, jerk and steering-rate limits | vehicle_cmd_gate.param.yaml |
The last limits before the vehicle interface. |