-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.py
20 lines (19 loc) · 823 Bytes
/
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
from Simsim import Simsim
import numpy as np
import logging
if __name__ == "__main__":
s = Simsim()
s.rate = 15
s.add_tracker('tracker', np.array([500, 300]), sensor_rad=250)
s.add_tracker('tracker', np.array([300, 500]), sensor_rad=250)
s.add_tracker('tracker', np.array([700, 500]), sensor_rad=250)
s.add_tracker('tracker', np.array([620, 220]), sensor_rad=150)
# s.add_target('tgt', np.array([150, 50]))
s.add_target('tgt', np.array([500, 490]))
s.add_target('tgt', np.array([600, 290]))
s.add_target('tgt', np.array([180, 500]))
s.add_target('tgt', np.array([500, 300]))
s.add_target('tgt', np.array([300, 500]))
s.add_target('tgt', np.array([630, 500]))
s.add_edges([[0, 1], [1, 2], [0, 2], [3, 0]])
s.run(logging.DEBUG, ground_truth=1)