To create a map for potential function motion planner in MATLAB, you can follow these steps:
main.m83 chars4 lines
binaryOccupancyMap function:main.m61 chars2 lines
This will create a binary occupancy grid map with mapSizeX by mapSizeY size and mapResolution cell size.
setOccupancy function:main.m219 chars8 lines
This will add two rectangular obstacles to the map.
main.m37 chars3 lines
main.m24 chars3 lines
main.m816 chars20 linesmain.m84 chars2 lines
main.m310 chars8 lines
This will create a MATLAB figure that shows the occupancy grid map, the potential field, the start and goal positions, and the gradient vectors of the potential field.
gistlibby LogSnag