pure pursuit controller -凯发k8网页登录

main content

pure pursuit controller

pure pursuit is a path tracking algorithm. it computes the angular velocity command that moves the robot from its current position to reach some look-ahead point in front of the robot. the linear velocity is assumed constant, hence you can change the linear velocity of the robot at any point. the algorithm then moves the look-ahead point on the path based on the current position of the robot until the last point of the path. you can think of this as the robot constantly chasing a point in front of it. the property lookaheaddistance decides how far the look-ahead point is placed.

the object is not a traditional controller, but acts as a tracking algorithm for path following purposes. your controller is unique to a specified a list of waypoints. the desired linear and maximum angular velocities can be specified. these properties are determined based on the vehicle specifications. given the pose (position and orientation) of the vehicle as an input, the object can be used to calculate the linear and angular velocities commands for the robot. how the robot uses these commands is dependent on the system you are using, so consider how robots can execute a motion given these commands. the final important property is the lookaheaddistance, which tells the robot how far along on the path to track towards. this property is explained in more detail in a section below.

reference coordinate system

it is important to understand the reference coordinate frame used by the pure pursuit algorithm for its inputs and outputs. the figure below shows the reference coordinate system. the input waypoints are [x y] coordinates, which are used to compute the robot velocity commands. the pose of the robot is composed of an xy-position and angle in the form [x y theta]. the positive x and y directions are in the right and up directions respectively (blue in figure). the theta value is the angular orientation of the robot measured counterclockwise in radians from the x-axis (robot currently at 0 radians).

look ahead distance

the lookaheaddistance property is the main tuning property for the controller. the look ahead distance is how far along the path the robot should look from the current location to compute the angular velocity commands. the figure below shows the robot and the look-ahead point. as displayed in this image, note that the actual path does not match the direct line between waypoints.

the effect of changing this parameter can change how your robot tracks the path and there are two major goals: regaining the path and maintaining the path. in order to quickly regain the path between waypoints, a small lookaheaddistance will cause your robot to move quickly towards the path. however, as can be seen in the figure below, the robot overshoots the path and oscillates along the desired path. in order to reduce the oscillations along the path, a larger look ahead distance can be chosen, however, it might result in larger curvatures near the corners.

the lookaheaddistance property should be tuned for your application and robot system. different linear and angular velocities will affect this response as well and should be considered for the path following controller.

limitations

there are a few limitations to note about this pure pursuit algorithm:

  • as shown above, the controller cannot exactly follow direct paths between waypoints. parameters must be tuned to optimize the performance and to converge to the path over time.

  • this pure pursuit algorithm does not stabilize the robot at a point. in your application, a distance threshold for a goal location should be applied to stop the robot near the desired goal.

references

[1] coulter, r. implementation of the pure pursuit path tracking algorithm. carnegie mellon university, pittsburgh, pennsylvania, jan 1990.

see also

|

网站地图