-
Notifications
You must be signed in to change notification settings - Fork 0
/
paper-ex.sh
executable file
·37 lines (35 loc) · 1.52 KB
/
paper-ex.sh
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
#!/bin/bash
cd "$(dirname "$0")"
# Test if the "four-bar" command is available
if command -v "four-bar" &> /dev/null; then
FB="four-bar"
else
if ! command -v "./target/release/four-bar" &> /dev/null; then
cargo build --release
fi
FB="./target/release/four-bar"
fi
# Run the paper examples
# User can pass additional flags to the command
FLAGS="--seed=0 $@"
# Planar four-bar
$FB syn $FLAGS test-fb/mcgarva.closed.csv --legend=lr --atlas=closed.npz
$FB syn $FLAGS test-fb/yu2.closed.csv --legend=ll
$FB syn $FLAGS test-fb/bow.open.ron --gen=180
$FB syn $FLAGS test-fb/wu3.partial.csv
$FB syn $FLAGS test-fb/straight-line.partial.csv --legend=ll
# Spherical four-bar
$FB syn $FLAGS test-sfb/mullineux64.closed.csv --atlas=closed-sphere.npz
$FB syn $FLAGS test-sfb/sunpos-taiwan.closed.csv
$FB syn $FLAGS test-sfb/flap.closed.csv
$FB syn $FLAGS test-sfb/fish.open.csv --gen=140
$FB syn $FLAGS test-sfb/circle.partial.csv --on-unit
# Planar distance discrepancy
$FB syn $FLAGS test-fb/yu2.closed.csv --dd --refer="refer-dd" --legend=ll
$FB syn $FLAGS test-fb/crunode.closed.ron --dd --refer="refer-dd" --legend=ul
# Planar motion generation
$FB syn $FLAGS test-mfb/hsieh1.open.csv --gen=200 --pop=2000 --legend=lr
$FB syn $FLAGS test-mfb/hsieh2.open.ron --gen=200 --pop=2600 --res=60 --legend=lr
# Planar motion distance discrepancy
$FB syn $FLAGS test-mfb/hsieh1.open.csv --gen=200 --pop=500 --dd --refer="refer-dd" --legend=lr
$FB syn $FLAGS test-mfb/hsieh2.open.ron --gen=200 --pop=1000 --res=60 --dd --refer="refer-dd" --legend=lr