wirepod-vector-sdk-audio 0.9.0__py3-none-any.whl

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.
Files changed (71) hide show
  1. anki_vector/__init__.py +43 -0
  2. anki_vector/animation.py +272 -0
  3. anki_vector/annotate.py +590 -0
  4. anki_vector/audio.py +212 -0
  5. anki_vector/audio_stream.py +335 -0
  6. anki_vector/behavior.py +1135 -0
  7. anki_vector/camera.py +670 -0
  8. anki_vector/camera_viewer/__init__.py +121 -0
  9. anki_vector/color.py +88 -0
  10. anki_vector/configure/__main__.py +331 -0
  11. anki_vector/connection.py +838 -0
  12. anki_vector/events.py +420 -0
  13. anki_vector/exceptions.py +185 -0
  14. anki_vector/faces.py +819 -0
  15. anki_vector/lights.py +210 -0
  16. anki_vector/mdns.py +131 -0
  17. anki_vector/messaging/__init__.py +45 -0
  18. anki_vector/messaging/alexa_pb2.py +36 -0
  19. anki_vector/messaging/alexa_pb2_grpc.py +3 -0
  20. anki_vector/messaging/behavior_pb2.py +40 -0
  21. anki_vector/messaging/behavior_pb2_grpc.py +3 -0
  22. anki_vector/messaging/client.py +33 -0
  23. anki_vector/messaging/cube_pb2.py +113 -0
  24. anki_vector/messaging/cube_pb2_grpc.py +3 -0
  25. anki_vector/messaging/extensions_pb2.py +25 -0
  26. anki_vector/messaging/extensions_pb2_grpc.py +3 -0
  27. anki_vector/messaging/external_interface_pb2.py +169 -0
  28. anki_vector/messaging/external_interface_pb2_grpc.py +1267 -0
  29. anki_vector/messaging/messages_pb2.py +431 -0
  30. anki_vector/messaging/messages_pb2_grpc.py +3 -0
  31. anki_vector/messaging/nav_map_pb2.py +33 -0
  32. anki_vector/messaging/nav_map_pb2_grpc.py +3 -0
  33. anki_vector/messaging/protocol.py +33 -0
  34. anki_vector/messaging/response_status_pb2.py +27 -0
  35. anki_vector/messaging/response_status_pb2_grpc.py +3 -0
  36. anki_vector/messaging/settings_pb2.py +72 -0
  37. anki_vector/messaging/settings_pb2_grpc.py +3 -0
  38. anki_vector/messaging/shared_pb2.py +54 -0
  39. anki_vector/messaging/shared_pb2_grpc.py +3 -0
  40. anki_vector/motors.py +127 -0
  41. anki_vector/nav_map.py +409 -0
  42. anki_vector/objects.py +1782 -0
  43. anki_vector/opengl/__init__.py +103 -0
  44. anki_vector/opengl/assets/LICENSE.txt +21 -0
  45. anki_vector/opengl/assets/cube.jpg +0 -0
  46. anki_vector/opengl/assets/cube.mtl +9 -0
  47. anki_vector/opengl/assets/cube.obj +1000 -0
  48. anki_vector/opengl/assets/vector.mtl +67 -0
  49. anki_vector/opengl/assets/vector.obj +13220 -0
  50. anki_vector/opengl/opengl.py +864 -0
  51. anki_vector/opengl/opengl_vector.py +620 -0
  52. anki_vector/opengl/opengl_viewer.py +689 -0
  53. anki_vector/photos.py +145 -0
  54. anki_vector/proximity.py +176 -0
  55. anki_vector/reserve_control/__main__.py +36 -0
  56. anki_vector/robot.py +930 -0
  57. anki_vector/screen.py +201 -0
  58. anki_vector/status.py +322 -0
  59. anki_vector/touch.py +119 -0
  60. anki_vector/user_intent.py +186 -0
  61. anki_vector/util.py +1132 -0
  62. anki_vector/version.py +15 -0
  63. anki_vector/viewer.py +403 -0
  64. anki_vector/vision.py +202 -0
  65. anki_vector/world.py +899 -0
  66. wirepod_vector_sdk_audio-0.9.0.dist-info/METADATA +80 -0
  67. wirepod_vector_sdk_audio-0.9.0.dist-info/RECORD +71 -0
  68. wirepod_vector_sdk_audio-0.9.0.dist-info/WHEEL +5 -0
  69. wirepod_vector_sdk_audio-0.9.0.dist-info/licenses/LICENSE.txt +180 -0
  70. wirepod_vector_sdk_audio-0.9.0.dist-info/top_level.txt +1 -0
  71. wirepod_vector_sdk_audio-0.9.0.dist-info/zip-safe +1 -0
@@ -0,0 +1,103 @@
1
+ # Copyright (c) 2018 Anki, Inc.
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License in the file LICENSE.txt or at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ """This module provides 3D classes for running the OpenGL Viewer.
16
+
17
+ It should be launched in a separate process to allow Vector to run freely while
18
+ the viewer is rendering.
19
+
20
+ It uses PyOpenGL, a Python OpenGL 3D graphics library which is available on most
21
+ platforms. It also depends on the Pillow library for image processing.
22
+
23
+ Warning:
24
+ This package requires Python to have the PyOpenGL package installed, along
25
+ with an implementation of GLUT (OpenGL Utility Toolkit).
26
+
27
+ To install the Python packages on Mac and Linux do ``python3 -m pip install --user "wirepod_vector_sdk[3dviewer]"``
28
+
29
+ To install the Python packages on Windows do ``py -3 -m pip install --user "wirepod_vector_sdk[3dviewer]"``
30
+
31
+ On Windows and Linux you must also install freeglut (macOS / OSX has one
32
+ preinstalled).
33
+
34
+ On Linux: ``sudo apt-get install freeglut3``
35
+
36
+ On Windows: Go to http://freeglut.sourceforge.net/ to get a ``freeglut.dll``
37
+ file. It's included in any of the `Windows binaries` downloads. Place the DLL
38
+ next to your Python script, or install it somewhere in your PATH to allow any
39
+ script to use it."
40
+ """
41
+
42
+ import multiprocessing as mp
43
+
44
+ from . import opengl_viewer
45
+
46
+
47
+ def main(close_event: mp.Event,
48
+ input_intent_queue: mp.Queue,
49
+ nav_map_queue: mp.Queue,
50
+ world_frame_queue: mp.Queue,
51
+ extra_render_function_queue: mp.Queue,
52
+ user_data_queue: mp.Queue,
53
+ show_viewer_controls: bool = True):
54
+ """Run the 3D Viewer window. This is intended to run on a background process.
55
+
56
+ .. code-block:: python
57
+
58
+ import multiprocessing as mp
59
+
60
+ from anki_vector import opengl
61
+
62
+ ctx = mp.get_context('spawn')
63
+ close_event = ctx.Event()
64
+ input_intent_queue = ctx.Queue(maxsize=10)
65
+ nav_map_queue = ctx.Queue(maxsize=10)
66
+ world_frame_queue = ctx.Queue(maxsize=10)
67
+ extra_render_function_queue = ctx.Queue(maxsize=1)
68
+ user_data_queue = ctx.Queue()
69
+ process = ctx.Process(target=opengl.main,
70
+ args=(close_event,
71
+ input_intent_queue,
72
+ nav_map_queue,
73
+ world_frame_queue,
74
+ extra_render_function_queue,
75
+ user_data_queue),
76
+ daemon=True)
77
+ process.start()
78
+
79
+ :param close_event: Used to notify each process when done rendering.
80
+ :type close_event: multiprocessing.Event
81
+ :param input_intent_queue: Sends key commands from the 3D viewer process to the main process.
82
+ :type input_intent_queue: multiprocessing.Queue
83
+ :param nav_map_queue: Updates the 3D viewer process with the latest navigation map.
84
+ :type nav_map_queue: multiprocessing.Queue
85
+ :param world_frame_queue: Provides the 3D viewer with details about the world.
86
+ :type world_frame_queue: multiprocessing.Queue
87
+ :param extra_render_function_queue: Functions to be executed in the 3D viewer process.
88
+ :type extra_render_function_queue: multiprocessing.Queue
89
+ :param user_data_queue: A queue that may be used outside the SDK to pass information to the viewer process.
90
+ May be used by ``extra_render_function_queue`` functions.
91
+ :param show_viewer_controls: Specifies whether to draw controls on the view.
92
+ """
93
+ viewer = opengl_viewer.OpenGLViewer(close_event,
94
+ input_intent_queue,
95
+ nav_map_queue,
96
+ world_frame_queue,
97
+ extra_render_function_queue,
98
+ user_data_queue,
99
+ show_viewer_controls=show_viewer_controls)
100
+ viewer.run()
101
+
102
+
103
+ __all__ = ['main']
@@ -0,0 +1,21 @@
1
+ Anki, Inc. Image and 3D Model License Agreement Version 1.1 (last updated November 15, 2018)
2
+
3
+ This Image and 3D Model License Agreement (this "Agreement") governs the terms and conditions of your access to and use of Licensed Materials (as defined below), and is made between you, as an individual or entity ("you"), and Anki, Inc. ("we," "us" or "Licensor"). You accept and agree to be bound by this Agreement by your access to or use of any of the Licensed Materials.
4
+
5
+ The "Licensed Materials" are the digital images, and 3D models, that we make available to you from time to time in connection with this Agreement.
6
+
7
+ 1. License. Subject to the terms and conditions of this Agreement, we hereby grant you a limited, revocable, worldwide, fully-paid, royalty free, non-exclusive, non-transferable copyright license during the term of this Agreement to access, copy, display, perform, modify the size of, and distribute, in any of the Licensed Materials, in each case: (A) solely in connection with your use of the Vector SDK in accordance with our separate SDK license agreement(s) or the applicable Anki hardware products (e.g. Vector) and/or the Vector App, and (B) only provided that you comply with the Anki Terms of Use at www.anki.com/terms and any other terms that may apply to the Vector device and/or Vector mobile application and that we may from time to time modify. Licensee may not sublicense any of the foregoing rights, except for the right to access, copy, display perform and distribute the Licensed Materials only in connection with the SDK in an app created by the Licensee. For clarity, this license does not include the right to commercially distribute the Licensed Materials in print form.
8
+
9
+ 2. Reservation. Licensor (or its suppliers) owns and retains all right, title, and interest in and to each of the Licensed Materials worldwide including, but not limited to, ownership of all copyrights and other intellectual property rights therein. We reserve all rights not explicitly licensed in this Agreement.
10
+
11
+ 3. DISCLAIMER OF WARRANTY AND LIMITATION OF LIABILITY. THE LICENSED MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NONINFRINGEMENT. IN NO EVENT WILL LICENSOR BE LIABLE TO YOU OR TO ANY THIRD PARTY FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL, PUNITIVE OR CONSEQUENTIAL DAMAGES, OR LOST REVENUE, SAVINGS OR PROFITS, WHETHER BASED ON BREACH OF CONTRACT, TORT (INCLUDING NEGLIGENCE) OR OTHERWISE, ARISING FROM OR IN CONNECTION WITH ANY OF THE LICENSED MATERIALS, WHETHER OR NOT THAT PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
12
+
13
+ 4. Indemnification. You will defend, indemnify and hold harmless Licensor and its officers, directors, shareholders, employees, and agents from any loss, liability, cost or expense, including attorneys' fees ("Liabilities") that arises from any claim, action or proceeding in connection with your use of the Licensed Materials or your breach of this Agreement. You shall have control of the defense and all related settlement negotiations for such claim, action or proceeding; provided that we shall have the right to consent to any settlement or entry of judgment, such consent not to be unreasonably withheld, and we may participate in such defense using our own counsel at our own expense.
14
+
15
+ 5. Termination. You may terminate this Agreement at any time by deleting or destroying all copies of the Licensed Materials that you possess or control. We may terminate this Agreement and/or your license to any or all of the Licensed Materials at any time without prior notice to you. In case of termination, you must cease all access and use of, and delete or destroy, all copies of the Licensed Materials that you possess or control. Sections 2 through 8 of this Agreement will survive termination of this Agreement.
16
+
17
+ 6. Modifications to this Agreement and Licensed Materials. We may amend this Agreement at any time by posting an amended version online and/or sending information regarding the amendment to your email address of record with us. You shall be deemed to have accepted such amendments by continuing to access and/or use any Licensed Materials after such amendments have been posted or information regarding such amendments has been sent to you. If you do not agree to any of such changes, you may terminate this Agreement and immediately cease all access to and use of Licensed Materials. You agree that such termination will be your exclusive remedy in such event. No other waiver or modification of this Agreement shall be valid unless in writing and signed by both parties. We also reserve the right at any time and from time to time to modify or discontinue all or any portion of any Licensed Materials without notice to you. We shall not be liable to you or any third party should we exercise such rights.
18
+
19
+ 7. Assignment. You may not assign this Agreement, in whole or in part, without our prior written consent, and any attempt by you to assign this Agreement without such consent shall be void. Subject to the foregoing, this Agreement shall benefit and bind both parties, and their successors and permitted assigns.
20
+
21
+ 8. General. You shall comply with all laws, rules and regulations applicable to your activities under this Agreement. This Agreement shall be governed by and construed in accordance with the laws of the State of California, U.S.A., except for its conflicts of laws principles. The application of the United Nations Convention on Contracts for the International Sale of Goods is expressly excluded. This Agreement will not be construed to create or imply any partnership, agency or joint venture between the parties. If any provision of this Agreement is found illegal or unenforceable, it will be enforced to the maximum extent permissible, and the legality and enforceability of the other provisions of this Agreement will not be affected. This Agreement is the complete agreement between the parties with respect to its subject matter, and supersedes any prior agreements and communications (both written and oral) regarding such subject matter.
Binary file
@@ -0,0 +1,9 @@
1
+ newmtl cube_mtl
2
+ map_Kd cube.jpg
3
+ illum 4
4
+ Kd 0.15 0.15 0.15
5
+ Ka 0.15 0.15 0.15
6
+ Tf 1.00 1.00 1.00
7
+ Ni 1.00
8
+ Ks 0.99 0.99 0.99
9
+ Ns 10