config.ini 3.71 KB
Newer Older
Ahmad Reza's avatar
Ahmad Reza committed
1
[Simulator]
2
3
## Seedvalue for the same random sequence
## Different number creates a different random sequence
Ahmad Reza's avatar
Ahmad Reza committed
4
seedvalue = 12
5

6
## Maximum round number in swarm-world, 0 = infinite
Karol Actun's avatar
Karol Actun committed
7
max_round =  0
8

9
10
## 1/True = Call of particles in randmom order
## 0/False = Call of particles in added order in scenario
Ahmad Reza's avatar
Ahmad Reza committed
11
particle_random_order = True
12
13
14
## 1/True = Call of particles in randmom order after each round
## 0/False = Call of particles in randmom order only once at the start of the simulator
particle_random_order_always = False
15
## Viewing window size in pixels
Karol Actun's avatar
Karol Actun committed
16
17
window_size_x = 1920
window_size_y = 1080
18

Karol Actun's avatar
Karol Actun committed
19
20
21
22
23
24
25
[Visualization]
# Visualization 1 = On, 0 = Off
visualization = 1

#gui
gui = default_gui

Karol Actun's avatar
Karol Actun committed
26

Karol Actun's avatar
Karol Actun committed
27
28
29
30
31
32
33
# Grid Configs. uncomment your choice!

;# Quadratic Grid grid default configs:
;grid_class = QuadraticGrid
;# .obj (Wavefront) filenames in lib/visualization/models
;particle_model_file = 2d_particle.obj
;tile_model_file = 2d_quad_tile.obj
34
;location_model_file = 2d_location.obj
Karol Actun's avatar
Karol Actun committed
35
;grid_size = 1000
36
;# end of Quadratic grid configs
Karol Actun's avatar
Karol Actun committed
37
38


39
40
41
42
43
44
45
46
47
# Triangular grid default configs:
grid_class = TriangularGrid
# .obj (Wavefront) filenames in lib/visualization/models
particle_model_file = 2d_particle.obj
tile_model_file = 2d_hex_tile.obj
location_model_file = 2d_location.obj
grid_size = 100
# end of Triangular grid configs

Karol Actun's avatar
Karol Actun committed
48
49
50
51
52

;# cubic grid default configs:
;grid_class = CubicGrid
;particle_model_file = 3d_particle_low_poly.obj
;tile_model_file = 3d_cube_tile.obj
53
;location_model_file = 3d_location.obj
Karol Actun's avatar
Karol Actun committed
54
;grid_size = 10
55
;# end of cubic grid configs
Karol Actun's avatar
Karol Actun committed
56

57
58
59
60
61
62
63
64
65
;
;# ccp grid default configs:
;grid_class = CCPGrid
;particle_model_file = 3d_particle.obj
;tile_model_file = 3d_ccp_tile.obj
;location_model_file = 3d_location.obj
;grid_size = 10
;# end of ccp grid configs
;
Karol Actun's avatar
Karol Actun committed
66
67
68
69

# matter default colors (rgba)
particle_color = (0.8, 0.3, 0.3, 1.0)
tile_color = (0.3, 0.3, 0.8, 1.0)
70
location_color = (0.3, 0.8, 0.3, 1.0)
Karol Actun's avatar
Karol Actun committed
71
72
73
74
75
grid_color = (0.0, 0.0, 0.0, 1.0)
cursor_color = (0.5, 0.5, 0.5, 0.5)
center_color = (1.0, 0.0, 0.0, 0.5)

# background  (rgb)
76
background_color = (1.0, 1.0, 1.0)
Karol Actun's avatar
Karol Actun committed
77
78
79
80
81
82
# color of grid lines (rgba)
line_color = (0.0, 0.0, 0.0, 1.0)
# length/scaling of the grid lines (max should be 1,1,1)
line_scaling = (1.0, 1.0, 1.0)
# flag for showing the lines
show_lines = True
83
84
85
86
87
88
# color of grid coordinates (rgba)
coordinates_color = (0.0, 0.0, 0.0, 1.0)
# size/scaling of the coordinate model. wouldn't make it bigger than 0.2, 0.2, 0.2
coordinates_scaling = (0.05, 0.05, 0.05)
# flag for showing the coordinate models
show_coordinates = True
Karol Actun's avatar
Karol Actun committed
89
# flag for showing the center of the grid
90
show_center = False
Karol Actun's avatar
Karol Actun committed
91
92
93
# camera focus color
focus_color = (1.0, 1.0, 1.0, 0.5)
# show camera focus
94
show_focus = False
Karol Actun's avatar
Karol Actun committed
95
96
97
98
99
100
101
102
103

# Camera init values
look_at = (0.0, 0.0, 0.0)
phi = -90
theta = 0
radius = 10
fov = 40
cursor_offset = -10
render_distance = 1000
Karol Actun's avatar
Karol Actun committed
104

105
[World]
Karol Actun's avatar
Karol Actun committed
106

107
108
109
## False = Unlimited world size
## True = limited world size
border = False
110

Ahmad Reza's avatar
Ahmad Reza committed
111
## Swarm-World world size in points
Ahmad Reza's avatar
Ahmad Reza committed
112
## Works only with border flag set on True
113
114
size_x = 2000.0
size_y = 2000.0
115
116

## Maximum number of particles that can be created while simulating
Karol Actun's avatar
Karol Actun committed
117
max_particles = 100000000
118
119
120

[Matter]
## with memory (mm) limitation 1=Yes 0=No
121
memory_limitation = False
122

Ahmad Reza's avatar
Ahmad Reza committed
123
## mm size in quantity 
124
## Works only with memory_limitation flag set on 1
125
location_mm_size = 2
Ahmad Reza's avatar
Ahmad Reza committed
126
127
128
129
particle_mm_size = 2
tile_mm_size = 2

[File]
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
##Examples##

##Moving
#scenario = lonely_particle
scenario = n_particle_in_line
solution = random_walk
#solution = triangular_round_walk
#solution = random_walk_with_take_and_drop

## Creating and Deleting
#scenario = lonely_particle
#solution =  create_delete

## Take and Drop
#scenario=two_particles_tiles_locations
#solution= take_drop_aims

## Read and Write
#scenario = two_particles_tiles_markers
#solution =  read_write

#scenario = test_interfaces
#solution =  test_all_the_interfaces
153