dummy

A brain that does nothing.

Package Contents

Classes

BrainDummy

A brain that does nothing.

BrainDummyInstance

A brain that does nothing.

class BrainDummy

Bases: modular_robot.brain._brain.Brain

Inheritance diagram of modular_robot.brain.dummy.BrainDummy

A brain that does nothing.

make_instance() modular_robot.brain._brain_instance.BrainInstance

Create an instance of this brain.

Returns:

The created instance.

class BrainDummyInstance

Bases: modular_robot.brain._brain_instance.BrainInstance

Inheritance diagram of modular_robot.brain.dummy.BrainDummyInstance

A brain that does nothing.

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

Control nothing.

This brain does not do anything for control, as it is an empty box.

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.