dubins_curves.cpp
Go to the documentation of this file.
1 //=============================================================================
2 // Copyright (C) 2021-2024 Wageningen University - All Rights Reserved
3 // Author: Gonzalo Mier
4 // BSD-3 License
5 //=============================================================================
6 
7 #include <steering_functions/dubins_state_space/dubins_state_space.hpp>
10 
11 namespace f2c::pp {
12 
14  double dist_start_pos, double start_angle, double end_angle) {
15  steer::State start, end;
16 
17  start.x = 0.0;
18  start.y = 0.0;
19  start.theta = start_angle;
20  start.kappa = 0.0;
21  start.d = 0;
22 
23  end.x = dist_start_pos;
24  end.y = 0.0;
25  end.theta = end_angle;
26  end.kappa = 0.0;
27  end.d = 0;
28 
29  Dubins_State_Space ss(
30  robot.getMaxCurv(),
32  true);
33  return steerStatesToPath(ss.get_path(start, end), robot.getTurnVel());
34 }
35 
36 } // namespace f2c::pp
37 
f2c::pp::steerStatesToPath
types::Path steerStatesToPath(const std::vector< steer::State > &curve, double const_vel)
Definition: steer_to_path.hpp:21
f2c::pp
Path planning algorithms' namespace.
Definition: dubins_curves.h:14
1_basic_types.end
end
Definition: 1_basic_types.py:76
f2c::pp::DubinsCurves::createSimpleTurn
F2CPath createSimpleTurn(const F2CRobot &robot, double dist_start_pos, double start_angle, double end_angle) override
Create a turn.
Definition: dubins_curves.cpp:13
steer_to_path.hpp
2_objective_functions.robot
robot
Definition: 2_objective_functions.py:76
f2c::types::Path
Definition: Path.h:23
f2c::pp::TurningBase::discretization
double discretization
Definition: turning_base.h:92
f2c::types::Robot
Definition: Robot.h:25
dubins_curves.h


fields2cover
Author(s):
autogenerated on Fri Apr 25 2025 02:18:31