Table of Contents

Class HumanoidStandupInfoV5

Namespace
Gym.Environments.Envs.MuJoCo
Assembly
Gym.Environments.dll

HumanoidStandup-v5's info (HumanoidStandupEnvV5), typed (DR-91): a reset sends the first five keys, a step all eight.

public sealed record HumanoidStandupInfoV5 : MujocoInfo, IEquatable<EnvInfo>, IEquatable<MujocoInfo>, IEquatable<HumanoidStandupInfoV5>
Inheritance
HumanoidStandupInfoV5
Implements
Inherited Members
Extension Methods

Constructors

HumanoidStandupInfoV5(double, double, double, NDArray, NDArray, double?, double?, double?)

HumanoidStandup-v5's info (HumanoidStandupEnvV5), typed (DR-91): a reset sends the first five keys, a step all eight.

public HumanoidStandupInfoV5(double XPosition, double YPosition, double ZDistanceFromOrigin, NDArray TendonLength, NDArray TendonVelocity, double? RewardLinup, double? RewardQuadctrl, double? RewardImpact)

Parameters

XPosition double

The torso's x position (x_position, qpos[0]).

YPosition double

The torso's y position (y_position, qpos[1]).

ZDistanceFromOrigin double

The torso's height above its initial height (z_distance_from_origin).

TendonLength NDArray

The lengths of the two tendons from the hips to the knees (tendon_length), a float64 array the step result owns.

TendonVelocity NDArray

The velocities of the two tendons (tendon_velocity), a float64 array the step result owns.

RewardLinup double?

The standing-up term, the weighted upward velocity of the torso (reward_linup); null on a reset's info.

RewardQuadctrl double?

The control term, the negative weighted squared action (reward_quadctrl).

RewardImpact double?

The impact term, the negative weighted squared clipped external contact forces (reward_impact).

Properties

RewardImpact

The impact term, the negative weighted squared clipped external contact forces (reward_impact).

public double? RewardImpact { get; init; }

Property Value

double?

RewardLinup

The standing-up term, the weighted upward velocity of the torso (reward_linup); null on a reset's info.

public double? RewardLinup { get; init; }

Property Value

double?

RewardQuadctrl

The control term, the negative weighted squared action (reward_quadctrl).

public double? RewardQuadctrl { get; init; }

Property Value

double?

TendonLength

The lengths of the two tendons from the hips to the knees (tendon_length), a float64 array the step result owns.

public NDArray TendonLength { get; init; }

Property Value

NDArray

TendonVelocity

The velocities of the two tendons (tendon_velocity), a float64 array the step result owns.

public NDArray TendonVelocity { get; init; }

Property Value

NDArray

XPosition

The torso's x position (x_position, qpos[0]).

public double XPosition { get; init; }

Property Value

double

YPosition

The torso's y position (y_position, qpos[1]).

public double YPosition { get; init; }

Property Value

double

ZDistanceFromOrigin

The torso's height above its initial height (z_distance_from_origin).

public double ZDistanceFromOrigin { get; init; }

Property Value

double

Methods

Equals(HumanoidStandupInfoV5?)

Record equality (DR-92): the members compare as Python's == compares them (PyEquality), arrays by value; the dict inside takes no part.

public bool Equals(HumanoidStandupInfoV5? other)

Parameters

other HumanoidStandupInfoV5

The other record.

Returns

bool

true when the members are equal.

GetHashCode()

A hash consistent with Equals(object): the member count, as array members have no value hash.

public override int GetHashCode()

Returns

int

The hash.

ToInfoCore()

The members as a new dict by Python name, in declaration order, a null member's key left out.

protected override Info ToInfoCore()

Returns

Info

A new dict.

ToString()

Python's repr of the info dict (ToInfo()): {'x_position': np.float64(0.1), ...}.

public override string ToString()

Returns

string

The text.

Operators

implicit operator Info(HumanoidStandupInfoV5)

The record as an info dict (EnvInfo.ToInfo): the dict it was read from, the env's values kept, else its members by Python name.

public static implicit operator Info(HumanoidStandupInfoV5 value)

Parameters

value HumanoidStandupInfoV5

The record.

Returns

Info

A new dict; array values are shared, not copied.

Exceptions

ArgumentNullException

Thrown when value is null.

implicit operator HumanoidStandupInfoV5(Info)

The typed record of an env's info dict (DR-91): each member read with InfoExtensions.Get<T>'s conversions, a nullable member null when its key is absent; the record keeps the dict, whose values its indexer reads.

public static implicit operator HumanoidStandupInfoV5(Info value)

Parameters

value Info

The info dict, typically step.Info; the record shares it.

Returns

HumanoidStandupInfoV5

The record.

Exceptions

ArgumentNullException

Thrown when value is null.

KeyError

Thrown, with Python's message, when the key of a member that is not nullable is missing.

InvalidCastException

Thrown when a value cannot be read as its member's type.

OverflowException

Thrown when an integer does not fit its member's type.