I am trying to run the calibration command for gravity sandbox. The paper itself is incorrect in many places, but here the calibration fails. I don't know how to fix this, and Gemini also has no clue.
tech@tech-G7-7590-2:~$ cd gravity_sandbox/src && python gravbox.py --calibrate true
libpng warning: iCCP: known incorrect sRGB profile
QColor::setRgb: RGB parameters out of range
QColor::setRgb: RGB parameters out of range
-50.5096
COPY PLANAR_PARAMS to the constant value at the start of this script
PLANAR_PARAMS = [0.006277, 0.007221, 724.000000]
BOUNDARIES = [-50.509600,-37.839900],[-50.863900,37.958400]
COPY SHAPE to gravbox.py XWIDTH YWIDTH
[40, -30, 30, -30]
SHAPE: (410, 580)
baseplane shape (410, 580)
SURFACE STATS
MEAN: -29829393.892707 MAX: 4551892488.599503 MIN: -22370460123.097042 MEDIAN: 155.082331
ERROR READING KINECT DATA - Try restarting your terminal to free up USB ports. If this persists, check your libusb installation.
Exception KeyError: KeyError(140327963756288,) in ignored
QThread: Destroyed while thread is still running
Aborted (core dumped)
The instruction paper reads as follows.
The majority of calibration is shared with UC Davis AR Sandbox-Calibration. Gravbox uses the BoxLayout.txt produced by the above process to define the base plane and surface boundaries. Following AR Sandbox calibration, copy the BoxLayout.txt file from the AR Sandbox directory to install_dir/gravity_sandbox/aux/BoxLayout.txt
Now, we will run the gravbox in "calibration" mode. To do this, navigate to install_dir/gravity_sandbox/src/ and type "python gravbox.py --calibrate" in the terminal. The following interface should appear wherein you can fine-tune the position of the displayed contours relative to the sand. Record the satisfactory values for the next step.
I couldn't take a picture because linux mint doesn't come pre-installed with a basic camera app, and I didn't feel like typing on my phone.