Page 1 of 1

Compute the steering angle command in degrees that controls the current pose of the vehicle with respect to the desired

Posted: Sun Feb 28, 2021 3:38 pm
by esmatparast
Compute the steering angle command in degrees that controls the current pose of the vehicle with respect to the desired reference pose, using the Stanley method.\n\nThe RefPose port accepts a 1-by-3 vector [x, y, theta] as the position of the reference point on the path and the orientation of the path at the point in degrees. In forward motion, the reference point is the nearest point on the path to the center of the front axle of the vehicle. In reverse motion, the reference point is the nearest point on the path to the center of the rear axle. The CurrPose port accepts a 1-by-3 vector [x, y, theta] as the position of the center of the rear axle and the heading angle of the vehicle in degrees. The CurrVelocity port accepts a scalar as the current longitudinal velocity of the vehicle in meters/second. The Direction port accepts a scalar representing the driving direction: 1 for forward motion and -1 for reverse motion.\n\nSetting the Vehicle model parameter to Dynamic bicycle model enables additional input ports. The Curvature port accepts a scalar representing the curvature of the path at the reference point. The CurrYawRate port accepts a scalar as the current yaw rate in degrees/second. The CurrSteer port accepts a scalar representing the current steering angle in degrees


block