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 "adapter/map.hpp"
2
3int main(int argc, char* argv[]) {
4 rclcpp::init(argc, argv);
5
7 std::string adapter = params.load_config();
8
9 std::shared_ptr<ControlNode> control_node = adapter_map.at(adapter)(params);
10
11 rclcpp::spin(control_node);
12 rclcpp::shutdown();
13 return 0;
14}
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()