Formula Student Autonomous Systems
The code for the main driverless system
Loading...
Searching...
No Matches
TireModel Class Referenceabstract

Class used to model tires. More...

#include <base_tire_model.hpp>

Inheritance diagram for TireModel:
Inheritance graph
Collaboration diagram for TireModel:
Collaboration graph

Public Member Functions

 TireModel (const common_lib::car_parameters::CarParameters &car_parameters)
 
virtual std::pair< double, double > tire_forces (double slip_angle, double slip_ratio, double vertical_load) const =0
 Calculate the forces acting in a tire based on the tire characteristics and dynamic state.
 

Protected Attributes

std::shared_ptr< common_lib::car_parameters::CarParameterscar_parameters_
 

Detailed Description

Class used to model tires.

Currently used to model tire forces based on slip.

Definition at line 8 of file base_tire_model.hpp.

Constructor & Destructor Documentation

◆ TireModel()

TireModel::TireModel ( const common_lib::car_parameters::CarParameters car_parameters)
inline

Definition at line 13 of file base_tire_model.hpp.

Member Function Documentation

◆ tire_forces()

virtual std::pair< double, double > TireModel::tire_forces ( double  slip_angle,
double  slip_ratio,
double  vertical_load 
) const
pure virtual

Calculate the forces acting in a tire based on the tire characteristics and dynamic state.

Parameters
slip_angleSlip angle of the tire in radians
slip_ratioSlip ratio of the tire
loadLoad on the tire in Newtons
Returns
std::pair<double, double> Longitudinal and lateral forces

Implemented in PacejkaCombinedSlip.

Member Data Documentation

◆ car_parameters_

std::shared_ptr<common_lib::car_parameters::CarParameters> TireModel::car_parameters_
protected

Definition at line 10 of file base_tire_model.hpp.


The documentation for this class was generated from the following file: