-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.m
56 lines (46 loc) · 1.71 KB
/
setup.m
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
%% Setup for Tracking
% adds all necessary paths
clc; clear; close all; restoredefaultpath
%% Select experiment
% see 'experiments' folder
experiment = "synthetic";
%% Change paths here
certifiablyrobustperceptionpath = "../CertifiablyRobustPerception";
gncpath = "../GNC-and-ADAPT"; % optional if no outliers
mosekpath = '/opt/mosek/10.1/toolbox/r2017a';
sdpnalpath = '../SDPNALv1.0';
coptpath = '/opt/copt71';
pyvenvpath = '~/research/tracking/trackvenv/bin/python3';
if (experiment == "pascal")
cadpath = "../datasets/pascal3d";
end
if (experiment == "racecar_offline")
cadpath = "../datasets/racecar_offline";
end
%% add external paths
spotpath = certifiablyrobustperceptionpath + '/spotless';
stridepath = certifiablyrobustperceptionpath + '/STRIDE';
manoptpath = certifiablyrobustperceptionpath + '/manopt';
addpath(certifiablyrobustperceptionpath + '/utils')
addpath(genpath(spotpath)) % Use spotless for defining polynomials
addpath(certifiablyrobustperceptionpath + '/SDPRelaxations') % implementations for SDP relaxation
addpath(genpath(certifiablyrobustperceptionpath + '/CategoryRegistration')) % implementations for SDP relaxation
addpath(genpath(gncpath)) % optional if no outliers
addpath(genpath(mosekpath))
addpath(genpath(stridepath))
% addpath("/opt/copt71")
setenv("COPT_LICENSE_DIR", "~/copt")
%% add internal paths
addpath('./outlier_rejection')
addpath('./solvers')
addpath('./utils')
addpath('./visualization')
%% Setup for python
flag = int32(bitor(2, 8));
py.sys.setdlopenflags(flag);
pyenv('Version', pyvenvpath, 'ExecutionMode','OutOfProcess');
%% Setup experiments
addpath("experiments/"+experiment);
if (experiment == "pascal") || (experiment == "racecar_offline")
addpath(cadpath);
end