swarmrl.components.colloid Module API Reference¶
Data class for the colloid agent.
Colloid
dataclass
¶
Wrapper class for a colloid object.
Source code in swarmrl/components/colloid.py
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 |
|
__repr__()
¶
Return a string representation of the colloid.
Source code in swarmrl/components/colloid.py
24 25 26 27 28 29 30 31 |
|
tree_flatten()
¶
Flatten the PyTree.
Source code in swarmrl/components/colloid.py
36 37 38 39 40 41 42 |
|
tree_unflatten(aux_data, children)
classmethod
¶
Unflatten the PyTree.
Source code in swarmrl/components/colloid.py
44 45 46 47 48 49 |
|