lateralControllerStanley
Compute steering angle command for path following by using Stanley method
Syntax
描述
鉴于车辆的当前速度,计算以程度的转向角命令,该命令调节车辆的当前姿势以匹配参考姿势。默认情况下,该功能假设车辆正在向前运动。引导
=外侧controllerstanley(refpose
,Currpose
,咖喱
)
The controller computes the steering angle command using the Stanley method[1], whose control law is based on a kinematic bicycle model. Use this controller for path following in low-speed environments, where inertial effects are minimal.
例子
输入参数
Output Arguments
算法
To compute the steering angle command, the controller minimizes the position error and the angle error of the current pose with respect to the reference pose. The driving direction of the vehicle determines these error values.
When the vehicle is in forward motion ('方向'
名称配对是1
):
The位置错误是从前桥的中心到路径上的参考点的横向距离。
The角度误差是前轮相对于参考路径的角度。
当车辆反向运动时('方向'
名称配对是-1
):
The位置错误is the lateral distance from the center of the rear axle to the reference point on the path.
The角度误差是后轮相对于参考路径的角度。
有关控制器如何最小化这些错误的详细信息,请参见[1].
参考
[1] Hoffmann,Gabriel M.,Claire J. Tomlin,Michael Montemerlo和Sebastian Thrun。“越野驾驶的自动驾驶汽车轨迹跟踪:控制器设计,实验验证和赛车。”美国控制会议. 2007, pp. 2296–2301. doi:10.1109/ACC.2007.4282788