basalt/doc/monado/Vive.md

2.3 KiB

Valve Index, HTC Vive, and other lighthouse-tracked headsets

The integration with Basalt for the vive driver in Monado is on early stages.

Many things do not work very well yet.

Calibration

The most annoying bit is that you will need to manually calibrate the headset to get a json file for Basalt like the index_calib.json example. You can use that example first to see how it works for you by setting SLAM_CONFIG=$bsltdeps/basalt/data/monado/index.toml, but that will likely not work very well.

The general calibration procedure is as follows:

  1. Setup the calibration target:
  2. Download the one from kalibr
  3. Open the pdf file and measure with a ruler the black square side (e.g., 24 inch 1080p screen, 34% zoom in Okular viewer, gives 3cm)
  4. Update aprlgrid_6x6.json "tagSize" property in meters (e.g., 3cm would be "0.03")
  5. Record camera calibration sequence with the euroc recorder in Monado:
  1. Record camera-imu calibration sequence: (faster motions)
  1. Now run camera calibration as explained here
  2. Then camera+imu (no mocap) calibration as explained here
  3. If the datasets are not good, the calibration will likely not be very good as well. If you want to be sure you calibrated things properly, a good idea is to repeat this process until you get similar results.