Formula Student Autonomous Systems
The code for the main driverless system
Loading...
Searching...
No Matches
main.cpp
Go to the documentation of this file.
1#include <cstdio>
2
3#include "adapters/map.hpp"
4#include "config/parameters.hpp"
5
13int main(int argc, char **argv) {
14 (void)argc;
15 (void)argv;
16 rclcpp::init(argc, argv);
17 VEParameters params;
18 std::string adapter_name = params.load_config();
19 auto ve_node = adapter_map.at(adapter_name)(params);
20 rclcpp::spin(ve_node);
21 rclcpp::shutdown();
22
23 return 0;
24}
const std::map< std::string, std::function< std::shared_ptr< ControlNode >(const ControlParameters &)>, std::less<> > adapter_map
Definition map.hpp:18
Definition main.py:1
std::string load_config()
Load the configuration for the Velocity Estimation node from YAML file.
Definition parameters.cpp:3