path = plan(planner,start,goal)
computes an obstacle-free path between start and goal poses, specified as
[xytheta] vectors, using the input plannerHybridAStar object.
Create a state validator object for collision checking.
validator = validatorOccupancyMap;
Assign the map to the state validator object.
validator.Map = map;
Plan and Visualize Path
Initialize the plannerHybridAStar object with the state validator object. Specify the MinTurningRadius and MotionPrimitiveLength properties of the planner.
Define start and goal poses for the vehicle as [x, y, theta] vectors. x and y specify the position in meters, and theta specifies the orientation angle in radians.
start — Start location of path three-element vector
Start location of path, specified as a 1-by-3 vector in the form
[xytheta]. x and y
specify the position in meters, and theta specifies the orientation
angle in radians.
Example: [5 5 pi/2]
Data Types: double
goal — Final location of path three-element vector
Final location of path, specified as a 1-by-3 vector in the form
[xytheta]. x and y
specify the position in meters, and theta specifies the orientation
angle in radians.