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
10
11/*
12 * Map of slam_solvers, with the key being the type of the slam_solver and the value being a lambda
13 * function that returns a shared pointer to the corresponding slam_solver
14 */
15const std::map<
16 std::string,
17 std::function<std::shared_ptr<S2VModel>(const common_lib::car_parameters::CarParameters&)>,
18 std::less<>>
20 {"bicycle_model",
21 [](const common_lib::car_parameters::CarParameters& params) -> std::shared_ptr<S2VModel> {
22 return std::make_shared<BicycleModel>(params);
23 }},
24 {"no_rear_wss_bicycle_model",
25 [](const common_lib::car_parameters::CarParameters& params) -> std::shared_ptr<S2VModel> {
26 return std::make_shared<NoRearWSSBicycleModel>(params);
27 }},
28 {"no_wss_bicycle_model",
29 [](const common_lib::car_parameters::CarParameters& params) -> std::shared_ptr<S2VModel> {
30 return std::make_shared<NoWSSBicycleModel>(params);
31 }},
32};
const std::map< std::string, std::function< std::shared_ptr< S2VModel >(const common_lib::car_parameters::CarParameters &)>, std::less<> > s2v_models_map
Definition map.hpp:19