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 "estimators/ekf.hpp"
9
10/*
11 * Map of velocity estimators, with the key being the type of the estimator and the value being a
12 * lambda function that returns a shared pointer to the corresponding estimator
13 */
14const std::map<std::string, std::function<std::shared_ptr<VelocityEstimator>(const VEParameters&)>,
15 std::less<>>
17 {"ekf",
18 [](const VEParameters& params) -> std::shared_ptr<VelocityEstimator> {
19 return std::make_shared<EKF>(params);
20 }},
21 {"no_rear_wss_ekf",
22 [](const VEParameters& params) -> std::shared_ptr<VelocityEstimator> {
23 return std::make_shared<NoRearWSSEKF>(params);
24 }},
25};
const std::map< std::string, std::function< std::shared_ptr< VelocityEstimator >(const VEParameters &)>, std::less<> > estimators_map_
Definition map.hpp:16