diff --git a/README.md b/README.md index ce02799..02b3efa 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ ## How to -> See also the sibling repo [traptools](https://git.rubenvandeven.com/security_vision/traptools) for camera calibration and homography tools that are needed for this repo. Also, [trap_rust](https://git.rubenvandeven.com/security_vision/trap_rust) is used to map the shapes (which are generated by `stage.py`) to lasers, as to use specific optimization techniques for the paths before sending them to the DAC. +> See also the sibling repo [traptools](https://git.rubenvandeven.com/security_vision/traptools) for camera calibration and homography tools that are needed for this repo. Also, [laserspace](https://git.rubenvandeven.com/security_vision/laserspace) is used to map the shapes (which are generated by `stage.py`) to lasers, as to use specific optimization techniques for the paths before sending them to the DAC. These are roughly the steps to go from datagathering to training @@ -25,3 +25,29 @@ These are roughly the steps to go from datagathering to training + + +## Testnight 2025-06-13 + +Stappenplan: + +* Hang lasers. Connect all cables etc. +* `DISPLAY=:0 cargo run --example laser_frame_stream_gui` + * Use numbers to pick a nice shape. Use this to make sure both lasers cover the right area. (if it doesn't work. Flip some switches in the gui, the laser output should now start) +* In trap folder: `uv run supervisorctl start video` +* In laserspace folder: `DISPLAY=:0 cargo run --bin render_lines_gui` and use gui to draw and tweak projection area + * Use the save button to store configuration +/* +* in trap folder: `DISPLAY=:0 uv run trap_laser_calibration` + * follow instructions: + * camera points: 1-9 or cursor to create/select/move points + * move laser: vim movement keys : hjkl, use shift to move faster + * `c` to calibrate. Matrix is output to cli. + * `q` to quit + * saved to `laser_calib.json`, copy H field to `trap_rust/src/trap/laser.rs` (to e.g. TMP_STUDIO_CM_8) +* Restart `render_lines_gui` with new homographies + * `DISPLAY=:0 cargo run --bin render_lines_gui` +*/ +* change video source in `supervisord.conf` and run `uv run supervisorctl update` to switch + * **if tracking is slow and there's no prediction.** + * `uv run python -c "import torch;print(torch.cuda.is_available())"`