-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathPrimitivesPhysics.py
55 lines (35 loc) · 1.62 KB
/
PrimitivesPhysics.py
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
from Observation import Observation
from CapsuleNetwork import CapsuleNetwork
from RelationTriplet import RelationTriplet
from AttributePool import AttributePool
class PrimitivesPhysics:
def __init__(self, attributePool : AttributePool):
self._attributePool = attributePool
self.init()
# -------------------- User Defined
def init(self):
return
def generateInteractionSequence(self, capsNet : CapsuleNetwork, width : int, height : int, folder : str, idname : str):
# Generate Images in the folder with name id + "." + sequence_index + file_format
return
def generateRelation(self):
# Triplet Format:
# Sender -- Symbol | Attributes | Velocities | Static/Dynamic | Rigid/Elastic
# Receiver -- Symbol | Attributes | Velocities | Static/Dynamic | Rigid/Elastic
# Relation -- Distance | Degrees-Of-Freedom | Sender Normal | Receiver Normal
# Effect Format:
# Acceleration Vector | Angle Acceleration Vector
triplet = [0.0]
effect = [0.0]
return triplet, effect
def generateInteraction(self):
# Aggregate Format:
# Receiver -- Attributes | Symbol | Velocities | Static/Dynamic | Rigid/Elastic
# Effects -- Summed Effect Acceleration Vector | Summed Effect Angle Acceleration Vector
# External -- External Acceleration Vector | External Angle Acceleration Vector
# Attributes Format:
# Receiver -- Attributes | Accelerations
aggregate = [0.0]
attributes = [0.0]
return aggregate, attributes
# --------------------