forked from favyen/miris
-
Notifications
You must be signed in to change notification settings - Fork 0
/
exec.go
31 lines (26 loc) · 882 Bytes
/
exec.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
package main
import (
"./data"
"./exec"
"./miris"
"fmt"
"os"
)
func main() {
predName := os.Args[1]
planFname := os.Args[2]
ppCfg, modelCfg := data.Get(predName)
detectionPath, framePath := data.GetExec(predName)
var plan miris.PlannerConfig
miris.ReadJSON(planFname, &plan)
execCfg := miris.ExecConfig{
DetectionPath: detectionPath,
FramePath: framePath,
TrackOutput: fmt.Sprintf("logs/%s/%d/%v/track.json", predName, plan.Freq, plan.Bound),
FilterOutput: fmt.Sprintf("logs/%s/%d/%v/filter.json", predName, plan.Freq, plan.Bound),
UncertaintyOutput: fmt.Sprintf("logs/%s/%d/%v/uncertainty.json", predName, plan.Freq, plan.Bound),
RefineOutput: fmt.Sprintf("logs/%s/%d/%v/refine.json", predName, plan.Freq, plan.Bound),
OutPath: fmt.Sprintf("logs/%s/%d/%v/final.json", predName, plan.Freq, plan.Bound),
}
exec.Exec(ppCfg, modelCfg, plan, execCfg)
}