@@ -111,7 +111,7 @@ def __repr__(self):
111
111
) = create_validation_types (HRVORobotEntersRegionAndStops )
112
112
113
113
114
- def get_zig_zag_params (
114
+ def create_zig_zag_path_test_params (
115
115
front_wall_x : int , robot_y_delta : float , num_walls : int , wall_height : float
116
116
):
117
117
"""
@@ -146,7 +146,7 @@ def get_zig_zag_params(
146
146
)
147
147
148
148
149
- def get_robot_circle_pos (radius : float , num_robots : int , start : bool ):
149
+ def create_robot_circle_pos_params (radius : float , num_robots : int , start : bool ):
150
150
"""
151
151
Gets the test params to position robots in a circle and have them move
152
152
along each diameter
@@ -384,11 +384,11 @@ def hrvo_setup(
384
384
False ,
385
385
),
386
386
# robot moving in a zig zag path around enemy robots
387
- get_zig_zag_params (- 2 , 0.3 , 3 , 5 ),
387
+ create_zig_zag_path_test_params (- 2 , 0.3 , 3 , 5 ),
388
388
# friendly robots in a circle moving along each diameter
389
389
(
390
- get_robot_circle_pos (1.5 , 8 , True ),
391
- get_robot_circle_pos (1.5 , 8 , False ),
390
+ create_robot_circle_pos_params (1.5 , 8 , True ),
391
+ create_robot_circle_pos_params (1.5 , 8 , False ),
392
392
[],
393
393
[],
394
394
[],
@@ -398,8 +398,8 @@ def hrvo_setup(
398
398
# friendly robots in a circle moving along each diameter
399
399
# while turning from 0 to 180 degrees
400
400
(
401
- get_robot_circle_pos (1.5 , 8 , True ),
402
- get_robot_circle_pos (1.5 , 8 , False ),
401
+ create_robot_circle_pos_params (1.5 , 8 , True ),
402
+ create_robot_circle_pos_params (1.5 , 8 , False ),
403
403
[tbots .Angle .fromRadians (math .pi ) for i in range (8 )],
404
404
[],
405
405
[],
@@ -410,12 +410,16 @@ def hrvo_setup(
410
410
(
411
411
[
412
412
pos
413
- for index , pos in enumerate (get_robot_circle_pos (1.5 , 8 , True ))
413
+ for index , pos in enumerate (
414
+ create_robot_circle_pos_params (1.5 , 8 , True )
415
+ )
414
416
if index % 2 == 0
415
417
],
416
418
[
417
419
pos
418
- for index , pos in enumerate (get_robot_circle_pos (1.5 , 8 , False ))
420
+ for index , pos in enumerate (
421
+ create_robot_circle_pos_params (1.5 , 8 , False )
422
+ )
419
423
if index % 2 == 0
420
424
],
421
425
[],
@@ -427,12 +431,16 @@ def hrvo_setup(
427
431
# so when displayed, the destination positions look correct since they have been flipped for blue
428
432
[
429
433
pos
430
- for index , pos in enumerate (get_robot_circle_pos (1.5 , 8 , True ))
434
+ for index , pos in enumerate (
435
+ create_robot_circle_pos_params (1.5 , 8 , True )
436
+ )
431
437
if index % 2 == 1
432
438
],
433
439
[
434
440
pos
435
- for index , pos in enumerate (get_robot_circle_pos (1.5 , 8 , True ))
441
+ for index , pos in enumerate (
442
+ create_robot_circle_pos_params (1.5 , 8 , True )
443
+ )
436
444
if index % 2 == 1
437
445
],
438
446
10 ,
0 commit comments