Bardo.PopulationManager.ExtendedMorphology behaviour (Bardo v0.1.0)

View Source

Defines an extended morphology behavior that builds on the basic Morphology behavior by adding additional callbacks needed for complex examples.

This behavior includes additional callbacks used by the DPB, Flatland, and FX examples that were not in the basic Morphology behavior.

Summary

Callbacks

The get_phys_config callback returns the physical configuration for an agent, including its sensors and actuators.

The get_scape_params callback returns the parameters required for an agent to enter a scape.

The neuron_pattern callback defines how sensors and actuators connect to the neural network.

Callbacks

get_phys_config(owner, cortex_id, scape_name)

@callback get_phys_config(owner :: atom(), cortex_id :: atom(), scape_name :: atom()) ::
  map()

The get_phys_config callback returns the physical configuration for an agent, including its sensors and actuators.

get_scape_params(owner, agent_id, cortex_id, scape_name)

@callback get_scape_params(
  owner :: atom(),
  agent_id :: atom(),
  cortex_id :: atom(),
  scape_name :: atom()
) ::
  map()

The get_scape_params callback returns the parameters required for an agent to enter a scape.

neuron_pattern(owner, agent_id, cortex_id, neural_interface)

@callback neuron_pattern(
  owner :: atom(),
  agent_id :: atom(),
  cortex_id :: atom(),
  neural_interface :: atom()
) :: map()

The neuron_pattern callback defines how sensors and actuators connect to the neural network.