propagateWhileValid
Description
[
iteratively propagates the system from the current state q,u,steps] = propagateWhileValid(mobileProp,q0,u0,qTgt,maxSteps)q0 towards a
target state qTgt with an initial control input u0
for a maximum number of steps maxSteps.
At the end of each propagation step i, the system returns these values:
q(i,:)— Current state of the systemu(i,:)— Control input for stepi + 1steps(i)— Number of steps betweeni - 1andi
The function validates all propagations and returns system information between
q0 and the last valid state.
Examples
Input Arguments
Output Arguments
Version History
Introduced in R2021b
![Figure contains an axes object. The axes object with title Occupancy Grid, xlabel X [meters], ylabel Y [meters] contains 4 objects of type image, line. One or more of the lines displays its values using only markers](../../examples/nav/win64/PropagateMobileRobotExample_01.png)
![Figure contains an axes object. The axes object with title Occupancy Grid, xlabel X [meters], ylabel Y [meters] contains 4 objects of type image, line. One or more of the lines displays its values using only markers](../../examples/nav/win64/PropagateMobileRobotExample_02.png)