Repostory related to the development of a 3dof monocular robot
the mono_observer_driver pkg requires the 'serial' library, I recomend to create a venv in this proyect, add it to the .gitignore (it already has a myvenv ignore instruction, but rename it as you wish), activate it and install the requirements.txt file:
python -m venv myvnev
source myvenv/bin/activate
pip install -r requirements.txt
then use the venv each time you require to run the serial-comunication.py file (or test files)
for testing in VMWare you must have the usb device conected to the virtual machine, also if the driver (arduino or esp32) disconects automaticaly while checking it's port availability at the end of the output of the next line
sudo dmesg
then check for the brltty package(a braille e-reader), as it has priority over serial devices, as stated here and here
the solution proposed is to uninstall the pkg directly if is not used, or to dissable it:
sudo apt remove brltty
you also may encounter the next error while trying to conect to your device
PermissionError: [Errno 13] Permission denied: '/dev/ttyUSB0'
finaly, in this page they mention to add your user to the dialgroup with the next command and then login and logout or restart your machine
sudo usermod -a -G dialout $USER