31 std::cout <<
"スピード(100ms), forword値, Target値, turn値, 前進値" << std::endl;
32 run(navi, -100.0, 100.0,
true);
33 run(navi, -300.0, 80.0,
true);
34 run(navi, -150.0, 100.0,
false);
35 run(navi, -150.0, 400.0,
false);
41 bool isEndAngle =
false;
43 if(isBack ==
true)minus = -1;
71 std::random_device rnd;
72 std::mt19937 mt(rnd());
73 std::uniform_int_distribution<int> rand50(0,50);
74 double r_forword = rand50(mt) * 0.3;
float getDiffLine(float, float)
bool calculateValue(std::int32_t, std::int32_t, bool)
void init_normal_vector(float _start_x, float _start_y, float _goal_x, float _goal_y, float _current_x, float _current_y)
bool calculateAngle(std::int32_t, std::int32_t, bool)
void setPid(double _p_gain, double _i_gain, double _d_gain, double _target)
void run(Navigation &navi, float goal_x, float goal_y, bool)
void update(std::int32_t left_motor_sl, std::int32_t right_motor_sl)
void calculate_line_angle(bool)
2点間を結ぶ仮想直線をライントレースするクラスのヘッダファイル
bool setLine(float, float, float, float)
std::int16_t getSpeed100ms()
bool is_over_normal_vector(float _current_x, float _current_y)
void calcVirtualWheels(int, int)
SpeedControl speedControl