I built the deptha-core examples on Ubuntu 20.04 . Then I plugged in the camera and ran the edge_detector example and this was the error:
[depthai] [warning] Insufficient permissions to communicate with X_LINK_UNBOOTED device with name "1.7". Make sure udev rules are set
so then I found some udev commands on this web site:
echo 'SUBSYSTEM=="usb", ATTRS{idVendor}=="03e7", MODE="0666"' | sudo tee /etc/udev/rules.d/80-movidius.rules
cat /etc/udev/rules.d/80-movidius.rules
sudo udevadm control --reload-rules
sudo udevadm trigger
and now the error changes to:
[MonoCamera(1)] [error] Camera by name: left not detected on the underlying socket: -1
terminate called after throwing an instance of 'std::runtime_error'
what(): MonoCamera(1) - Could not map AUTO camera socket
Aborted (core dumped)