Sample state using uniform distribution
samples
a state within the bounds in the state
= sampleUniform(space
)StateBounds
property of the specified
state space object space
using a uniform probability distribution. For
a stateSpaceSE3
object, the state variables corresponding to orientation are bound to a unit quaternion
using a uniform distribution of random rotations.
returns a specified number of state samples state
= sampleUniform(space
,numSamples
)numSamples
within the
bounds of the state space object.
samples states in a specified subregion defined by state
= sampleUniform(space
,nearState
,distVector
,numSamples
)nearState
and
distVector
. The center of the subregion is the
nearState
. distVector
defines the distance from
the two boundaries of the subregion to the center.
Note
The stateSpaceSE3
object does not support this syntax.
stateSpaceDubins
| stateSpaceReedsShepp
| stateSpaceSE2
| stateSpaceSE3