Skip to content

Motor Agent

MotorAgent

Bases: Agent

Abstract base class for motor agents.

Subclassed from Agent, thus possessing the ability to make remote calls, etc.

Source code in mbodied/agents/motion/motor_agent.py
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
class MotorAgent(Agent):
    """Abstract base class for motor agents.

    Subclassed from Agent, thus possessing the ability to make remote calls, etc.
    """

    @abstractmethod
    def act(self, **kwargs) -> Motion:
        """Generate a Motion based on given parameters.

        Args:
            **kwargs: Arbitrary keyword arguments for motor agent to act on.

        Returns:
            Motion: A Motion object based on the provided arguments.
        """
        pass

act(**kwargs) abstractmethod

Generate a Motion based on given parameters.

Parameters:

Name Type Description Default
**kwargs

Arbitrary keyword arguments for motor agent to act on.

{}

Returns:

Name Type Description
Motion Motion

A Motion object based on the provided arguments.

Source code in mbodied/agents/motion/motor_agent.py
27
28
29
30
31
32
33
34
35
36
37
@abstractmethod
def act(self, **kwargs) -> Motion:
    """Generate a Motion based on given parameters.

    Args:
        **kwargs: Arbitrary keyword arguments for motor agent to act on.

    Returns:
        Motion: A Motion object based on the provided arguments.
    """
    pass