Monty.Frameworks.Models.MotorPolicies.RuntimeMotorPolicy behaviour (ExTbpMonty.Core v0.1.0)

Copy Markdown View Source

What the runtime asks a policy: given this step, what should move?

Mirrors tbp/monty/frameworks/models/motor_policies.py::RuntimeMotorPolicy, a protocol with one method. The goal is the one the selector chose, or nil on a step where nothing was proposed.

Summary

Callbacks

The actions to take, whether learning modules should sit this step out, and the policy as it now stands.

Types

t()

@type t() :: struct()

Callbacks

call(t, ctx, observations, state, percept, goal)

@callback call(
  t(),
  ctx :: Monty.Context.t(),
  observations :: map() | nil,
  state :: Monty.Frameworks.Models.MotorSystemState.t(),
  percept :: Monty.Cmp.Message.t() | nil,
  goal :: Monty.Cmp.Goal.t() | nil
) :: {Monty.Frameworks.Models.MotorPolicies.MotorPolicyResult.t(), t()}

The actions to take, whether learning modules should sit this step out, and the policy as it now stands.