Table of Contents

Class PendulumEnvOptions

Namespace
Gym.Environments.Envs.Classic
Assembly
Gym.Environments.dll

The keyword arguments of PendulumEnv's constructor as a typed record (DR-34), generated from the constructor so it cannot drift from it. A property that is set becomes a keyword argument by its Python name; one left unset is not passed, so make keeps the registered spec's value and the constructor its default.

public sealed record PendulumEnvOptions : IGymOptions, IEquatable<PendulumEnvOptions>
Inheritance
PendulumEnvOptions
Implements
Inherited Members
Extension Methods

Properties

G

Gymnasium's g: the gravitational acceleration, 10.0 by default (Gravity). The g keyword argument, passed on only once set.

public double G { get; init; }

Property Value

double

RenderMode

Gymnasium's render_mode: null, "human" or "rgb_array"; not validated, as in Gymnasium (make checks it against the metadata). The render_mode keyword argument, passed on only once set.

public string? RenderMode { get; init; }

Property Value

string

ViewerFactory

Gym.NET's viewer_factory (DR-20) for human mode; null uses Gymnasium.HumanViewerFactory. The viewer_factory keyword argument, passed on only once set.

public EnvViewerFactory? ViewerFactory { get; init; }

Property Value

EnvViewerFactory

Methods

ToKwargs()

The set properties as keyword arguments by Python name, in constructor order.

public Info ToKwargs()

Returns

Info

A new dict the caller owns.