Formula Student Autonomous Systems
The code for the main driverless system
Loading...
Searching...
No Matches
map.hpp
Go to the documentation of this file.
1
#pragma once
2
3
#include <map>
4
#include <memory>
5
#include <string>
6
7
#include "
default_aero_model.hpp
"
8
9
/*
10
* Map of aero models, with the key being the name of the aero model and the value being a lambda
11
* function that returns a shared pointer to the corresponding aero model
12
*/
13
const
std::map<
14
std::string,
15
std::function<std::shared_ptr<AeroModel>(
const
common_lib::car_parameters::CarParameters
&)>,
16
std::less<>>
17
aero_models_map
= {
18
{
"default_aero"
,
19
[](
const
common_lib::car_parameters::CarParameters
& params) -> std::shared_ptr<AeroModel> {
20
return
std::make_shared<DefaultAeroModel>(params);
21
}},
22
};
default_aero_model.hpp
aero_models_map
const std::map< std::string, std::function< std::shared_ptr< AeroModel >(const common_lib::car_parameters::CarParameters &)>, std::less<> > aero_models_map
Definition
map.hpp:17
common_lib::car_parameters::CarParameters
Definition
car_parameters.hpp:15
src
motion_lib
include
motion_lib
aero_model
map.hpp
Generated by
1.9.8