|
| 1 | +# serializer version: 1 |
| 2 | +# name: test_parse_v1_fixtures[s5_fw1886_with_forbidden_zones_and_virtual_walls.bin] |
| 3 | + dict({ |
| 4 | + 'additional_parameters': dict({ |
| 5 | + 'is_valid': True, |
| 6 | + 'major_version': 1, |
| 7 | + 'map_index': 875, |
| 8 | + 'map_sequence': 64, |
| 9 | + 'minor_version': 0, |
| 10 | + }), |
| 11 | + 'charger': Point(x=25612, y=25254, a=None), |
| 12 | + 'goto': None, |
| 13 | + 'goto_path_points': 0, |
| 14 | + 'image_format': 'PNG', |
| 15 | + 'image_size': tuple( |
| 16 | + 1048, |
| 17 | + 952, |
| 18 | + ), |
| 19 | + 'no_go_areas': list([ |
| 20 | + Area(x0=27000, y0=28750, x1=28850, y1=28750, x2=28850, y2=28100, x3=27000, y3=28100), |
| 21 | + ]), |
| 22 | + 'no_mopping_areas': None, |
| 23 | + 'path_points': 55, |
| 24 | + 'predicted_path_points': 0, |
| 25 | + 'rooms': dict({ |
| 26 | + }), |
| 27 | + 'vacuum_position': Point(x=28697, y=26764, a=0), |
| 28 | + 'walls': list([ |
| 29 | + Wall(x0=25300, y0=27850, x1=25300, y1=26850), |
| 30 | + ]), |
| 31 | + 'zones': list([ |
| 32 | + Zone(x0=27289, y0=25480, x1=28919, y1=27358), |
| 33 | + ]), |
| 34 | + }) |
| 35 | +# --- |
| 36 | +# name: test_parse_v1_fixtures[s5_fw1886_with_goto_target.bin] |
| 37 | + dict({ |
| 38 | + 'additional_parameters': dict({ |
| 39 | + 'is_valid': True, |
| 40 | + 'major_version': 1, |
| 41 | + 'map_index': 876, |
| 42 | + 'map_sequence': 84, |
| 43 | + 'minor_version': 0, |
| 44 | + }), |
| 45 | + 'charger': Point(x=25612, y=25254, a=None), |
| 46 | + 'goto': Point(x=25874, y=26218, a=None), |
| 47 | + 'goto_path_points': 0, |
| 48 | + 'image_format': 'PNG', |
| 49 | + 'image_size': tuple( |
| 50 | + 1052, |
| 51 | + 1048, |
| 52 | + ), |
| 53 | + 'no_go_areas': list([ |
| 54 | + ]), |
| 55 | + 'no_mopping_areas': None, |
| 56 | + 'path_points': 32, |
| 57 | + 'predicted_path_points': 3, |
| 58 | + 'rooms': dict({ |
| 59 | + }), |
| 60 | + 'vacuum_position': Point(x=26139, y=26459, a=0), |
| 61 | + 'walls': list([ |
| 62 | + ]), |
| 63 | + 'zones': None, |
| 64 | + }) |
| 65 | +# --- |
| 66 | +# name: test_parse_v1_fixtures[s5_fw2008_with_segments.bin] |
| 67 | + dict({ |
| 68 | + 'additional_parameters': dict({ |
| 69 | + 'is_valid': True, |
| 70 | + 'major_version': 1, |
| 71 | + 'map_index': 919, |
| 72 | + 'map_sequence': 814, |
| 73 | + 'minor_version': 1, |
| 74 | + }), |
| 75 | + 'charger': Point(x=25652, y=25222, a=98), |
| 76 | + 'goto': None, |
| 77 | + 'goto_path_points': 0, |
| 78 | + 'image_format': 'PNG', |
| 79 | + 'image_size': tuple( |
| 80 | + 1024, |
| 81 | + 964, |
| 82 | + ), |
| 83 | + 'no_go_areas': list([ |
| 84 | + ]), |
| 85 | + 'no_mopping_areas': None, |
| 86 | + 'path_points': 933, |
| 87 | + 'predicted_path_points': 0, |
| 88 | + 'rooms': dict({ |
| 89 | + 1: Room(x0=23250, y0=24950, x1=26550, y1=26400, number=1, name=None, pos_x=None, pos_y=None), |
| 90 | + 2: Room(x0=25150, y0=26400, x1=26600, y1=29950, number=2, name=None, pos_x=None, pos_y=None), |
| 91 | + }), |
| 92 | + 'vacuum_position': Point(x=25642, y=25401, a=-88), |
| 93 | + 'walls': list([ |
| 94 | + ]), |
| 95 | + 'zones': list([ |
| 96 | + ]), |
| 97 | + }) |
| 98 | +# --- |
| 99 | +# name: test_parse_v1_fixtures[s6_fw2652_with_active_segment_and_no_mop_zone.bin] |
| 100 | + dict({ |
| 101 | + 'additional_parameters': dict({ |
| 102 | + 'is_valid': True, |
| 103 | + 'major_version': 1, |
| 104 | + 'map_index': 804, |
| 105 | + 'map_sequence': 43, |
| 106 | + 'minor_version': 0, |
| 107 | + }), |
| 108 | + 'charger': Point(x=25273, y=25603, a=-1), |
| 109 | + 'goto': None, |
| 110 | + 'goto_path_points': 0, |
| 111 | + 'image_format': 'PNG', |
| 112 | + 'image_size': tuple( |
| 113 | + 1644, |
| 114 | + 1344, |
| 115 | + ), |
| 116 | + 'no_go_areas': list([ |
| 117 | + Area(x0=25000, y0=28000, x1=27200, y1=28000, x2=27200, y2=27100, x3=25000, y3=27100), |
| 118 | + ]), |
| 119 | + 'no_mopping_areas': list([ |
| 120 | + Area(x0=29750, y0=27400, x1=32400, y1=27400, x2=32400, y2=25950, x3=29750, y3=25950), |
| 121 | + ]), |
| 122 | + 'path_points': 78, |
| 123 | + 'predicted_path_points': 0, |
| 124 | + 'rooms': dict({ |
| 125 | + 16: Room(x0=29550, y0=29550, x1=30450, y1=30900, number=16, name=None, pos_x=None, pos_y=None), |
| 126 | + 17: Room(x0=29000, y0=24550, x1=33100, y1=29400, number=17, name=None, pos_x=None, pos_y=None), |
| 127 | + 18: Room(x0=30550, y0=29400, x1=34750, y1=31250, number=18, name=None, pos_x=None, pos_y=None), |
| 128 | + 19: Room(x0=25050, y0=24550, x1=28950, y1=29650, number=19, name=None, pos_x=None, pos_y=None), |
| 129 | + 20: Room(x0=25150, y0=29350, x1=28150, y1=30950, number=20, name=None, pos_x=None, pos_y=None), |
| 130 | + 21: Room(x0=33350, y0=24500, x1=35300, y1=29400, number=21, name=None, pos_x=None, pos_y=None), |
| 131 | + }), |
| 132 | + 'vacuum_position': Point(x=30550, y=26455, a=-92), |
| 133 | + 'walls': list([ |
| 134 | + ]), |
| 135 | + 'zones': None, |
| 136 | + }) |
| 137 | +# --- |
0 commit comments