-
Notifications
You must be signed in to change notification settings - Fork 0
/
sparta-haptics-lab.lua
49 lines (46 loc) · 1.86 KB
/
sparta-haptics-lab.lua
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
SPARTA_ROOT = "sparta-3.0.1-g9772b97"
-- This is up here instead of inline in fillTemplate
-- so the batch files don't start with a bunch of tabs on
-- each line.
template = [[
pushd "%~dp0"
cd "{SPARTA_ROOT}"
bin\sparta.exe {argString}
pause
]]
launchers = {
filename = "SPARTA %s.cmd";
fillTemplate = function(argString)
local result = template:gsub("{SPARTA_ROOT}", SPARTA_ROOT):gsub("{argString}", argString)
return result
end;
options = {
--places
--{
--["SPARTA Factory"] = "";
--};
--device configurations
{
["DualOmni"] = [[../sparta-scripts-and-models/Devices/RightOmni.lua ../sparta-scripts-and-models/Devices/LeftOmni.lua]];
["DualGlove"] = [[../sparta-scripts-and-models/Devices/RightGlove.lua ../sparta-scripts-and-models/Devices/LeftGlove.lua]];
["LeftOmni_RightGlove"] = [[../sparta-scripts-and-models/Devices/LeftOmni.lua ../sparta-scripts-and-models/Devices/RightGlove.lua]];
["LeftGlove_RightOmni"] = [[../sparta-scripts-and-models/Devices/LeftGlove.lua ../sparta-scripts-and-models/Devices/RightOmni.lua]];
["RightOmni_Only"] = [[../sparta-scripts-and-models/Devices/RightOmni.lua]];
["LeftOmni_Only"] = [[../sparta-scripts-and-models/Devices/LeftOmni.lua]];
};
--models
{
["Burr Puzzle"] = [[../sparta-scripts-and-models/BlockPuzzle-Burr/Lua/run_burr_puzzle.lua]];
["Fly Wheel"] = [[../sparta-scripts-and-models/FlyWheel/demo.lua]];
["UBracket"] = [[../sparta-scripts-and-models/UBracket/bracket.lua]];
["PegAndKey"] = [[../sparta-scripts-and-models/Bimanual_Study/main.lua]];
["Hybrid"] = [[../sparta-scripts-and-models/Hybrid/new-block-and-peg.lua]];
};
--display configurations
{
stereo = "--jconf ../haptics-lab-jconf/fishbowl/hapticslab.fishbowl.tracked.stereo.jconf";
mono = "--jconf ../haptics-lab-jconf/fishbowl/hapticslab.fishbowl.tracked.mono.jconf";
};
};
}
require "generator-shared" (launchers)