You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Shepherd uses the raspberry pi GPIO pins and the raspberry pi camera, which means that it can't run without a raspberry pi.
The package fake-rpi is in the dev-dependencies on poetry, but is unused when running sudo python3 app.py; there is not a module to emulate the raspberry pi's camera.
What needs to be done:
We need to use the fake-rpi module (or similar) to let the script run
We need to only use the fake-rpi module when we're running on a raspberry pi (could we use the presence of the Rpi module to inform this?)
It would be good to create a way to fake the raspberry pi's camera interface (perhaps returning static images or similar?)
The text was updated successfully, but these errors were encountered:
Shepherd on the Brain is launched as a systemd process, the relative path is predictable and settable by the configuration, if you use relative paths then the brain will work, but it will break if you do things like running shepherd not from its actual directory.
We cannot use ~ for home because of reasons, if we did we would still be hardcoding the directory, so its probably "bad".
We could have the installation of Robot and Shepherd as environment variables, this would break deployed brains if the change slipped into a patch.
Possibly the solution is all of the above, use pathlib to search for a known directory ([robot/]robot?) or file ([robot/]robot/__init__.py) from an ENV, then home/pi/robot, then ../robot then ~/robot. Obviously, if we are doing this then we need to add a message on stdout for where we are getting robot from.
We are already doing something like this for other reasons to find the default team image.
Shepherd uses the raspberry pi GPIO pins and the raspberry pi camera, which means that it can't run without a raspberry pi.
The package
fake-rpi
is in the dev-dependencies on poetry, but is unused when runningsudo python3 app.py
; there is not a module to emulate the raspberry pi's camera.What needs to be done:
The text was updated successfully, but these errors were encountered: