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
13
int
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
}
adapter_map
const std::map< std::string, std::function< std::shared_ptr< ControlNode >(const ControlParameters &)>, std::less<> > adapter_map
Definition
map.hpp:18
main
Definition
main.py:1
VEParameters
Definition
parameters.hpp:12
VEParameters::load_config
std::string load_config()
Load the configuration for the Velocity Estimation node from YAML file.
Definition
parameters.cpp:3
map.hpp
src
velocity_estimation
src
main.cpp
Generated by
1.9.8