Agent Definition

Agent Definitions describe the static properties of a traffic participants such as the length and width of the vehicle. It also contains information on the type of agent (car, pedestrian, motorcycle...).

Interface

You can implement your own agent definition by creating a new type inheriting from the AbstractAgentDefinition type. The following three functions must be implemented for your custom type:

Base.lengthFunction
length(def::AbstractAgentDefinition)

return the length of the vehicle

source

Agent classes such as car, truck, and pedestrian are defined by integer constant in a submodule AgentClass.

Available Agent Definitions

AutomotiveSimulator.BicycleModelType
BicycleModel
BicycleModel(def::VehicleDef; a::Float64 = 1.5, b::Float64 = 1.5)

Vehicle definition representing the bicycle model

Fields

  • def::VehicleDef
  • a::Float64 distance between cg and front axle [m]
  • b::Float64 distance between cg and rear axle [m]
source