blob: dde67c5e0ef5e1da7daf912829cf2932ca9c16d3 [file] [log] [blame]
Parker Schuhdc682952018-03-03 18:24:01 -08001from __future__ import print_function
Parker Schuh19b93b12018-03-02 23:26:58 -08002import os
3import basic_window
Parker Schuhdc682952018-03-03 18:24:01 -08004import random
Parker Schuh19b93b12018-03-02 23:26:58 -08005import gi
6import numpy
7gi.require_version('Gtk', '3.0')
8from gi.repository import Gdk
9import cairo
10import graph_generate
11from graph_generate import XYSegment, AngleSegment, to_theta, to_xy, alpha_blend
12from graph_generate import back_to_xy_loop, subdivide_theta, to_theta_loop
13from graph_generate import l1, l2, joint_center
14
15from basic_window import OverrideMatrix, identity, quit_main_loop
16
17import shapely
18from shapely.geometry import Polygon
19
Parker Schuhdc682952018-03-03 18:24:01 -080020
Parker Schuh19b93b12018-03-02 23:26:58 -080021def px(cr):
Parker Schuhdc682952018-03-03 18:24:01 -080022 return OverrideMatrix(cr, identity)
Parker Schuh19b93b12018-03-02 23:26:58 -080023
Parker Schuhdc682952018-03-03 18:24:01 -080024
Parker Schuh19b93b12018-03-02 23:26:58 -080025def draw_px_cross(cr, length_px):
Parker Schuhdc682952018-03-03 18:24:01 -080026 """Draws a cross with fixed dimensions in pixel space."""
27 with px(cr):
28 x, y = cr.get_current_point()
29 cr.move_to(x, y - length_px)
30 cr.line_to(x, y + length_px)
31 cr.stroke()
Parker Schuh19b93b12018-03-02 23:26:58 -080032
Parker Schuhdc682952018-03-03 18:24:01 -080033 cr.move_to(x - length_px, y)
34 cr.line_to(x + length_px, y)
35 cr.stroke()
Parker Schuh19b93b12018-03-02 23:26:58 -080036
Parker Schuhdc682952018-03-03 18:24:01 -080037
Parker Schuh19b93b12018-03-02 23:26:58 -080038def angle_dist_sqr(a1, a2):
Parker Schuhdc682952018-03-03 18:24:01 -080039 """Distance between two points in angle space."""
40 return (a1[0] - a2[0])**2 + (a1[1] - a2[1])**2
41
Parker Schuh19b93b12018-03-02 23:26:58 -080042
43# Find the highest y position that intersects the vertical line defined by x.
44def inter_y(x):
Parker Schuhdc682952018-03-03 18:24:01 -080045 return numpy.sqrt((l2 + l1)**2 -
46 (x - joint_center[0])**2) + joint_center[1]
47
Parker Schuh19b93b12018-03-02 23:26:58 -080048
49# This is the x position where the inner (hyperextension) circle intersects the horizontal line
Parker Schuhdc682952018-03-03 18:24:01 -080050derr = numpy.sqrt((l1 - l2)**2 - (joint_center[1] - 0.3048)**2)
51
Parker Schuh19b93b12018-03-02 23:26:58 -080052
53# Define min and max l1 angles based on vertical constraints.
54def get_angle(boundary):
Parker Schuhdc682952018-03-03 18:24:01 -080055 h = numpy.sqrt((l1)**2 - (boundary - joint_center[0])**2) + joint_center[1]
56 return numpy.arctan2(h, boundary - joint_center[0])
57
Parker Schuh19b93b12018-03-02 23:26:58 -080058
59# left hand side lines
60lines1 = [
Parker Schuhdc682952018-03-03 18:24:01 -080061 (-0.826135, inter_y(-0.826135)),
62 (-0.826135, 0.1397),
63 (-23.025 * 0.0254, 0.1397),
64 (-23.025 * 0.0254, 0.3048),
65 (joint_center[0] - derr, 0.3048),
Parker Schuh19b93b12018-03-02 23:26:58 -080066]
67
68# right hand side lines
Parker Schuhdc682952018-03-03 18:24:01 -080069lines2 = [(joint_center[0] + derr, 0.3048), (0.422275, 0.3048),
70 (0.422275, 0.1397), (0.826135, 0.1397), (0.826135,
71 inter_y(0.826135))]
Parker Schuh19b93b12018-03-02 23:26:58 -080072
Parker Schuhdc682952018-03-03 18:24:01 -080073t1_min = get_angle((32.525 - 4.0) * 0.0254)
74t2_min = -7.0 / 4.0 * numpy.pi
Parker Schuh19b93b12018-03-02 23:26:58 -080075
Parker Schuhdc682952018-03-03 18:24:01 -080076t1_max = get_angle((-32.525 + 4.0) * 0.0254)
77t2_max = numpy.pi * 3.0 / 4.0
78
Parker Schuh19b93b12018-03-02 23:26:58 -080079
80# Draw lines to cr + stroke.
81def draw_lines(cr, lines):
Parker Schuhdc682952018-03-03 18:24:01 -080082 cr.move_to(lines[0][0], lines[0][1])
83 for pt in lines[1:]:
84 cr.line_to(pt[0], pt[1])
85 with px(cr):
86 cr.stroke()
87
Parker Schuh19b93b12018-03-02 23:26:58 -080088
89# Rotate a rasterized loop such that it aligns to when the parameters loop
90def rotate_to_jump_point(points):
Parker Schuhdc682952018-03-03 18:24:01 -080091 last_pt = points[0]
92 for pt_i in range(1, len(points)):
93 pt = points[pt_i]
94 delta = last_pt[1] - pt[1]
95 if abs(delta) > numpy.pi:
Parker Schuhdc682952018-03-03 18:24:01 -080096 return points[pt_i:] + points[:pt_i]
97 last_pt = pt
98 return points
99
Parker Schuh19b93b12018-03-02 23:26:58 -0800100
101# shift points vertically by dy.
102def y_shift(points, dy):
Parker Schuhdc682952018-03-03 18:24:01 -0800103 return [(x, y + dy) for x, y in points]
104
Parker Schuh19b93b12018-03-02 23:26:58 -0800105
106lines1_theta_part = rotate_to_jump_point(to_theta_loop(lines1, 0))
107lines2_theta_part = rotate_to_jump_point(to_theta_loop(lines2))
108
109# Some hacks here to make a single polygon by shifting to get an extra copy of the contraints.
110lines1_theta = y_shift(lines1_theta_part, -numpy.pi * 2) + lines1_theta_part + \
111 y_shift(lines1_theta_part, numpy.pi * 2)
112lines2_theta = y_shift(lines2_theta_part, numpy.pi * 2) + lines2_theta_part + \
113 y_shift(lines2_theta_part, -numpy.pi * 2)
114
115lines_theta = lines1_theta + lines2_theta
116
117p1 = Polygon(lines_theta)
118
Parker Schuhdc682952018-03-03 18:24:01 -0800119p2 = Polygon([(t1_min, t2_min), (t1_max, t2_min), (t1_max, t2_max), (t1_min,
120 t2_max)])
Parker Schuh19b93b12018-03-02 23:26:58 -0800121
122# Fully computed theta constrints.
123lines_theta = list(p1.intersection(p2).exterior.coords)
124
Parker Schuh19b93b12018-03-02 23:26:58 -0800125lines1_theta_back = back_to_xy_loop(lines1_theta)
126lines2_theta_back = back_to_xy_loop(lines2_theta)
127
128lines_theta_back = back_to_xy_loop(lines_theta)
129
Parker Schuhdc682952018-03-03 18:24:01 -0800130
Parker Schuh19b93b12018-03-02 23:26:58 -0800131# Get the closest point to a line from a test pt.
132def get_closest(prev, cur, pt):
Parker Schuhdc682952018-03-03 18:24:01 -0800133 dx_ang = (cur[0] - prev[0])
134 dy_ang = (cur[1] - prev[1])
Parker Schuh19b93b12018-03-02 23:26:58 -0800135
Parker Schuhdc682952018-03-03 18:24:01 -0800136 d = numpy.sqrt(dx_ang**2 + dy_ang**2)
137 if (d < 0.000001):
138 return prev, numpy.sqrt((prev[0] - pt[0])**2 + (prev[1] - pt[1])**2)
139
140 pdx = -dy_ang / d
141 pdy = dx_ang / d
142
143 dpx = pt[0] - prev[0]
144 dpy = pt[1] - prev[1]
145
146 alpha = (dx_ang * dpx + dy_ang * dpy) / d / d
147
148 if (alpha < 0):
149 return prev, numpy.sqrt((prev[0] - pt[0])**2 + (prev[1] - pt[1])**2)
150 elif (alpha > 1):
151 return cur, numpy.sqrt((cur[0] - pt[0])**2 + (cur[1] - pt[1])**2)
152 else:
153 return (alpha_blend(prev[0], cur[0], alpha), alpha_blend(prev[1], cur[1], alpha)), \
154 abs(dpx * pdx + dpy * pdy)
Parker Schuh19b93b12018-03-02 23:26:58 -0800155
156
Parker Schuhdc682952018-03-03 18:24:01 -0800157#
Parker Schuh19b93b12018-03-02 23:26:58 -0800158def closest_segment(lines, pt):
Parker Schuhdc682952018-03-03 18:24:01 -0800159 c_pt, c_pt_dist = get_closest(lines[-1], lines[0], pt)
160 for i in range(1, len(lines)):
161 prev = lines[i - 1]
162 cur = lines[i]
163 c_pt_new, c_pt_new_dist = get_closest(prev, cur, pt)
164 if c_pt_new_dist < c_pt_dist:
165 c_pt = c_pt_new
166 c_pt_dist = c_pt_new_dist
167 return c_pt, c_pt_dist
168
Parker Schuh19b93b12018-03-02 23:26:58 -0800169
170# Create a GTK+ widget on which we will draw using Cairo
171class Silly(basic_window.BaseWindow):
Parker Schuhdc682952018-03-03 18:24:01 -0800172 def __init__(self):
173 super(Silly, self).__init__()
Parker Schuh19b93b12018-03-02 23:26:58 -0800174
Austin Schuhed018082018-07-08 16:01:01 -0700175 self.theta_version = False
Parker Schuhdc682952018-03-03 18:24:01 -0800176 self.reinit_extents()
Parker Schuh19b93b12018-03-02 23:26:58 -0800177
Parker Schuhdc682952018-03-03 18:24:01 -0800178 self.last_pos = (numpy.pi / 2.0, 1.0)
179 self.circular_index_select = -1
Parker Schuh19b93b12018-03-02 23:26:58 -0800180
Parker Schuhdc682952018-03-03 18:24:01 -0800181 # Extra stuff for drawing lines.
182 self.segments = []
183 self.prev_segment_pt = None
184 self.now_segment_pt = None
Austin Schuhee249892018-07-08 16:20:09 -0700185 self.spline_edit = 0
186 self.edit_control1 = True
Parker Schuh19b93b12018-03-02 23:26:58 -0800187
Parker Schuhdc682952018-03-03 18:24:01 -0800188 def reinit_extents(self):
189 if self.theta_version:
190 self.extents_x_min = -numpy.pi * 2
191 self.extents_x_max = numpy.pi * 2
192 self.extents_y_min = -numpy.pi * 2
193 self.extents_y_max = numpy.pi * 2
Parker Schuh19b93b12018-03-02 23:26:58 -0800194 else:
Parker Schuhdc682952018-03-03 18:24:01 -0800195 self.extents_x_min = -40.0 * 0.0254
196 self.extents_x_max = 40.0 * 0.0254
197 self.extents_y_min = -4.0 * 0.0254
198 self.extents_y_max = 110.0 * 0.0254
Parker Schuh19b93b12018-03-02 23:26:58 -0800199
Parker Schuhdc682952018-03-03 18:24:01 -0800200 self.init_extents(
201 (0.5 * (self.extents_x_min + self.extents_x_max), 0.5 *
202 (self.extents_y_max + self.extents_y_min)),
203 (1.0 * (self.extents_x_max - self.extents_x_min), 1.0 *
204 (self.extents_y_max - self.extents_y_min)))
Parker Schuh19b93b12018-03-02 23:26:58 -0800205
Parker Schuhdc682952018-03-03 18:24:01 -0800206 # Handle the expose-event by drawing
207 def handle_draw(self, cr):
208 # use "with px(cr): blah;" to transform to pixel coordinates.
Parker Schuh19b93b12018-03-02 23:26:58 -0800209
Parker Schuhdc682952018-03-03 18:24:01 -0800210 # Fill the background color of the window with grey
211 cr.set_source_rgb(0.5, 0.5, 0.5)
212 cr.paint()
Parker Schuh19b93b12018-03-02 23:26:58 -0800213
Parker Schuhdc682952018-03-03 18:24:01 -0800214 # Draw a extents rectangle
215 cr.set_source_rgb(1.0, 1.0, 1.0)
216 cr.rectangle(self.extents_x_min, self.extents_y_min,
217 (self.extents_x_max - self.extents_x_min),
218 self.extents_y_max - self.extents_y_min)
219 cr.fill()
Parker Schuh19b93b12018-03-02 23:26:58 -0800220
Parker Schuhdc682952018-03-03 18:24:01 -0800221 if not self.theta_version:
222 # Draw a filled white rectangle.
223 cr.set_source_rgb(1.0, 1.0, 1.0)
224 cr.rectangle(-2.0, -2.0, 4.0, 4.0)
225 cr.fill()
Parker Schuh19b93b12018-03-02 23:26:58 -0800226
Parker Schuhdc682952018-03-03 18:24:01 -0800227 cr.set_source_rgb(0.0, 0.0, 1.0)
228 cr.arc(joint_center[0], joint_center[1], l2 + l1, 0,
229 2.0 * numpy.pi)
230 with px(cr):
231 cr.stroke()
232 cr.arc(joint_center[0], joint_center[1], l1 - l2, 0,
233 2.0 * numpy.pi)
234 with px(cr):
235 cr.stroke()
236 else:
237 # Draw a filled white rectangle.
238 cr.set_source_rgb(1.0, 1.0, 1.0)
239 cr.rectangle(-numpy.pi, -numpy.pi, numpy.pi * 2.0, numpy.pi * 2.0)
240 cr.fill()
Parker Schuh19b93b12018-03-02 23:26:58 -0800241
Parker Schuhdc682952018-03-03 18:24:01 -0800242 if self.theta_version:
243 cr.set_source_rgb(0.0, 0.0, 1.0)
244 for i in range(-6, 6):
245 cr.move_to(-40, -40 + i * numpy.pi)
246 cr.line_to(40, 40 + i * numpy.pi)
247 with px(cr):
248 cr.stroke()
Parker Schuh19b93b12018-03-02 23:26:58 -0800249
Parker Schuhdc682952018-03-03 18:24:01 -0800250 if self.theta_version:
251 cr.set_source_rgb(0.5, 0.5, 1.0)
252 draw_lines(cr, lines_theta)
253 else:
254 cr.set_source_rgb(0.5, 1.0, 1.0)
255 draw_lines(cr, lines1)
256 draw_lines(cr, lines2)
Parker Schuh19b93b12018-03-02 23:26:58 -0800257
Parker Schuhdc682952018-03-03 18:24:01 -0800258 def set_color(cr, circular_index):
259 if circular_index == -2:
260 cr.set_source_rgb(0.0, 0.25, 1.0)
261 elif circular_index == -1:
262 cr.set_source_rgb(0.5, 0.0, 1.0)
263 elif circular_index == 0:
264 cr.set_source_rgb(0.5, 1.0, 1.0)
265 elif circular_index == 1:
266 cr.set_source_rgb(0.0, 0.5, 1.0)
267 elif circular_index == 2:
268 cr.set_source_rgb(0.5, 1.0, 0.5)
269 else:
270 cr.set_source_rgb(1.0, 0.0, 0.0)
Parker Schuh19b93b12018-03-02 23:26:58 -0800271
Parker Schuhdc682952018-03-03 18:24:01 -0800272 def get_circular_index(pt):
273 theta1, theta2 = pt
274 circular_index = int(numpy.floor((theta2 - theta1) / numpy.pi))
275 return circular_index
Parker Schuh19b93b12018-03-02 23:26:58 -0800276
Parker Schuhdc682952018-03-03 18:24:01 -0800277 cr.set_source_rgb(0.0, 0.0, 1.0)
278 lines = subdivide_theta(lines_theta)
279 o_circular_index = circular_index = get_circular_index(lines[0])
280 p_xy = to_xy(lines[0][0], lines[0][1])
281 if circular_index == self.circular_index_select:
282 cr.move_to(p_xy[0] + circular_index * 0, p_xy[1])
283 for pt in lines[1:]:
284 p_xy = to_xy(pt[0], pt[1])
285 circular_index = get_circular_index(pt)
286 if o_circular_index == self.circular_index_select:
287 cr.line_to(p_xy[0] + o_circular_index * 0, p_xy[1])
288 if circular_index != o_circular_index:
289 o_circular_index = circular_index
290 with px(cr):
291 cr.stroke()
292 if circular_index == self.circular_index_select:
293 cr.move_to(p_xy[0] + circular_index * 0, p_xy[1])
Parker Schuh19b93b12018-03-02 23:26:58 -0800294
Parker Schuhdc682952018-03-03 18:24:01 -0800295 with px(cr):
296 cr.stroke()
Parker Schuh19b93b12018-03-02 23:26:58 -0800297
Parker Schuhdc682952018-03-03 18:24:01 -0800298 if not self.theta_version:
299 theta1, theta2 = to_theta(self.last_pos, self.circular_index_select)
300 x, y = joint_center[0], joint_center[1]
301 cr.move_to(x, y)
Parker Schuh19b93b12018-03-02 23:26:58 -0800302
Parker Schuhdc682952018-03-03 18:24:01 -0800303 x += numpy.cos(theta1) * l1
304 y += numpy.sin(theta1) * l1
305 cr.line_to(x, y)
306 x += numpy.cos(theta2) * l2
307 y += numpy.sin(theta2) * l2
308 cr.line_to(x, y)
309 with px(cr):
310 cr.stroke()
Parker Schuh19b93b12018-03-02 23:26:58 -0800311
Parker Schuhdc682952018-03-03 18:24:01 -0800312 cr.move_to(self.last_pos[0], self.last_pos[1])
313 cr.set_source_rgb(0.0, 1.0, 0.2)
314 draw_px_cross(cr, 20)
Parker Schuh19b93b12018-03-02 23:26:58 -0800315
Parker Schuhdc682952018-03-03 18:24:01 -0800316 if self.theta_version:
317 cr.set_source_rgb(0.0, 1.0, 0.2)
Parker Schuh19b93b12018-03-02 23:26:58 -0800318
Parker Schuhdc682952018-03-03 18:24:01 -0800319 cr.set_source_rgb(0.0, 1.0, 0.2)
320 cr.move_to(self.last_pos[0], self.last_pos[1])
321 draw_px_cross(cr, 5)
Parker Schuh19b93b12018-03-02 23:26:58 -0800322
Parker Schuhdc682952018-03-03 18:24:01 -0800323 c_pt, dist = closest_segment(lines_theta, self.last_pos)
324 print("dist:", dist, c_pt, self.last_pos)
325 cr.set_source_rgb(0.0, 1.0, 1.0)
326 cr.move_to(c_pt[0], c_pt[1])
327 draw_px_cross(cr, 5)
Parker Schuh19b93b12018-03-02 23:26:58 -0800328
Parker Schuhdc682952018-03-03 18:24:01 -0800329 cr.set_source_rgb(0.0, 0.5, 1.0)
330 for segment in self.segments:
331 color = [0, random.random(), 1]
332 random.shuffle(color)
333 cr.set_source_rgb(*color)
334 segment.DrawTo(cr, self.theta_version)
335 with px(cr):
336 cr.stroke()
Parker Schuh19b93b12018-03-02 23:26:58 -0800337
Parker Schuhdc682952018-03-03 18:24:01 -0800338 cr.set_source_rgb(0.0, 1.0, 0.5)
339 segment = self.current_seg()
340 if segment:
341 print(segment)
342 segment.DrawTo(cr, self.theta_version)
343 with px(cr):
344 cr.stroke()
Parker Schuh19b93b12018-03-02 23:26:58 -0800345
Parker Schuhdc682952018-03-03 18:24:01 -0800346 def cur_pt_in_theta(self):
347 if self.theta_version: return self.last_pos
348 return to_theta(self.last_pos, self.circular_index_select)
349
350 # Current segment based on which mode the drawing system is in.
351 def current_seg(self):
352 if self.prev_segment_pt and self.now_segment_pt:
353 if self.theta_version:
354 return AngleSegment(self.prev_segment_pt, self.now_segment_pt)
355 else:
356 return XYSegment(self.prev_segment_pt, self.now_segment_pt)
357
358 def do_key_press(self, event):
359 keyval = Gdk.keyval_to_lower(event.keyval)
360 print("Gdk.KEY_" + Gdk.keyval_name(keyval))
361 if keyval == Gdk.KEY_q:
362 print("Found q key and exiting.")
363 quit_main_loop()
364 elif keyval == Gdk.KEY_c:
365 # Increment which arm solution we render
366 self.circular_index_select += 1
367 print(self.circular_index_select)
368 elif keyval == Gdk.KEY_v:
369 # Decrement which arm solution we render
370 self.circular_index_select -= 1
371 print(self.circular_index_select)
372 elif keyval == Gdk.KEY_w:
373 # Add this segment to the segment list.
374 segment = self.current_seg()
375 if segment: self.segments.append(segment)
376 self.prev_segment_pt = self.now_segment_pt
377
378 elif keyval == Gdk.KEY_r:
379 self.prev_segment_pt = self.now_segment_pt
380
381 elif keyval == Gdk.KEY_p:
382 # Print out the segments.
383 print(repr(self.segments))
384 elif keyval == Gdk.KEY_g:
385 # Generate theta points.
386 if self.segments:
387 print(repr(self.segments[0].ToThetaPoints()))
388 elif keyval == Gdk.KEY_e:
389 best_pt = self.now_segment_pt
390 best_dist = 1e10
391 for segment in self.segments:
392 d = angle_dist_sqr(segment.start, self.now_segment_pt)
393 if (d < best_dist):
394 best_pt = segment.start
395 best_dist = d
396 d = angle_dist_sqr(segment.end, self.now_segment_pt)
397 if (d < best_dist):
398 best_pt = segment.end
399 best_dist = d
400 self.now_segment_pt = best_pt
401
402 elif keyval == Gdk.KEY_t:
403 # Toggle between theta and xy renderings
404 if self.theta_version:
405 theta1, theta2 = self.last_pos
406 data = to_xy(theta1, theta2)
407 self.circular_index_select = int(
408 numpy.floor((theta2 - theta1) / numpy.pi))
409 self.last_pos = (data[0], data[1])
410 else:
411 self.last_pos = self.cur_pt_in_theta()
412
413 self.theta_version = not self.theta_version
414 self.reinit_extents()
Austin Schuhee249892018-07-08 16:20:09 -0700415
416 elif keyval == Gdk.KEY_z:
417 self.edit_control1 = not self.edit_control1
418 if self.edit_control1:
419 self.now_segment_pt = self.segments[0].control1
420 else:
421 self.now_segment_pt = self.segments[0].control2
422 if not self.theta_version:
423 data = to_xy(self.now_segment_pt[0], self.now_segment_pt[1])
424 self.last_pos = (data[0], data[1])
425 else:
426 self.last_pos = self.now_segment_pt
427
428 print("self.last_pos: ", self.last_pos, " ci: ",
429 self.circular_index_select)
430
Parker Schuhdc682952018-03-03 18:24:01 -0800431 self.redraw()
432
433 def do_button_press(self, event):
434 self.last_pos = (event.x, event.y)
435 self.now_segment_pt = self.cur_pt_in_theta()
Austin Schuhee249892018-07-08 16:20:09 -0700436
437 if self.edit_control1:
438 self.segments[0].control1 = self.now_segment_pt
439 else:
440 self.segments[0].control2 = self.now_segment_pt
441
Austin Schuh17e484e2018-03-11 01:11:36 -0800442 print('Clicked at theta: %s' % (repr(self.now_segment_pt,)))
Parker Schuhdc682952018-03-03 18:24:01 -0800443 if not self.theta_version:
444 print('Clicked at xy, circular index: (%f, %f, %f)' %
445 (self.last_pos[0], self.last_pos[1],
446 self.circular_index_select))
447
Austin Schuhed018082018-07-08 16:01:01 -0700448 print('c1: numpy.array([%f, %f])' % (self.segments[0].control1[0],
449 self.segments[0].control1[1]))
450 print('c2: numpy.array([%f, %f])' % (self.segments[0].control2[0],
451 self.segments[0].control2[1]))
452
Parker Schuhdc682952018-03-03 18:24:01 -0800453 self.redraw()
454
Parker Schuh19b93b12018-03-02 23:26:58 -0800455
456silly = Silly()
Parker Schuhdc682952018-03-03 18:24:01 -0800457silly.segments = graph_generate.segments
Parker Schuh19b93b12018-03-02 23:26:58 -0800458basic_window.RunApp()