Пример #1
0
def main():
	 #Initialise Vehicle Class
	TEG =  Vehicle(0,0,2)
	#Initialise blank image
	height = 500
	width = 500  
	#Set the current map class to blank
	agvcmap = map.map(height, width, 255)
	#Generate a list of objects
	genObjects.main(agvcmap)
	#Retrieve objects from file
	obsList = loader.getObs()

	#M Mapping of obstacles and lines onto a pixel image and skeleton planning returning GPS (or distance) waypoints 
		
	#Place obstacles on map
	agvcmap.updateObstacles(obsList)

	#Morph the obstacles
	agvcmap.updateMorph();

	nav = Navigation(agvcmap,obsList,TEG)

	nav.calculatePath()
Пример #2
0
def main():
    #Initialise Vehicle Class
    TEG = Vehicle(0, 0, 2)
    #Initialise blank image
    height = 500
    width = 500
    #Set the current map class to blank
    agvcmap = map.map(height, width, 255)
    #Generate a list of objects
    genObjects.main(agvcmap)
    #Retrieve objects from file
    obsList = loader.getObs()

    #M Mapping of obstacles and lines onto a pixel image and skeleton planning returning GPS (or distance) waypoints

    #Place obstacles on map
    agvcmap.updateObstacles(obsList)

    #Morph the obstacles
    agvcmap.updateMorph()

    nav = Navigation(agvcmap, obsList, TEG)

    nav.calculatePath()
Пример #3
0
def column(matrix, i):
    return [row[i] for row in matrix]


if __name__ == "__main__":

    #Initialise Vehicle Class
    TEG = Vehicle(0, 0, 2)
    #Initialise blank image
    height = 500
    width = 500
    #Set the current map class to blank
    agvcmap = map.map(height, width, 255)
    #Generate a list of objects
    genObjects.main(agvcmap)
    #Retrieve objects from file
    obsList = loader.getObs()

    #M Mapping of obstacles and lines onto a pixel image and skeleton planning returning GPS (or distance) waypoints

    #Place obstacles on map
    agvcmap.updateObstacles(obsList)

    #Morph the obstacles
    agvcmap.updateMorph()

    #Plan routes through obstacles
    #Skeleton Method---------------------------------------
    #cv2.imwrite('AGVCmap2.jpg', agvcmap.getImage())
    #img = cv2.imread('AGVCmap2.jpg',0)
Пример #4
0
    return xvals, yvals

def column(matrix, i):
    return [row[i] for row in matrix]

if __name__ == "__main__":

    #Initialise Vehicle Class
    TEG =  Vehicle(0,0,2)
    #Initialise blank image
    height = 500
    width = 500  
    #Set the current map class to blank
    agvcmap = map.map(height, width, 255)
    #Generate a list of objects
    genObjects.main(agvcmap)
    #Retrieve objects from file
    obsList = loader.getObs()

    #M Mapping of obstacles and lines onto a pixel image and skeleton planning returning GPS (or distance) waypoints 
        
    #Place obstacles on map
    agvcmap.updateObstacles(obsList)

    #Morph the obstacles
    agvcmap.updateMorph();

    #Plan routes through obstacles
    #Skeleton Method---------------------------------------
    #cv2.imwrite('AGVCmap2.jpg', agvcmap.getImage())
    #img = cv2.imread('AGVCmap2.jpg',0)