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 "
motion_lib/load_transfer_model/rigid_body_model.hpp
"
8
9
/*
10
* Map of load transfer models, with the key being the name of the model and the value being a
11
* lambda function that returns a shared pointer to the corresponding load transfer model.
12
*/
13
const
std::map<std::string,
14
std::function<std::shared_ptr<LoadTransferModel>(
15
const
common_lib::car_parameters::CarParameters
&)>,
16
std::less<>>
17
load_transfer_models_map
= {
18
{
"rigid_body"
,
19
[](
const
common_lib::car_parameters::CarParameters
& params)
20
-> std::shared_ptr<LoadTransferModel> {
21
return
std::make_shared<RigidBodyLoadTransferModel>(params);
22
}},
23
};
load_transfer_models_map
const std::map< std::string, std::function< std::shared_ptr< LoadTransferModel >(const common_lib::car_parameters::CarParameters &)>, std::less<> > load_transfer_models_map
Definition
map.hpp:17
rigid_body_model.hpp
common_lib::car_parameters::CarParameters
Definition
car_parameters.hpp:15
src
motion_lib
include
motion_lib
load_transfer_model
map.hpp
Generated by
1.9.8