Skip to content

MdpObservationAttribute

class · namespace Hazel

Marks a static method as an MDP observation component. Method signature: int Compute(MdpContext ctx, Dictionary<string, string> parameters, float[] buffer, int offset)

Inherits Attribute

public sealed class MdpObservationAttribute : Attribute

Constructors

MdpObservationAttribute(string)

public MdpObservationAttribute(string name)

Properties

Category

public string Category { get; set; }

Description

public string Description { get; set; }

Name

public string Name { get; }

OutputSize

public int OutputSize { get; set; }

RobotTypes

public string[] RobotTypes { get; set; }

Source: Hazel/Learn/MdpAttributes.cs