Formula Student Autonomous Systems
The code for the main driverless system
Loading...
Searching...
No Matches
base_tire_model.hpp
Go to the documentation of this file.
1#pragma once
2
8class TireModel {
9protected:
10 std::shared_ptr<common_lib::car_parameters::CarParameters> car_parameters_;
11
12public:
15 std::make_shared<common_lib::car_parameters::CarParameters>(car_parameters)) {}
25 virtual std::pair<double, double> tire_forces(double slip_angle, double slip_ratio,
26 double vertical_load) const = 0;
27};
Class used to model tires.
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.
TireModel(const common_lib::car_parameters::CarParameters &car_parameters)
std::shared_ptr< common_lib::car_parameters::CarParameters > car_parameters_
Hash function for cones.
Definition cone.hpp:36