控制器PurePursuit
创建控制器以遵循一组航点
描述
这控制器PurePursuit
系统对象™ creates a controller object used to make a differential-drive vehicle follow a set of waypoints. The object computes the linear and angular velocities for the vehicle given the current pose. Successive calls to the object with updated poses provide updated velocity commands for the vehicle. Use theMaxAngularVelocity
andDesiredlinearlecity
根据车辆的性能更新速度的属性。
这lookaheaddistance
property computes a look-ahead point on the path, which is a local goal for the vehicle. The angular velocity command is computed based on this point. Changinglookaheaddistance
对算法的性能有重大影响。较高的距离距离导致车辆的轨迹更平滑,但可能导致车辆沿着路径弯曲。较低的前景距离可能会导致跟踪路径的振荡,从而导致行为不稳定。有关纯追求算法的更多信息,请参阅纯粹的追击控制器。
笔记
从R2016b开始,而不是使用步
执行由系统对象定义的操作的方法,您可以用参数调用对象,就好像它是函数一样。例如,y = step(obj,x)
andy = obj(x)
执行等效操作。
To compute linear and angular velocity control commands:
创建
控制器PurePursuit
对象并设置其属性。用参数调用对象,就好像它是一个函数一样。
要了解有关系统对象如何工作的更多信息,请参阅什么是系统对象?
创建
描述
创建一个纯粹的追击物体,该对象使用纯粹的追击算法来计算差速器驱动车辆的线性和角速度输入。控制器
= ControllerPurePursuit
creates a pure pursuit object with additional options specified by one or more控制器
= ControllerPurePursuit(Name,Value)名称,价值
pairs. Name is the property name and Value is the corresponding value. Name must appear inside single quotes (''
)。您可以按任何顺序指定几个名称值对参数Name1,Value1,...,NameN,ValueN
。未指定的属性保留其默认值。
Example:控制器= controllerpurepursuit('Desiredlinearvelocity',0.5)
特性
Usage
描述
输入参数
输出参数
对象功能
要使用对象函数,请将系统对象指定为第一个输入参数。例如,释放名称的系统对象的系统资源OBJ
,,,,use this syntax:
发行版(obj)