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 "pure_pursuit.hpp"
8
9/*
10 * Map of lateral control solvers, with the key being the type of the solver and the value being a lambda
11 * function that creates the solver
12 */
13const std::map<std::string, std::function<std::shared_ptr<LateralController>(const ControlParameters&)>,
14 std::less<>>
16 {"pure_pursuit",
17 [](const ControlParameters& params) -> std::shared_ptr<LateralController> {
18 return std::make_shared<PurePursuit>(params);
19 }},
20 };
const std::map< std::string, std::function< std::shared_ptr< LateralController >(const ControlParameters &)>, std::less<> > lateral_controller_map
Definition map.hpp:15