Hit.mod

From Calimacil
Jump to: navigation, search

This is used by the Calimotion AI to identify a hit detection on an object and create an event based on it. This file needs to be created using data from the CaliTrain tool.

download file hit.mod


Creation Procedure

Here is the procedure to create and update the hit.mod file for the Calimotion:

  1. Download CaliTrain.exe
  2. Put in C:
  3. In Teraterm, open the file menu, then log (Download link: TeraTerm)
  4. Create a new file called X.hit or X.nohit in Data subfolder
  5. Enter the MPU command MPU -log [seconds] (for example, 1000)
  6. Make your tests
  7. Enter the MPU command MPU -stop to stop logging
  8. In the file menu, choose "show log dialog"
  9. Choose "close"
  10. In CMD, go to Train folder (cd /.., then cd /train)
  11. Enter train ./data
  12. Copy the out.model file that is in train folder
  13. Rename it hit.mod
  14. Put it in the Calimotion with PUT command

Example

Fri Dec 02 17:00:12 2016 version 1 1:1 2:2 3:25 4:-1 5:0 5:1 6:0.02258698509976468 6:0.4774906398370304 6:-0.3382300105932304 6:0.9258367631873949 6:-0.1588314855268381 6:-0.4223000684285276 6:0.3359427196520647 6:-0.5264783527400369 6:-0.08017565535528189 6:-0.08364917861283762 6:0.378933086446748 6:-1.362135852725452 6:0.09475165199696732 6:0.6057118517413807 6:0.4994977862681035 6:-0.8031927984104942 6:-0.8744547747658761 6:0.4133614000705833 6:0.2443539784682646 6:1.053885768696037 6:-1.315884598934014 6:1.498549695858616 6:0.34115518699098 6:-0.6941874422048359 6:-0.3370504328254487 7:5 8:0.300000011920929 9:20 a:5