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 "
base_decoupled_controller.hpp
"
8
9
/*
10
* Map of control solvers, with the key being the type of the solver and the value being a lambda
11
* function that creates the solver
12
*/
13
const
std::map<std::string, std::function<std::shared_ptr<ControlSolver>(
const
ControlParameters
&)>,
14
std::less<>>
15
controller_map
= {{
"decoupled"
,
16
[](
const
ControlParameters
& params) -> std::shared_ptr<ControlSolver> {
17
return
std::make_shared<DecoupledController>(params);
18
}}};
base_decoupled_controller.hpp
controller_map
const std::map< std::string, std::function< std::shared_ptr< ControlSolver >(const ControlParameters &)>, std::less<> > controller_map
Definition
map.hpp:15
ControlParameters
Definition
parameters.hpp:10
src
control
include
control_solver
map.hpp
Generated by
1.9.8