Skip to content

swarmrl.actions.actions Module API Reference

Main module for actions.

Action dataclass

Holds the 3 quantities that are applied to the colloid plus an identifier

Source code in swarmrl/actions/actions.py
10
11
12
13
14
15
16
17
18
19
@dataclasses.dataclass
class Action:
    """
    Holds the 3 quantities that are applied to the colloid plus an identifier
    """

    id = 0
    force: float = 0.0
    torque: np.ndarray = None
    new_direction: np.ndarray = None