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
8
9/*
10 * Map of steering models, with the key being the name of the steering model and the value being a
11 * lambda function that returns a shared pointer to the corresponding steering model
12 */
13const std::map<
14 std::string,
15 std::function<std::shared_ptr<SteeringModel>(const common_lib::car_parameters::CarParameters&)>,
16 std::less<>>
18 {"parallel_front_steering",
20 -> std::shared_ptr<SteeringModel> {
21 return std::make_shared<ParallelFrontSteering>(params);
22 }},
23};
const std::map< std::string, std::function< std::shared_ptr< SteeringModel >(const common_lib::car_parameters::CarParameters &)>, std::less<> > steering_models_map
Definition map.hpp:17