Monty.Frameworks.Models.SensorModules.MessageNoise behaviour (ExTbpMonty.Core v0.1.0)

Copy Markdown View Source

Something that adds noise to a percept, or does not.

Mirrors tbp/monty/frameworks/models/sensor_modules.py::MessageNoise, the protocol a sensor module's noise layer answers.

Monty passes a numpy RandomState that the noise mutates as it draws. Here the stream is an argument instead: a noise layer draws from it and answers a percept. It is the episode's one stream (Monty.Random.Stream), the same one the motor system and the goal generators draw from, because it is the same one in Monty — so the draws a noisy percept makes move the numbers of everything stepped after it (docs/monty-differences.md §2.1).

Summary

Callbacks

The percept, noisier.

Types

rng()

@type rng() :: GenServer.server()

t()

@type t() :: struct()

Callbacks

call(t, t, rng)

@callback call(t(), Monty.Cmp.Message.t(), rng()) :: Monty.Cmp.Message.t()

The percept, noisier.