_brain_instance

Module Contents

Classes

BrainInstance

An instance of a brain that perform the control of a robot.

class BrainInstance

Bases: abc.ABC

Inheritance diagram of modular_robot.brain._brain_instance.BrainInstance

An instance of a brain that perform the control of a robot.

Instances of this class can be stateful.

abstract control(dt: float, sensor_state: modular_robot.sensor_state.ModularRobotSensorState, control_interface: modular_robot._modular_robot_control_interface.ModularRobotControlInterface) None

Control the modular robot.

Parameters:
  • dt – Elapsed seconds since last call to this function.

  • sensor_state – Interface for reading the current sensor state.

  • control_interface – Interface for controlling the robot.