M-File Help: RandomPath View code for RandomPath

RandomPath

Vehicle driver class

d = speed. The waypoints are positioned inside a region bounded by +/- dim in the x- and y-directions. The driver object is attached to a Vehicle object by the latter's add_driver() method.

Methods

init reset the random number generator
demand return speed and steer angle to next waypoint
display display the state and parameters in human readable form
char convert the state and parameters to human readable form

Properties

goal current goal coordinate
veh the Vehicle object being controlled
dim dimensions of the work space
speed speed of travel
closeenough proximity to waypoint at which next is chosen
randstream random number stream used for coordinates

Example

veh = Vehicle(V);
veh.add_driver( RandomPath(20, 2) );

Notes

Reference

Robotics, Vision & Control, Peter Corke, Springer 2011

See also

Vehicle


RandomPath.RandomPath

Create a driver object

d = speed. The waypoints are positioned inside a region bounded by +/- dim in the x- and y-directions.

See also

Vehicle


RandomPath.char

Convert driver parameters and state to a string

s = R.

RandomPath.demand

Compute speed and heading to waypoint

[speed,steer] = R.Vehicle


RandomPath.display

Display driver parameters and state

R.display driver parameters and state in compact human readable form.

See also

RandomPath.char


RandomPath.init

Reset random number generator

R.randstream


 

© 1990-2011 Peter Corke.