Local Planner
local_planner
¤
LocalPlanner
¤
__init__(self, vehicle, controller=None, behavior_planner=None, mission_planner=None)
special
¤
Source code in ROAR_simulation/roar_autonomous_system/planning_module/local_planner/local_planner.py
23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 |
|
run_step(self, vehicle)
¤
On every step, produce an actionable plan
Returns:
Type | Description |
---|---|
VehicleControl |
Source code in ROAR_simulation/roar_autonomous_system/planning_module/local_planner/local_planner.py
46 47 48 |
|
simple_waypoint_following_local_planner
¤
SimpleWaypointFollowingLocalPlanner
¤
__init__(self, vehicle, controller, mission_planner, behavior_planner, closeness_threshold=0.5)
special
¤
Initialize Simple Waypoint Following Planner
Parameters:
Name | Type | Description | Default |
---|---|---|---|
vehicle |
Vehicle |
Vehicle information |
required |
controller |
Controller |
Control module used |
required |
mission_planner |
MissionPlanner |
mission planner used |
required |
behavior_planner |
BehaviorPlanner |
behavior planner used |
required |
closeness_threshold |
|
how close can a waypoint be with the vehicle |
0.5 |
Source code in ROAR_simulation/roar_autonomous_system/planning_module/local_planner/simple_waypoint_following_local_planner.py
26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 |
|
is_done(self)
¤
If there are nothing in self.way_points_queue, that means you have finished a lap, you are done
Returns:
Type | Description |
---|---|
bool |
True if Done, False otherwise |
Source code in ROAR_simulation/roar_autonomous_system/planning_module/local_planner/simple_waypoint_following_local_planner.py
69 70 71 72 73 74 75 76 77 |
|
run_step(self, vehicle)
¤
Procedure
- Sync data
- get the correct look ahead for current speed
- get the correct next waypoint
- feed waypoint into controller
- return result from controller
Parameters:
Name | Type | Description | Default |
---|---|---|---|
vehicle |
Vehicle |
current vehicle state |
required |
Returns:
Type | Description |
---|---|
VehicleControl |
next control that the local think the agent should execute. |
Source code in ROAR_simulation/roar_autonomous_system/planning_module/local_planner/simple_waypoint_following_local_planner.py
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 146 147 148 149 |
|
set_mission_plan(self)
¤
clears current waypoints, and reset mission plan from start I am simply transfering the mission plan into my waypoint queue. Assuming that this current run will run all the way to the end
Returns:
Type | Description |
---|---|
None |
None |
Source code in ROAR_simulation/roar_autonomous_system/planning_module/local_planner/simple_waypoint_following_local_planner.py
54 55 56 57 58 59 60 61 62 63 64 65 66 67 |
|