Planners
BasePlanner
Bases: ABC
Interface of a planner.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
workspace |
List[float]
|
Bounding box [xmin, xmax, ymin, ymax] of the planner's workspace. |
required |
objective |
Callable
|
The objective function. |
required |
Source code in pypolo/planners/base_planner.py
plan
abstractmethod
Plan informative waypoint(s) given the robot state.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
state |
ndarray
|
The robot state. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
waypoints |
ndarray
|
The resulting informative waypoint(s) of shape (num_waypoints, 2). |
Source code in pypolo/planners/base_planner.py
MyopicPlanner
Bases: BasePlanner
Interface of a planner.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
workspace |
List[float]
|
Bounding box [xmin, ymin, xmax, ymax] of the planner's workspace. |
required |
objective |
Callable
|
The objective function. |
required |
num_candidates |
int
|
The number of candidates to evaluate. |
1000
|
Source code in pypolo/planners/myopic_planner.py
plan
Plan informative waypoint(s) given the robot state.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
state |
ndarray
|
The robot state. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
waypoints |
ndarray
|
The resulting informative waypoint(s) of shape (num_waypoints, 2). |