Galaxis Codebase  1.0.0
Team Galaxis software stack for the Carolo Cup 2023 - ROS2 based software
AutopilotSettings.hpp
Go to the documentation of this file.
1 #ifndef MAPSETTINGS_H
2 #define MAPSETTINGS_H
3 
4 #include <array>
5 
6 #include <galaxis/linatypes.hpp>
7 
8 using namespace galaxis::lina;
9 
10 namespace galaxis {
11 
12  namespace autopilot {
13  /*
14  DR DRIFT:
15  - wheelbase 0.24m
16  - Longitudinal Distance from CarOrigin (Car Camera Position) to Front Axis ~0.206m
17  - Longitudinal Distance from CarOrigin (Car Camera Position) to Rear Axis ~-0.034m
18  -> Center of Car: lat=0m, long=0.086m -> x=0m, y=0.086m
19  */
20  // SIMULATION Car Offset to Car Center
22 
23  // Image Import
24  constexpr float realPixelToPositionConversionFactorCM = 0.78125f;
25  // constexpr float realPixelToPositionConversionFactorCM = 1.5625f;
27 
28 
29  constexpr int imageLLinePixelByteIndex = 0; // Left Line Byte in Pixel
30  constexpr int imageCLinePixelByteIndex = 1; // Center
31  constexpr int imageRLinePixelByteIndex = 2; // Right
32 
33  // Image Ignore Field
34  // [left-y 0, left-x-middle 1, left-y-middle 2, right-x-middle 3, right-y-middle 4, right-y 5]
35  constexpr std::array<unsigned int, 6> imageIgnoreFieldArray = {125, 87, 222, 165, 227, 138}; // 256x265
36  // constexpr std::array<unsigned int, 6> imageIgnoreFieldArray = {63, 44, 111, 83, 114, 69}; // 128x128
37 
38  constexpr int lookupLookBehindCarCM = 10; // TODO increase but test if works properly with rotation etc
39 
40  // NOTE: ALL OTHER PARAMETERS ARE MOVED TO SYSTEM.JSON
41 
42  } // namespace autopilot
43 
44 } // namespace galaxis
45 
46 #endif
galaxis::autopilot::imageCLinePixelByteIndex
constexpr int imageCLinePixelByteIndex
Definition: AutopilotSettings.hpp:30
galaxis::autopilot::lookupLookBehindCarCM
constexpr int lookupLookBehindCarCM
Definition: AutopilotSettings.hpp:38
galaxis::lina
Definition: linatypes.hpp:11
galaxis
Definition: MapClasses.hpp:10
galaxis::autopilot::imageLLinePixelByteIndex
constexpr int imageLLinePixelByteIndex
Definition: AutopilotSettings.hpp:29
galaxis::autopilot::imageIgnoreFieldArray
constexpr std::array< unsigned int, 6 > imageIgnoreFieldArray
Definition: AutopilotSettings.hpp:35
galaxis::lina::Vector2f
Eigen::Vector2f Vector2f
Definition: linatypes.hpp:14
linatypes.hpp
galaxis::autopilot::realPixelToPositionConversionFactorCM
constexpr float realPixelToPositionConversionFactorCM
Definition: AutopilotSettings.hpp:24
galaxis::autopilot::imageRLinePixelByteIndex
constexpr int imageRLinePixelByteIndex
Definition: AutopilotSettings.hpp:31
galaxis::autopilot::simulationPixelToPositionConversionFactorCM
constexpr float simulationPixelToPositionConversionFactorCM
Definition: AutopilotSettings.hpp:26
galaxis::autopilot::simluationCarPositionOffsetToFrontAxisM
const galaxis::lina::Vector2f simluationCarPositionOffsetToFrontAxisM
Definition: AutopilotSettings.hpp:21