src
fields2cover
path_planning
reeds_shepp_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/reeds_shepp_state_space/reeds_shepp_state_space.hpp>
8
#include "
fields2cover/path_planning/steer_to_path.hpp
"
9
#include "
fields2cover/path_planning/reeds_shepp_curves.h
"
10
11
namespace
f2c::pp
{
12
13
F2CPath
ReedsSheppCurves::createSimpleTurn
(
const
F2CRobot
&
robot
,
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
Reeds_Shepp_State_Space ss(
30
robot
.getMaxCurv(),
31
discretization
);
32
return
steerStatesToPath
(ss.get_path(start,
end
),
33
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
reeds_shepp_curves.h
f2c::pp
Path planning algorithms' namespace.
Definition:
dubins_curves.h:14
1_basic_types.end
end
Definition:
1_basic_types.py:76
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
f2c::pp::ReedsSheppCurves::createSimpleTurn
F2CPath createSimpleTurn(const F2CRobot &robot, double dist_start_pos, double start_angle, double end_angle) override
Create a turn.
Definition:
reeds_shepp_curves.cpp:13
fields2cover
Author(s):
autogenerated on Fri Apr 25 2025 02:18:31