sampleUniform
Sample state using uniform distribution
Syntax
Description
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 of the bounds of the state space object. Specify the
center of the sampling region state
= sampleUniform(space
,nearState
,distVector
,numSamples
)nearState
and the distance from the
center of the sampling region to its boundaries distVector
.
Note
The stateSpaceSE3
object does not support this syntax.
Examples
Input Arguments
Output Arguments
Version History
Introduced in R2019b
See Also
stateSpaceSE2
| stateSpaceSE3
| stateSpaceDubins
| stateSpaceReedsShepp