Open hamoda150 opened 2 years ago
obviously not successfully installed. Or you install it using python3, but import it using python2?
@hyansuper I use the latest Rasbian version with python 3.9 only. I'm trying again but this time installation takes so long time more than 24 hours freezing. which version of Rasbian should I use? did you compile OpenCV and OpenCV Contrib from source? if so, can you give me a link to the tutorial because raspberry pi zero is different from other versions of RPI?
python3 -m pip install rcute-cozmars
Oh,sorry I didn't clarify, rcute-cozmars is meant to be installed on pc, it's a client program that talks to the server on pi zero
@hyansuper thanks a lot. I Installed it on PC. but when I try to control the robot using the website: http://rcute-cozmars-xxxx.local all the buttons are not working.
Now you can visit http://rcute-cozmars-xxxx.local/, so wifi connection is good. Click the test button or visit http://rcute-cozmars-xxxx.local/test, open your browser's console (by pressing F12) and goto console and check if any error shows. This page use js api to connect to the robot. You can also close the page and control the robot by python from you pc, example. see if any errors accur
@hyansuper
>>> from rcute_cozmars import Robot # works fine
>>> robot = Robot(d039) # works fine
>>> robot.connect() # works fine
>>> robot.forward(2) # freez the console and motor not moving
>>>
I need to see the error message.
Login raspberry pi zero and stop backgroud service by sudo systemctl stop cozmars.service
then bring it up in foreground sudo python3 -m rcute_cozmars_server
. Now you can see if there's any error message on the server side.
Then try to control the robot from browser or by python ( you can't do both at the same time), and also watch out for any error on client side.
@hyansuper When i made your instrution, i have these errors. How can i connect the Sanic ?
I also have the same error :(. Can someone please also show me how the LCD needs to be connected? I have the same one as in https://github.com/r-cute/rcute-cozmars/issues/24#issuecomment-1073474890. Thank you!
I'm getting this error
ModuleNotFoundError: No module named 'rcute_cozmars'
when I excuteimport rcute_cozmars
I installed SDK already using
python3 -m pip install rcute-cozmars
Can anyone help me solve this issue? Thanks.