Galaxis Codebase  1.0.0
Team Galaxis software stack for the Carolo Cup 2023 - ROS2 based software
main.cpp
Go to the documentation of this file.
1 #include <memory>
2 #include <unistd.h>
3 
4 #include "ControllerNode.hpp"
5 
6 // NOTE: Settings moved to settings/controller.conf
7 
8 int main(int argc, char* argv[]) {
9  rclcpp::init(argc, argv);
10 
11  auto node = std::make_shared<ControllerNode>();
12 
13  rclcpp::spin(node);
14  rclcpp::shutdown();
15 
16  return 0;
17 }
18 
19 // int main(int argc, char ** argv)
20 // {
21 // (void) argc;
22 // (void) argv;
23 
24 // std::shared_ptr<std::vector<float>> yawStepsSPtr = std::make_shared<std::vector<float>>();
25 // yawStepsSPtr->push_back(-0.698132);
26 // yawStepsSPtr->push_back(-0.349066);
27 // yawStepsSPtr->push_back(0);
28 // yawStepsSPtr->push_back(0.349066);
29 // yawStepsSPtr->push_back(0.698132);
30 
31 // galaxis::control::TwoAndAHalfCarrots control(yawStepsSPtr, 0.5, 2, 3);
32 
33 // std::shared_ptr<galaxis::PolySpline> spline = std::make_shared<galaxis::PolySpline>();
34 // galaxis::polynom poly({0, -100});
35 // spline->add_polynom(0, 100, poly);
36 
37 // std::cout << "Best Yaw Rate: " << control.calculate_best_yaw_rate(spline, 1) << std::endl;
38 // return 0;
39 // }
ControllerNode.hpp
main
int main(int argc, char *argv[])
Definition: main.cpp:13