vacuum-map-parser-ijai 0.0.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright [yyyy] [name of copyright owner]
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
@@ -0,0 +1,87 @@
1
+ Metadata-Version: 2.4
2
+ Name: vacuum-map-parser-ijai
3
+ Version: 0.0.0
4
+ Summary: Functionalities for Ijai vacuum map parsing
5
+ License: Apache-2.0
6
+ License-File: LICENSE
7
+ Author: Alexander Vassilyevsky
8
+ Author-email: tarh_@mail.ru
9
+ Requires-Python: >=3.11,<4.0
10
+ Classifier: Development Status :: 4 - Beta
11
+ Classifier: Environment :: Console
12
+ Classifier: Intended Audience :: Developers
13
+ Classifier: License :: OSI Approved :: Apache Software License
14
+ Classifier: Programming Language :: Python :: 3
15
+ Classifier: Programming Language :: Python :: 3.11
16
+ Classifier: Programming Language :: Python :: 3.12
17
+ Classifier: Programming Language :: Python :: 3.13
18
+ Classifier: Programming Language :: Python :: 3.14
19
+ Classifier: Topic :: Home Automation
20
+ Requires-Dist: Pillow
21
+ Requires-Dist: pycryptodome
22
+ Requires-Dist: vacuum-map-parser-base (>=0.1.5)
23
+ Project-URL: Bug Tracker, https://github.com/maksp86/Python-package-vacuum-map-parser-ijai/issues
24
+ Project-URL: Changelog, https://github.com/maksp86/Python-package-vacuum-map-parser-ijai/releases
25
+ Project-URL: Homepage, https://github.com/maksp86/Python-package-vacuum-map-parser-ijai
26
+ Project-URL: Repository, https://github.com/maksp86/Python-package-vacuum-map-parser-ijai
27
+ Description-Content-Type: text/markdown
28
+
29
+
30
+ # Vacuum map parser - Ijai
31
+
32
+ Map data parser that can be used to parse maps generated by Ijai vacuums (based on map data parser for Viomi by Piotr Machowski).
33
+
34
+ ## Installation
35
+
36
+ Not currently applicable
37
+ ```shell
38
+ pip install vacuum-map-parser-ijai
39
+ ```
40
+
41
+
42
+ *This package is not yet published on PyPI, so you need to install it manually.*
43
+
44
+ Install the latest development version from GitHub
45
+ ```shell
46
+ pip install git+https://github.com/Tarh-76/Python-package-vacuum-map-parser-ijai.git@develop
47
+ ```
48
+
49
+ ## Usage
50
+
51
+ ```python
52
+ from vacuum_map_parser_base.config.color import ColorsPalette
53
+ from vacuum_map_parser_base.config.drawable import Drawable
54
+ from vacuum_map_parser_base.config.image_config import ImageConfig
55
+ from vacuum_map_parser_base.config.size import Sizes
56
+ from vacuum_map_parser_base.config.text import Text
57
+ from vacuum_map_parser_ijai.map_data_parser import IjaiMapDataParser
58
+
59
+ palette: ColorsPalette = ColorsPalette()
60
+ sizes: Sizes = Sizes()
61
+ drawables: list[Drawable] = [Drawable.PATH, Drawable.CHARGER]
62
+ image_config: ImageConfig = ImageConfig()
63
+ texts: list[Text] = []
64
+ raw_map: bytes = b''
65
+
66
+ parser = IjaiMapDataParser(palette, sizes, drawables, image_config, texts)
67
+
68
+ unpacked_map = parser.unpack_map(raw_map,
69
+ wifi_sn='******SD**********',
70
+ owner_id='**********',
71
+ device_id='**********',
72
+ model='ijai.vacuum.***',
73
+ device_mac='**:**:**:**:**:**')
74
+ parsed_map = parser.parse(unpacked_map)
75
+ ```
76
+
77
+ ## Supported vacuums:
78
+ - ijai.vacuum.* (at least v1, v2, v3, v10, v13, v18, v19)
79
+ - xiaomi.vacuum.c103
80
+ - xiaomi.vacuum.c104
81
+ - xiaomi.vacuum.b106eu
82
+ *If you got another vacuum to work, please tell us*
83
+
84
+ ## Special thanks
85
+
86
+ The code of this library was initially created by [@halfbakery](https://github.com/halfbakery) as a part of [Xiaomi Cloud Map Extractor](https://github.com/PiotrMachowski/Home-Assistant-custom-components-Xiaomi-Cloud-Map-Extractor).
87
+
@@ -0,0 +1,58 @@
1
+
2
+ # Vacuum map parser - Ijai
3
+
4
+ Map data parser that can be used to parse maps generated by Ijai vacuums (based on map data parser for Viomi by Piotr Machowski).
5
+
6
+ ## Installation
7
+
8
+ Not currently applicable
9
+ ```shell
10
+ pip install vacuum-map-parser-ijai
11
+ ```
12
+
13
+
14
+ *This package is not yet published on PyPI, so you need to install it manually.*
15
+
16
+ Install the latest development version from GitHub
17
+ ```shell
18
+ pip install git+https://github.com/Tarh-76/Python-package-vacuum-map-parser-ijai.git@develop
19
+ ```
20
+
21
+ ## Usage
22
+
23
+ ```python
24
+ from vacuum_map_parser_base.config.color import ColorsPalette
25
+ from vacuum_map_parser_base.config.drawable import Drawable
26
+ from vacuum_map_parser_base.config.image_config import ImageConfig
27
+ from vacuum_map_parser_base.config.size import Sizes
28
+ from vacuum_map_parser_base.config.text import Text
29
+ from vacuum_map_parser_ijai.map_data_parser import IjaiMapDataParser
30
+
31
+ palette: ColorsPalette = ColorsPalette()
32
+ sizes: Sizes = Sizes()
33
+ drawables: list[Drawable] = [Drawable.PATH, Drawable.CHARGER]
34
+ image_config: ImageConfig = ImageConfig()
35
+ texts: list[Text] = []
36
+ raw_map: bytes = b''
37
+
38
+ parser = IjaiMapDataParser(palette, sizes, drawables, image_config, texts)
39
+
40
+ unpacked_map = parser.unpack_map(raw_map,
41
+ wifi_sn='******SD**********',
42
+ owner_id='**********',
43
+ device_id='**********',
44
+ model='ijai.vacuum.***',
45
+ device_mac='**:**:**:**:**:**')
46
+ parsed_map = parser.parse(unpacked_map)
47
+ ```
48
+
49
+ ## Supported vacuums:
50
+ - ijai.vacuum.* (at least v1, v2, v3, v10, v13, v18, v19)
51
+ - xiaomi.vacuum.c103
52
+ - xiaomi.vacuum.c104
53
+ - xiaomi.vacuum.b106eu
54
+ *If you got another vacuum to work, please tell us*
55
+
56
+ ## Special thanks
57
+
58
+ The code of this library was initially created by [@halfbakery](https://github.com/halfbakery) as a part of [Xiaomi Cloud Map Extractor](https://github.com/PiotrMachowski/Home-Assistant-custom-components-Xiaomi-Cloud-Map-Extractor).
@@ -0,0 +1,89 @@
1
+ [tool.poetry]
2
+ name = "vacuum-map-parser-ijai"
3
+ # The version is set by GH action on release
4
+ version = "0.0.0"
5
+ license = "Apache-2.0"
6
+ description = "Functionalities for Ijai vacuum map parsing"
7
+ readme = "README.md"
8
+ authors = ["Alexander Vassilyevsky <tarh_@mail.ru>", "maksp86 <maksp@gsqd.ru>"]
9
+ classifiers = [
10
+ "Development Status :: 4 - Beta",
11
+ "Intended Audience :: Developers",
12
+ "Environment :: Console",
13
+ "Programming Language :: Python :: 3.11",
14
+ "Topic :: Home Automation",
15
+ ]
16
+ packages = [{ include = "vacuum_map_parser_ijai", from = "src" }]
17
+
18
+ [tool.poetry.urls]
19
+ "Homepage" = "https://github.com/maksp86/Python-package-vacuum-map-parser-ijai"
20
+ "Repository" = "https://github.com/maksp86/Python-package-vacuum-map-parser-ijai"
21
+ "Bug Tracker" = "https://github.com/maksp86/Python-package-vacuum-map-parser-ijai/issues"
22
+ "Changelog" = "https://github.com/maksp86/Python-package-vacuum-map-parser-ijai/releases"
23
+
24
+ [tool.poetry.dependencies]
25
+ python = "^3.11"
26
+ Pillow = "*"
27
+ pycryptodome = "*"
28
+
29
+ vacuum-map-parser-base = ">=0.1.5"
30
+
31
+ [tool.poetry.group.dev.dependencies]
32
+ black = "*"
33
+ mypy = "*"
34
+ ruff = "*"
35
+ isort = "*"
36
+ pylint = "*"
37
+ types-Pillow = "*"
38
+
39
+ [tool.black]
40
+ line-length = 120
41
+
42
+ [tool.isort]
43
+ profile = "black"
44
+ line_length = 120
45
+
46
+ [tool.mypy]
47
+ platform = "linux"
48
+ exclude = '''(?x)
49
+ ( ^.*RobotMap_pb2\.py$
50
+ | ^.*RobotMap_pb2\.pyi$
51
+ | ^.*beautify_min\.py$
52
+ )
53
+ '''
54
+
55
+ check_untyped_defs = true
56
+ disallow_any_generics = true
57
+ disallow_incomplete_defs = true
58
+ disallow_subclassing_any = true
59
+ disallow_untyped_calls = true
60
+ disallow_untyped_defs = true
61
+ disallow_untyped_decorators = true
62
+ no_implicit_optional = true
63
+ no_implicit_reexport = true
64
+ strict_optional = true
65
+ warn_incomplete_stub = true
66
+ warn_no_return = true
67
+ warn_redundant_casts = true
68
+ warn_return_any = true
69
+ warn_unused_configs = true
70
+ warn_unused_ignores = true
71
+
72
+ [tool.pylint]
73
+ disable = [
74
+ "C0103",
75
+ "C0116",
76
+ "R0902",
77
+ "R0903",
78
+ "R0912",
79
+ "R0913",
80
+ "R0914",
81
+ "R0915",
82
+ "W0640",
83
+ "R0917",
84
+ ]
85
+ max-line-length = 120
86
+
87
+ [build-system]
88
+ requires = ["poetry-core>=1.0.0"]
89
+ build-backend = "poetry.core.masonry.api"
@@ -0,0 +1,159 @@
1
+ syntax = "proto3";
2
+ message RobotMap {
3
+
4
+ message HouseInfo {
5
+ uint32 id = 1;
6
+ string name = 2;
7
+ uint32 curMapCount = 3;
8
+ uint32 maxMapSize = 4;
9
+ repeated AllMapInfo maps = 5;
10
+ }
11
+ message FurnitureDataInfo {
12
+ uint32 id = 1;
13
+ uint32 typeId = 2;
14
+ repeated DevicePointInfo points = 3;
15
+ string url = 4;
16
+ uint32 status = 5;
17
+ repeated DevicePointInfo react = 6;
18
+ }
19
+ message ObjectDataInfo {
20
+ uint32 objectId = 1;
21
+ uint32 objectTypeId = 2;
22
+ string objectName = 3;
23
+ uint32 confirm = 4;
24
+ float x = 5;
25
+ float y = 6;
26
+ string url = 7;
27
+ uint32 notShow = 8;
28
+ }
29
+ message DeviceChainPointDataInfo {
30
+ uint32 x = 1;
31
+ uint32 y = 2;
32
+ uint32 value = 3;
33
+ }
34
+ message DeviceRoomChainDataInfo {
35
+ uint32 roomId = 1;
36
+ repeated DeviceChainPointDataInfo points = 2;
37
+ }
38
+ message DeviceRoomMatrix {
39
+ bytes matrix = 1;
40
+ }
41
+ message CleanPerferenceDataInfo {
42
+ uint32 cleanMode = 1;
43
+ uint32 waterLevel = 2;
44
+ uint32 windPower = 3;
45
+ uint32 twiceClean = 4;
46
+ }
47
+ message RoomDataInfo {
48
+ uint32 roomId = 1;
49
+ string roomName = 2;
50
+ uint32 roomTypeId = 3;
51
+ uint32 meterialId = 4;
52
+ uint32 cleanState = 5;
53
+ uint32 roomClean = 6;
54
+ uint32 roomCleanIndex = 7;
55
+ DevicePointInfo roomNamePost = 8;
56
+ CleanPerferenceDataInfo cleanPerfer = 9;
57
+ uint32 colorId = 10;
58
+ }
59
+ message DeviceNavigationPointDataInfo {
60
+ uint32 pointId = 1;
61
+ uint32 status = 2;
62
+ uint32 pointType = 3;
63
+ float x = 4;
64
+ float y = 5;
65
+ float phi = 6;
66
+ }
67
+ message DevicePointInfo {
68
+ float x = 1;
69
+ float y = 2;
70
+ }
71
+ message DeviceAreaDataInfo {
72
+ uint32 status = 1;
73
+ uint32 type = 2;
74
+ uint32 areaIndex = 3;
75
+ repeated DevicePointInfo points = 4;
76
+ }
77
+ message DeviceCurrentPoseInfo {
78
+ uint32 poseId = 1;
79
+ uint32 update = 2;
80
+ float x = 3;
81
+ float y = 4;
82
+ float phi = 5;
83
+ }
84
+ message DevicePoseDataInfo {
85
+ float x = 1;
86
+ float y = 2;
87
+ float phi = 3;
88
+ uint32 roomId = 4;
89
+ }
90
+ message DeviceCoverPointDataInfo {
91
+ uint32 update = 1;
92
+ float x = 2;
93
+ float y = 3;
94
+ }
95
+ message DeviceHistoryPoseInfo {
96
+ uint32 poseId = 1;
97
+ repeated DeviceCoverPointDataInfo points = 2;
98
+ uint32 pathType = 3;
99
+ }
100
+ message AllMapInfo {
101
+ uint32 mapHeadId = 1;
102
+ string mapName = 2;
103
+ }
104
+ message MapDataInfo {
105
+ bytes mapData = 1;
106
+ }
107
+ message MapHeadInfo {
108
+ uint32 mapHeadId = 1;
109
+ uint32 sizeX = 2;
110
+ uint32 sizeY = 3;
111
+ float minX = 4;
112
+ float minY = 5;
113
+ float maxX = 6;
114
+ float maxY = 7;
115
+ float resolution = 8;
116
+ }
117
+ message CarpetOffsetInfo {
118
+ float phi = 1;
119
+ float dist = 2;
120
+ }
121
+ message MapBoundaryInfo {
122
+ string mapMd5 = 1;
123
+ uint32 vMinX = 2;
124
+ uint32 vMaxX = 3;
125
+ uint32 vMinY = 4;
126
+ uint32 vMaxY = 5;
127
+ }
128
+ message MapExtInfo {
129
+ uint32 taskBeginDate = 1;
130
+ uint32 mapUploadDate = 2;
131
+ uint32 mapValid = 3;
132
+ uint32 radian = 4;
133
+ uint32 force = 5;
134
+ uint32 cleanPath = 6;
135
+ MapBoundaryInfo boudaryInfo = 7;
136
+ uint32 mapVersion = 8;
137
+ uint32 mapValueType = 9;
138
+ CarpetOffsetInfo carpetOffsetInfo = 10;
139
+ }
140
+
141
+ uint32 mapType = 1;
142
+ MapExtInfo mapExtInfo = 2;
143
+ MapHeadInfo mapHead = 3;
144
+ MapDataInfo mapData = 4;
145
+ repeated AllMapInfo mapInfo = 5;
146
+ DeviceHistoryPoseInfo historyPose = 6;
147
+ DevicePoseDataInfo chargeStation = 7;
148
+ DeviceCurrentPoseInfo currentPose = 8;
149
+ repeated DeviceAreaDataInfo virtualWalls = 9;
150
+ repeated DeviceAreaDataInfo areasInfo = 10;
151
+ repeated DeviceNavigationPointDataInfo navigationPoints = 11;
152
+ repeated RoomDataInfo roomDataInfo = 12;
153
+ DeviceRoomMatrix roomMatrix = 13;
154
+ repeated DeviceRoomChainDataInfo roomChain = 14;
155
+ repeated ObjectDataInfo objects = 15;
156
+ repeated FurnitureDataInfo furnitureInfo = 16;
157
+ repeated HouseInfo houseInfos = 17;
158
+ repeated DeviceAreaDataInfo backupAreas = 18;
159
+ }
@@ -0,0 +1,70 @@
1
+ # pylint: skip-file
2
+ # -*- coding: utf-8 -*-
3
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
4
+ # source: RobotMap.proto
5
+ # Protobuf Python Version: 5.26.1
6
+ """Generated protocol buffer code."""
7
+ from google.protobuf import descriptor as _descriptor
8
+ from google.protobuf import descriptor_pool as _descriptor_pool
9
+ from google.protobuf import symbol_database as _symbol_database
10
+ from google.protobuf.internal import builder as _builder
11
+
12
+ # @@protoc_insertion_point(imports)
13
+
14
+ _sym_db = _symbol_database.Default()
15
+
16
+
17
+
18
+
19
+ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x0eRobotMap.proto\"\xa8\x18\n\x08RobotMap\x12\x0f\n\x07mapType\x18\x01 \x01(\r\x12(\n\nmapExtInfo\x18\x02 \x01(\x0b\x32\x14.RobotMap.MapExtInfo\x12&\n\x07mapHead\x18\x03 \x01(\x0b\x32\x15.RobotMap.MapHeadInfo\x12&\n\x07mapData\x18\x04 \x01(\x0b\x32\x15.RobotMap.MapDataInfo\x12%\n\x07mapInfo\x18\x05 \x03(\x0b\x32\x14.RobotMap.AllMapInfo\x12\x34\n\x0bhistoryPose\x18\x06 \x01(\x0b\x32\x1f.RobotMap.DeviceHistoryPoseInfo\x12\x33\n\rchargeStation\x18\x07 \x01(\x0b\x32\x1c.RobotMap.DevicePoseDataInfo\x12\x34\n\x0b\x63urrentPose\x18\x08 \x01(\x0b\x32\x1f.RobotMap.DeviceCurrentPoseInfo\x12\x32\n\x0cvirtualWalls\x18\t \x03(\x0b\x32\x1c.RobotMap.DeviceAreaDataInfo\x12/\n\tareasInfo\x18\n \x03(\x0b\x32\x1c.RobotMap.DeviceAreaDataInfo\x12\x41\n\x10navigationPoints\x18\x0b \x03(\x0b\x32\'.RobotMap.DeviceNavigationPointDataInfo\x12,\n\x0croomDataInfo\x18\x0c \x03(\x0b\x32\x16.RobotMap.RoomDataInfo\x12.\n\nroomMatrix\x18\r \x01(\x0b\x32\x1a.RobotMap.DeviceRoomMatrix\x12\x34\n\troomChain\x18\x0e \x03(\x0b\x32!.RobotMap.DeviceRoomChainDataInfo\x12)\n\x07objects\x18\x0f \x03(\x0b\x32\x18.RobotMap.ObjectDataInfo\x12\x32\n\rfurnitureInfo\x18\x10 \x03(\x0b\x32\x1b.RobotMap.FurnitureDataInfo\x12\'\n\nhouseInfos\x18\x11 \x03(\x0b\x32\x13.RobotMap.HouseInfo\x12\x31\n\x0b\x62\x61\x63kupAreas\x18\x12 \x03(\x0b\x32\x1c.RobotMap.DeviceAreaDataInfo\x1ar\n\tHouseInfo\x12\n\n\x02id\x18\x01 \x01(\r\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x13\n\x0b\x63urMapCount\x18\x03 \x01(\r\x12\x12\n\nmaxMapSize\x18\x04 \x01(\r\x12\"\n\x04maps\x18\x05 \x03(\x0b\x32\x14.RobotMap.AllMapInfo\x1a\xa1\x01\n\x11\x46urnitureDataInfo\x12\n\n\x02id\x18\x01 \x01(\r\x12\x0e\n\x06typeId\x18\x02 \x01(\r\x12)\n\x06points\x18\x03 \x03(\x0b\x32\x19.RobotMap.DevicePointInfo\x12\x0b\n\x03url\x18\x04 \x01(\t\x12\x0e\n\x06status\x18\x05 \x01(\r\x12(\n\x05react\x18\x06 \x03(\x0b\x32\x19.RobotMap.DevicePointInfo\x1a\x91\x01\n\x0eObjectDataInfo\x12\x10\n\x08objectId\x18\x01 \x01(\r\x12\x14\n\x0cobjectTypeId\x18\x02 \x01(\r\x12\x12\n\nobjectName\x18\x03 \x01(\t\x12\x0f\n\x07\x63onfirm\x18\x04 \x01(\r\x12\t\n\x01x\x18\x05 \x01(\x02\x12\t\n\x01y\x18\x06 \x01(\x02\x12\x0b\n\x03url\x18\x07 \x01(\t\x12\x0f\n\x07notShow\x18\x08 \x01(\r\x1a?\n\x18\x44\x65viceChainPointDataInfo\x12\t\n\x01x\x18\x01 \x01(\r\x12\t\n\x01y\x18\x02 \x01(\r\x12\r\n\x05value\x18\x03 \x01(\r\x1a]\n\x17\x44\x65viceRoomChainDataInfo\x12\x0e\n\x06roomId\x18\x01 \x01(\r\x12\x32\n\x06points\x18\x02 \x03(\x0b\x32\".RobotMap.DeviceChainPointDataInfo\x1a\"\n\x10\x44\x65viceRoomMatrix\x12\x0e\n\x06matrix\x18\x01 \x01(\x0c\x1ag\n\x17\x43leanPerferenceDataInfo\x12\x11\n\tcleanMode\x18\x01 \x01(\r\x12\x12\n\nwaterLevel\x18\x02 \x01(\r\x12\x11\n\twindPower\x18\x03 \x01(\r\x12\x12\n\ntwiceClean\x18\x04 \x01(\r\x1a\x91\x02\n\x0cRoomDataInfo\x12\x0e\n\x06roomId\x18\x01 \x01(\r\x12\x10\n\x08roomName\x18\x02 \x01(\t\x12\x12\n\nroomTypeId\x18\x03 \x01(\r\x12\x12\n\nmeterialId\x18\x04 \x01(\r\x12\x12\n\ncleanState\x18\x05 \x01(\r\x12\x11\n\troomClean\x18\x06 \x01(\r\x12\x16\n\x0eroomCleanIndex\x18\x07 \x01(\r\x12/\n\x0croomNamePost\x18\x08 \x01(\x0b\x32\x19.RobotMap.DevicePointInfo\x12\x36\n\x0b\x63leanPerfer\x18\t \x01(\x0b\x32!.RobotMap.CleanPerferenceDataInfo\x12\x0f\n\x07\x63olorId\x18\n \x01(\r\x1av\n\x1d\x44\x65viceNavigationPointDataInfo\x12\x0f\n\x07pointId\x18\x01 \x01(\r\x12\x0e\n\x06status\x18\x02 \x01(\r\x12\x11\n\tpointType\x18\x03 \x01(\r\x12\t\n\x01x\x18\x04 \x01(\x02\x12\t\n\x01y\x18\x05 \x01(\x02\x12\x0b\n\x03phi\x18\x06 \x01(\x02\x1a\'\n\x0f\x44\x65vicePointInfo\x12\t\n\x01x\x18\x01 \x01(\x02\x12\t\n\x01y\x18\x02 \x01(\x02\x1ap\n\x12\x44\x65viceAreaDataInfo\x12\x0e\n\x06status\x18\x01 \x01(\r\x12\x0c\n\x04type\x18\x02 \x01(\r\x12\x11\n\tareaIndex\x18\x03 \x01(\r\x12)\n\x06points\x18\x04 \x03(\x0b\x32\x19.RobotMap.DevicePointInfo\x1aZ\n\x15\x44\x65viceCurrentPoseInfo\x12\x0e\n\x06poseId\x18\x01 \x01(\r\x12\x0e\n\x06update\x18\x02 \x01(\r\x12\t\n\x01x\x18\x03 \x01(\x02\x12\t\n\x01y\x18\x04 \x01(\x02\x12\x0b\n\x03phi\x18\x05 \x01(\x02\x1aG\n\x12\x44\x65vicePoseDataInfo\x12\t\n\x01x\x18\x01 \x01(\x02\x12\t\n\x01y\x18\x02 \x01(\x02\x12\x0b\n\x03phi\x18\x03 \x01(\x02\x12\x0e\n\x06roomId\x18\x04 \x01(\r\x1a@\n\x18\x44\x65viceCoverPointDataInfo\x12\x0e\n\x06update\x18\x01 \x01(\r\x12\t\n\x01x\x18\x02 \x01(\x02\x12\t\n\x01y\x18\x03 \x01(\x02\x1am\n\x15\x44\x65viceHistoryPoseInfo\x12\x0e\n\x06poseId\x18\x01 \x01(\r\x12\x32\n\x06points\x18\x02 \x03(\x0b\x32\".RobotMap.DeviceCoverPointDataInfo\x12\x10\n\x08pathType\x18\x03 \x01(\r\x1a\x30\n\nAllMapInfo\x12\x11\n\tmapHeadId\x18\x01 \x01(\r\x12\x0f\n\x07mapName\x18\x02 \x01(\t\x1a\x1e\n\x0bMapDataInfo\x12\x0f\n\x07mapData\x18\x01 \x01(\x0c\x1a\x8a\x01\n\x0bMapHeadInfo\x12\x11\n\tmapHeadId\x18\x01 \x01(\r\x12\r\n\x05sizeX\x18\x02 \x01(\r\x12\r\n\x05sizeY\x18\x03 \x01(\r\x12\x0c\n\x04minX\x18\x04 \x01(\x02\x12\x0c\n\x04minY\x18\x05 \x01(\x02\x12\x0c\n\x04maxX\x18\x06 \x01(\x02\x12\x0c\n\x04maxY\x18\x07 \x01(\x02\x12\x12\n\nresolution\x18\x08 \x01(\x02\x1a-\n\x10\x43\x61rpetOffsetInfo\x12\x0b\n\x03phi\x18\x01 \x01(\x02\x12\x0c\n\x04\x64ist\x18\x02 \x01(\x02\x1a]\n\x0fMapBoundaryInfo\x12\x0e\n\x06mapMd5\x18\x01 \x01(\t\x12\r\n\x05vMinX\x18\x02 \x01(\r\x12\r\n\x05vMaxX\x18\x03 \x01(\r\x12\r\n\x05vMinY\x18\x04 \x01(\r\x12\r\n\x05vMaxY\x18\x05 \x01(\r\x1a\x8e\x02\n\nMapExtInfo\x12\x15\n\rtaskBeginDate\x18\x01 \x01(\r\x12\x15\n\rmapUploadDate\x18\x02 \x01(\r\x12\x10\n\x08mapValid\x18\x03 \x01(\r\x12\x0e\n\x06radian\x18\x04 \x01(\r\x12\r\n\x05\x66orce\x18\x05 \x01(\r\x12\x11\n\tcleanPath\x18\x06 \x01(\r\x12.\n\x0b\x62oudaryInfo\x18\x07 \x01(\x0b\x32\x19.RobotMap.MapBoundaryInfo\x12\x12\n\nmapVersion\x18\x08 \x01(\r\x12\x14\n\x0cmapValueType\x18\t \x01(\r\x12\x34\n\x10\x63\x61rpetOffsetInfo\x18\n \x01(\x0b\x32\x1a.RobotMap.CarpetOffsetInfob\x06proto3')
20
+
21
+ _globals = globals()
22
+ _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
23
+ _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'RobotMap_pb2', _globals)
24
+ if not _descriptor._USE_C_DESCRIPTORS:
25
+ DESCRIPTOR._loaded_options = None
26
+ _globals['_ROBOTMAP']._serialized_start=19
27
+ _globals['_ROBOTMAP']._serialized_end=3131
28
+ _globals['_ROBOTMAP_HOUSEINFO']._serialized_start=873
29
+ _globals['_ROBOTMAP_HOUSEINFO']._serialized_end=987
30
+ _globals['_ROBOTMAP_FURNITUREDATAINFO']._serialized_start=990
31
+ _globals['_ROBOTMAP_FURNITUREDATAINFO']._serialized_end=1151
32
+ _globals['_ROBOTMAP_OBJECTDATAINFO']._serialized_start=1154
33
+ _globals['_ROBOTMAP_OBJECTDATAINFO']._serialized_end=1299
34
+ _globals['_ROBOTMAP_DEVICECHAINPOINTDATAINFO']._serialized_start=1301
35
+ _globals['_ROBOTMAP_DEVICECHAINPOINTDATAINFO']._serialized_end=1364
36
+ _globals['_ROBOTMAP_DEVICEROOMCHAINDATAINFO']._serialized_start=1366
37
+ _globals['_ROBOTMAP_DEVICEROOMCHAINDATAINFO']._serialized_end=1459
38
+ _globals['_ROBOTMAP_DEVICEROOMMATRIX']._serialized_start=1461
39
+ _globals['_ROBOTMAP_DEVICEROOMMATRIX']._serialized_end=1495
40
+ _globals['_ROBOTMAP_CLEANPERFERENCEDATAINFO']._serialized_start=1497
41
+ _globals['_ROBOTMAP_CLEANPERFERENCEDATAINFO']._serialized_end=1600
42
+ _globals['_ROBOTMAP_ROOMDATAINFO']._serialized_start=1603
43
+ _globals['_ROBOTMAP_ROOMDATAINFO']._serialized_end=1876
44
+ _globals['_ROBOTMAP_DEVICENAVIGATIONPOINTDATAINFO']._serialized_start=1878
45
+ _globals['_ROBOTMAP_DEVICENAVIGATIONPOINTDATAINFO']._serialized_end=1996
46
+ _globals['_ROBOTMAP_DEVICEPOINTINFO']._serialized_start=1998
47
+ _globals['_ROBOTMAP_DEVICEPOINTINFO']._serialized_end=2037
48
+ _globals['_ROBOTMAP_DEVICEAREADATAINFO']._serialized_start=2039
49
+ _globals['_ROBOTMAP_DEVICEAREADATAINFO']._serialized_end=2151
50
+ _globals['_ROBOTMAP_DEVICECURRENTPOSEINFO']._serialized_start=2153
51
+ _globals['_ROBOTMAP_DEVICECURRENTPOSEINFO']._serialized_end=2243
52
+ _globals['_ROBOTMAP_DEVICEPOSEDATAINFO']._serialized_start=2245
53
+ _globals['_ROBOTMAP_DEVICEPOSEDATAINFO']._serialized_end=2316
54
+ _globals['_ROBOTMAP_DEVICECOVERPOINTDATAINFO']._serialized_start=2318
55
+ _globals['_ROBOTMAP_DEVICECOVERPOINTDATAINFO']._serialized_end=2382
56
+ _globals['_ROBOTMAP_DEVICEHISTORYPOSEINFO']._serialized_start=2384
57
+ _globals['_ROBOTMAP_DEVICEHISTORYPOSEINFO']._serialized_end=2493
58
+ _globals['_ROBOTMAP_ALLMAPINFO']._serialized_start=2495
59
+ _globals['_ROBOTMAP_ALLMAPINFO']._serialized_end=2543
60
+ _globals['_ROBOTMAP_MAPDATAINFO']._serialized_start=2545
61
+ _globals['_ROBOTMAP_MAPDATAINFO']._serialized_end=2575
62
+ _globals['_ROBOTMAP_MAPHEADINFO']._serialized_start=2578
63
+ _globals['_ROBOTMAP_MAPHEADINFO']._serialized_end=2716
64
+ _globals['_ROBOTMAP_CARPETOFFSETINFO']._serialized_start=2718
65
+ _globals['_ROBOTMAP_CARPETOFFSETINFO']._serialized_end=2763
66
+ _globals['_ROBOTMAP_MAPBOUNDARYINFO']._serialized_start=2765
67
+ _globals['_ROBOTMAP_MAPBOUNDARYINFO']._serialized_end=2858
68
+ _globals['_ROBOTMAP_MAPEXTINFO']._serialized_start=2861
69
+ _globals['_ROBOTMAP_MAPEXTINFO']._serialized_end=3131
70
+ # @@protoc_insertion_point(module_scope)