photonvision
photonvision copied to clipboard
PhotonVision not Working on Romi Robot
I followed both [https://docs.photonvision.org/en/latest/docs/getting-started/installation/romi.html] and [https://docs.photonvision.org/en/latest/docs/getting-started/installation/coprocessor-image.html#other-debian-based-co-processor-installation] while installing PhotonVision to my romi robot and when I do systemctl status photonvision.service an error come sup and says this.

I am unable to access the PhotonVision web interface by going to http://10.0.0.2:5800/ which is what the guide says to go to.
I do believe the issue is that the systemd service is not running as root even though it should by default.
Yeah that seems to line up. Photonvision needs to run as root on Linux usually yes.
The solution here is that the system needs to be in RW mode.
systemctl stop photonvision.service
rw
systemctl start photonvision.service
The install script should detect if the host system is a romi (or have in docs) and disable RW (or other workaround) for the romi since photonvision handles this.
More information: Romi system can be detected via existence of
pi@photonvision(rw):~$ ls /service/wpilibws-romi
log run supervise
Also update.... the latest development version (and eventual 1.9 release) should have a change which allows running without root. You won't be able to save settings, but it should at least execute.