コード例 #1
0
from traversal import mapping
from first_traversal import first_mapping
x=0
y=0
m = [[0,0,0,0,1,0],[0,0,1,0,0,0],[1,1,1,0,0,0],[1,0,0,0,1,1],[0,0,0,0,0,0]]

first_mapping(x,y,m)
mapping(x,y,m)
コード例 #2
0
ファイル: testing.py プロジェクト: Ridhwanluthra/NLMS
from traversal import mapping
#import click_picture as cl

m = [[0, 0, 0, 0, 1, 0], [0, 0, 1, 0, 0, 0], [1, 1, 1, 0, 0, 0],
     [1, 0, 0, 0, 1, 1], [0, 0, 0, 0, 0, 0]]

#cl.clicked()

mapping(m)
コード例 #3
0
ファイル: main.py プロジェクト: Autonomi/NLMS
# RUN THIS SCRIPT AND THE REST WILL RUN THEMSELVES

#from sys import argv
from traversal import mapping
from first_traversal import first_mapping
#from edging import edging

#image_matrix = edging(argv[1]) # convert the picture into edges and return the sub_matrix
x=0
y=0
# now i have the completed map of the room ready

# add the ultrasonic sensors to find and save from obstacles.
image_matrix = [[0,0,0,0,1,0],[0,0,1,0,0,0],[1,1,1,0,0,0],[1,0,0,0,1,1],[0,0,0,0,0,0]]

first_mapping(x, y, image_matrix)

while True:
	mapping(x, y, image_matrix)
コード例 #4
0
ファイル: main.py プロジェクト: Ridhwanluthra/NLMS
# RUN THIS SCRIPT AND THE REST WILL RUN THEMSELVES

#from sys import argv
from traversal import mapping
from first_traversal import first_mapping
from anomaly import correct_the_location, rest
#from edging import edging
rest()
#image_matrix = edging(argv[1]) # convert the picture into edges and return the sub_matrix
# now i have the completed map of the room ready

# add the ultrasonic sensors to find and save from obstacles.
image_matrix = [[0, 0, 0, 0, 1, 0], [0, 0, 1, 0, 0, 0], [1, 1, 1, 0, 0, 0],
                [1, 0, 0, 0, 1, 1], [0, 0, 0, 0, 0, 0]]

first_mapping(image_matrix)

while True:
    if mapping(image_matrix) == True:
        continue
    else:
        correct_the_location(image_matrix)
        continue
コード例 #5
0
ファイル: main.py プロジェクト: Ridhwanluthra/NLMS
# RUN THIS SCRIPT AND THE REST WILL RUN THEMSELVES

#from sys import argv
from traversal import mapping
from first_traversal import first_mapping
from anomaly import correct_the_location, rest
#from edging import edging
rest()
#image_matrix = edging(argv[1]) # convert the picture into edges and return the sub_matrix
# now i have the completed map of the room ready

# add the ultrasonic sensors to find and save from obstacles.
image_matrix = [[0,0,0,0,1,0],[0,0,1,0,0,0],[1,1,1,0,0,0],[1,0,0,0,1,1],[0,0,0,0,0,0]]

first_mapping(image_matrix)

while True:
	if mapping(image_matrix) == True:
                continue
        else:
                correct_the_location(image_matrix)
                continue