rizal72 / cozmo-voice-commands Goto Github PK
View Code? Open in Web Editor NEWIssue multiple voice commands to Cozmo, and watch him execute all of them sequentially
License: GNU General Public License v3.0
Issue multiple voice commands to Cozmo, and watch him execute all of them sequentially
License: GNU General Public License v3.0
Hello,
i have been using you Cozmo Voice Commands and I had problems with the collored text when i start the cvc.py under the windows shell. I found out that there is something missing (at least at my PC). I inserted the following two lines to the file "cozmo_voice_commands.py"
import colorama colorama.init()
right after
#!/usr/bin/env python3
'''
Cozmo Voice Commands (CvC)
Author: Riccardo Sallusti - http://riccardosallusti.it
Description: Issue complex voice commands to Cozmo, and watch him execute them.
More informations: https://github.com/rizal72/Cozmo-Voice-Commands
License: GNU
'''
import sys
import os
import asyncio
import operator
import glob
import json
When I run the "cvc" command, I get the following error
Cozmo-Voice-Commands (CvC) - Version 0.7.0 - Riccardo Sallusti (http://riccardosallusti.it)
2023-04-08 12:33:52,146 cozmo.general INFO App connection established. sdk_version=1.4.10 cozmoclad_version=3.4.0 app_build_version=00003.00004.00000
2023-04-08 12:33:52,150 cozmo.general INFO Found robot id=1
2023-04-08 12:33:52,171 cozmo.general INFO Connected to Android device serial=QBK6R20623003937
2023-04-08 12:33:52,960 cozmo.general INFO Robot id=1 serial=45a22ffc initialized OK
loading languages files...
2023-04-08 12:33:52,991 cozmo.general INFO Shutting down connection
2023-04-08 12:33:52,993 cozmo.general INFO Android serial=QBK6R20623003937 disconnected.
Traceback (most recent call last):
File "C:\Users\14B\AppData\Local\Programs\Python\Python37-32\Scripts\cvc-script.py", line 11, in
load_entry_point('cvc==0.7.0', 'console_scripts', 'cvc')()
File "c:\users\14b\appdata\local\programs\python\python37-32\lib\site-packages\cvc\cozmo_voice_commands.py", line 50, in main
cozmo.run_program(run)
File "C:\Users\14B\AppData\Roaming\Python\Python37\site-packages\cozmo\run.py", line 849, in run_program
connect(wrapper, conn_factory=conn_factory, connector=connector)
File "C:\Users\14B\AppData\Roaming\Python\Python37\site-packages\cozmo\run.py", line 605, in connect
return _connect_sync(f, conn_factory, connector)
File "C:\Users\14B\AppData\Roaming\Python\Python37\site-packages\cozmo\run.py", line 530, in _connect_sync
f(base.SyncProxy(coz_conn))
File "C:\Users\14B\AppData\Roaming\Python\Python37\site-packages\cozmo\run.py", line 835, in wrapper
f(robot)
File "c:\users\14b\appdata\local\programs\python\python37-32\lib\site-packages\cvc\cozmo_voice_commands.py", line 81, in run
load_jsons()
File "c:\users\14b\appdata\local\programs\python\python37-32\lib\site-packages\cvc\cozmo_voice_commands.py", line 110, in load_jsons
languages.append(json.load(json_file))
File "c:\users\14b\appdata\local\programs\python\python37-32\lib\json_init.py", line 293, in load
return loads(fp.read(),
File "c:\users\14b\appdata\local\programs\python\python37-32\lib\encodings\cp1254.py", line 23, in decode
return codecs.charmap_decode(input,self.errors,decoding_table)[0]
UnicodeDecodeError: 'charmap' codec can't decode byte 0x9e in position 257: character maps to
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.