## Project

#### System Overview

The system is modular, and the subsystems are implemented in either C++, Matlab or Simulink. They communicate over an LCM (Lightweight Communication and Marshalling) protocol roughly according to the sketch to the right.

#### PreScan

PreScan is an advanced physics-based simulation platform that is used in the automotive industry for development of Advanced Driver Assistance Systems (ADAS) that are based on sensor technologies such as radar, laser/lidar, camera and GPS. A Simulink model of all actors and sensors can be generetad, and hence the sensor outputs can be accessed via Simulink blocks. A simple scenario in PreScan is shown in the figure to the left.

#### Situational Awareness

Situational Awareness processes sensor data and uses a Bayes’ binary filter and a two-dimensional grid to construct a representation of the vehicle’s closest surroundings. The occupancy probability of a cell**is calculated using all previous measurements**

*c***from the recursive equation, and by inversion one obtains an expression for a cell's occupancy probability,**

*z*_{1:t}This filter only applies to static environment. To incorporate also moving obstacles, as soon as such an object has been detected, a motion model is applied to it. The model predicts a trajectory in the nearest future so that collision can be avoided. The figure shows the mapping module's representation of the PreScan scenario above.

#### Planner

The planning part of the project consist of the two modules, Mission Planner and Local Planner. In the figure to the left one can see the vehicle in action. The red and yellow line is the local trajectory that the vehicle shall follow. The circles together represents the route, that is computed by the Mission Planner.The Local Planner plans locally on free-spaces using an RRT-algorithm. The trajectory that the RRT-computes is followed by a pure pursuit controller. On roads, a pure pursuit controller is also used to follow the straight lines between waypoints. The actual controlling is done by sending reference signals to the controller unit.

#### Vehicle Data Estimator

The vehicle data estimator estimates the centre of gravity and the mass of the PreScan vehicle. This is done via Extended Kalman Filters. The model used to estimate the vehicle mass is a longitudinal model of the vehicle where Newton’s second law sums the acting forces, which follows below.*F*

_{t}is the traction force,

*F*

_{r}is rolling resistance force,

*F*

_{g}is gravity force and

*F*

_{d}is aerodynamic drag force. The estimated mass is then used in the model of the roll behavior which is shown below.

*C*

_{Φ}is the spring constant and

*D*

_{Φ}is the damping constant and

*h*

_{cg}is the estimated height of the center of gravity.