Pure Pursuit Controller#
The Pure Pursuit Controller module calculates the steering angle for tracking a desired trajectory using the pure pursuit algorithm. This is used as a lateral controller plugin in the autoware_trajectory_follower_node.
Inputs#
Set the following from the controller_node
autoware_planning_msgs/Trajectory: reference trajectory to follow.nav_msgs/Odometry: current ego pose and velocity information
Outputs#
Return LateralOutput which contains the following to the controller node
autoware_control_msgs/Lateral: target steering angle- LateralSyncData
- steer angle convergence
autoware_planning_msgs/Trajectory: predicted path for ego vehicle
Parameters#
| Name | Type | Description | Default | Range |
|---|---|---|---|---|
| ld_ |
float | Velocity ratio for lookahead distance. | 2.4 | N/A |
| ld_ |
float | Lateral error ratio for lookahead distance. | 3.6 | N/A |
| ld_ |
float | Curvature ratio for lookahead distance. | 120.0 | N/A |
| long_ |
float | Threshold for lateral error in long lookahead distance. | 0.5 | N/A |
| min_ |
float | Minimum lookahead distance. | 4.35 | N/A |
| max_ |
float | Maximum lookahead distance. | 15.0 | N/A |
| converged_ |
float | Steering angle considered as converged. | 0.1 | N/A |
| reverse_ |
float | Minimum lookahead distance for reversing. | 7.0 | N/A |
| prediction_ |
float | Prediction step size. | 0.3 | N/A |
| prediction_ |
float | Prediction distance length. | 21.0 | N/A |
| resampling_ |
float | Resampling step size. | 0.1 | N/A |
| curvature_ |
float | Distance for curvature calculation. | 4.0 | N/A |
| enable_ |
boolean | Enable or disable path smoothing. | false | N/A |
| path_ |
float | Number of points for moving average path filter. | 25 | N/A |