Skip to content

Commit

Permalink
#10 Add more parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
dongdongO committed Apr 11, 2024
1 parent 413f475 commit 5315bd8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion algorithm/src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,12 @@ int main() {
std::vector<std::vector<double>> route = planner.get_route();

std::vector<double> cpoint = {130.0, 64.0, 0};
double speed = 20.0;
double WB = 16/resolution;
double Kdd = 1.8/resolution;
double Ldc = 5/resolution;

auto purepursuit = PurePursuit(route, 20.0, cpoint, WB, Kdd, Ldc);
auto purepursuit = PurePursuit(route, speed, cpoint, WB, Kdd, Ldc);
purepursuit.purepursuit_control();

std::vector<std::vector<double>> control_path = purepursuit.getTrajectory();
Expand Down

0 comments on commit 5315bd8

Please sign in to comment.