sampleStartGoal
Syntax
Description
[
selects a valid start and goal state from an input map environment. By default, the function
makes a maximum of 100 attempts to select the states.startState
,goalState
] = sampleStartGoal(stateValidator
)
[
specifies the number of valid start and goal states to select from an input map environment.
By default, the function makes a maximum of 100 attempts to select the specified number of
states. If the function is not able to find the specified number of states within 100
attempts, it returns the states that are identified.startState
,goalState
] = sampleStartGoal(stateValidator
,numStates
)
[___] = sampleStartGoal(
specifies the maximum number of attempts to select the specified number of start and goal
states. Use this syntax to increase the maximum number of attempts in order to get the
desired number of states.stateValidator
,numStates
,maxAttempts
)
Examples
Input Arguments
Output Arguments
Extended Capabilities
Version History
Introduced in R2024a
See Also
plannerMPNET
| plannerRRT
| plannerRRTStar
| plannerBiRRT
| plannerControlRRT
| plannerAStar
| plannerAStarGrid
| plannerHybridAStar
| plannerPRM