carla/Docs/tuto_D_customize_vehicle_su...

8.2 KiB

Customize vehicle suspension

This tutorial covers the basics of the suspension system for CARLA vehicles, and how are these implemented for the different vehicles available. Use this information to access the suspension parameterization of a vehicle in Unreal Engine, and customize it at will.


Basics of the suspension system

The suspension system of a vehicle is defined by the wheels of said vehicle. Each wheel has an independent blueprint with some parameterization, which includes the suspension system.

These blueprints can be found in Content/Carla/Blueprints/Vehicles/<vehicle_name>. They are named such as: BP_<vehicle_name>_<F/R><R/L>W.

  • F or R is used for front or back wheels correspondingly.
  • R or L is used for right or left wheels correspondingly.

tuto_suspension_blueprints

In this example, the blueprint of the front left wheel of the Audi A2 is named as BP_AudiA2_FLW.

shape_radius for the wheel to rest over the road, neither hovering nor inside of it.

Inside the blueprint, there is a section with some parameterization regarding the suspension of the wheel. Here are their definitions as described in Unreal Engine.

  • Suspension Force Offset — Vertical offset from where suspension forces are applied (along Z axis).
  • Suspension Max Raise — How far the wheel can go above the resting position.
  • Suspension Max Drop — How far the wheel can drop below the resting position.
  • Suspension Natural Frequency — Oscillation frequency of the suspension. Standard cars have values between 5 and 10.
  • Suspension Damping Ratio — The rate at which energy is dissipated from the spring. Standard cars have values between 0.8 and 1.2. Values < 1 are more sluggish, values > 1 are more twitchy.
  • Sweep Type — Wether wheel suspension considers simple, complex or both.

tuto_suspension_parameterization

The Suspension panel inside a wheel blueprint.

!!! Note By default, all the wheels of a vehicle have the same parameterization in CARLA. The following explanations will be covered per vehicle, instead of per wheel.


Suspension groups

According to their system suspension, vehicles in CARLA can be classified in five groups. All the vehicles in a group have the same parameterization, as they are expected to have a similar behaviour on the road. The suspension of a vehicle can be modified at will, and is no subject to these five groups. However understanding these, and observing their behaviour in the simulation can be of great use to define a custom suspension.

The five groups are: coupe, Off-road, Truck, Urban, and Van. In closer observation, the parameterization of these groups follows a specific pattern.

Stiff suspension coupe Urban Van Off-road Truck Soft suspension

When moving from a soft to a stiff suspension, there are some clear tendencies in their parameterization.

  • Decrease of Suspension Max Raise and Suspension Max Drop — Stiff vehicles are meant to drive over plane roads with no bumps. For the sake of aerodynamics, the chassis is not supposed to move greatly, but remain constantly close to the ground.
  • Increase of Suspension Damping Ratio — The absortion of the bouncing by the dampers is greater for stiff vehicles.

Coupe

Vehicles with the stiffest suspension.

Parameterization Vehicles
Suspension Force Offset0.0
Suspension Max Raise7.5
Suspension Max Drop7.5
Suspension Natural Frequency10.0
Suspension Damping Ratio1.0
Sweep TypeSimpleAndComplex
vehicle.seat.leon
vehicle.audi.a2
vehicle.audi.tt
vehicle.tesla.model3
vehicle.lincoln.mkz2017
vehicle.mercedes-benz.coupe

Off-road

Vehicles with a soft suspension.

Parameterization Vehicles
Suspension Force Offset0.0
Suspension Max Raise15.0
Suspension Max Drop15.0
Suspension Natural Frequency7.0
Suspension Damping Ratio0.5
Sweep TypeSimpleAndComplex
vehicle.audi.etron
vehicle.nissan.patrol
vehicle.tesla.cybertruck
vehicle.jeep.wrangler_rubicon

Truck

Vehicles with the softest suspension.

Parameterization Vehicles
Suspension Force Offset0.0
Suspension Max Raise17.0
Suspension Max Drop17.0
Suspension Natural Frequency6.0
Suspension Damping Ratio0.4
Sweep TypeSimpleAndComplex
vehicle.carlamotors.carlacola

Urban

Vehicles with a soft suspension.

Parameterization Vehicles
Suspension Force Offset0.0
Suspension Max Raise8.0
Suspension Max Drop8.0
Suspension Natural Frequency9.0
Suspension Damping Ratio0.8
Sweep TypeSimpleAndComplex
vehicle.nissan.micra
vehicle.mustang.mustang
vehicle.mini.cooperst
vehicle.citroen.c3
vehicle.chevrolet.impala
vehicle.toyota.prius
vehicle.dodge_charger.police
vehicle.bmw.grandtourer

Van

Vehicles with a middle-ground suspension.

Parameterization Vehicles
Suspension Force Offset0.0
Suspension Max Raise9.0
Suspension Max Drop9.0
Suspension Natural Frequency9.0
Suspension Damping Ratio0.9
Sweep TypeSimpleAndComplex
vehicle.volkswagen.t2


Use the forum to post any doubts, issues or suggestions regarding this topic.

Here are some advised readings after this one.