Velocity Planner Interface
IVelocityPlanner
Velocity planner interface.
Source code in commonroad_velocity_planner/velocity_planner_interface.py
35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 |
|
config: VelocityPlannerConfig
property
Returns:
Type | Description |
---|---|
VelocityPlannerConfig
|
velocity planner config |
planner: Union[LinearProgramPlanner]
property
Returns:
Type | Description |
---|---|
Union[LinearProgramPlanner]
|
solver interface |
reference_path: ReferencePath
property
Returns:
Type | Description |
---|---|
ReferencePath
|
cr reference_path object |
velocity_planning_problem: VelocityPlanningProblem
property
Returns:
Type | Description |
---|---|
VelocityPlanningProblem
|
current velocity planning problem |
__init__()
Interface for all velocity planners.
Source code in commonroad_velocity_planner/velocity_planner_interface.py
40 41 42 43 44 45 46 47 48 49 50 51 52 53 |
|
plan_velocity(reference_path, velocity_planning_problem, planner_config, velocity_planner=ImplementedPlanners.LinearProgramPlanner, return_spline_profile=False)
Plans velocity profile and returns a global trajectory object, or a Tuple [Global Trajectory, Spline Profile].
Parameters:
Name | Type | Description | Default |
---|---|---|---|
reference_path
|
ReferencePath
|
cr reference path |
required |
planning_problem
|
cr planning problem |
required | |
planner_config
|
VelocityPlannerConfig
|
velocity planner config |
required |
velocity_planner
|
ImplementedPlanners
|
selected velocity planner |
LinearProgramPlanner
|
resampling_distance
|
resampling distance to speed up profile |
required | |
default_goal_velocity
|
default goal velocity is none is given |
required | |
return_spline_profile
|
bool
|
if true, returns a Tuple with global_trajectory and spline_velocity_profile |
False
|
Returns:
Type | Description |
---|---|
Union[GlobalTrajectory, Tuple[GlobalTrajectory, SplineProfile]]
|
returns either only the global trajectory or a Tuple with global_trajectory and spline_velocity_profile |
Source code in commonroad_velocity_planner/velocity_planner_interface.py
83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 |
|