-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRobot_Fabricator.py
More file actions
37 lines (29 loc) · 1.47 KB
/
Robot_Fabricator.py
File metadata and controls
37 lines (29 loc) · 1.47 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
import random
from robotExpansion_DSGE import robot_grammar_expansion_2, robot_grammar_expansion_3
from URDFs_set import Autonomous_Assembly_working, Autonomous_Assembly_working_simmetry
from URDFs_set import Autonomous_Assembly
from SIMETRIA_WORKING import Simetric_Robot
print("Robot Fabricator Started: ")
for i in range(11):
# random.seed(80 + i)
# print("Seed number: " + str(80 + i))
#robot_prototype, robot_tree = robot_grammar_expansion_3.generate_robot()
# print("Final generated string:")
# print("BEGINNING:::> " + robot_prototype + " <:::END")
# print("\nFull tree structure:")
# robot_tree.hshow()
random.seed(80+i)
robot_prototype, robot_tree = Simetric_Robot.generate_robot()
print("Final generated string:")
print("BEGINNING:::> " + robot_prototype + " <:::END")
print("\nFull tree structure:")
robot_tree.hshow()
robot_product = Autonomous_Assembly_working_simmetry.assemblement(robot_tree, i)
"""
É de notar que:
-> o robot_grammar_expansion_2 esta com as regras gramaticais com as 6 faces e sempre a funcionar com as 6 faces;
-> o robot_grammar_expansion_3 esta com as regras gramaticais novas com as 5 faces;
-> o Autonomous_Assembly_working é o mais atual sendo que tem as regras para novo cubo quando adicionado, anotando qual o lado ocupado
"""
#robot_product = Autonomous_Assembly.assemblement(robot_tree, i)
#robot_product = Autonomous_Assembly_working.assemblement(robot_tree, 0)