Table of Contents

Class RenderResult.RgbDepth

Namespace
Gym.Envs
Assembly
Gym.dll

An rgbd_tuple frame: the RGB frame and the depth frame of the same view (MuJoCo), Python's (rgb, depth).

public sealed class RenderResult.RgbDepth : RenderResult, IEquatable<RenderResult>, IDisposable
Inheritance
RenderResult.RgbDepth
Implements
Inherited Members
Extension Methods

Constructors

RgbDepth(NDArray, NDArray)

Wraps the two frames.

public RgbDepth(NDArray rgb, NDArray depth)

Parameters

rgb NDArray

The (height, width, 3) uint8 frame.

depth NDArray

The (height, width) depth frame.

Exceptions

ArgumentNullException

Thrown when either frame is null.

Properties

DepthFrame

The depth frame.

public NDArray DepthFrame { get; }

Property Value

NDArray

RgbFrame

The RGB frame.

public NDArray RgbFrame { get; }

Property Value

NDArray

Methods

Dispose()

Releases both frames.

public override void Dispose()

Equals(RenderResult?)

Structural equality (see the class remarks).

public override bool Equals(RenderResult? other)

Parameters

other RenderResult

The other result; may be null.

Returns

bool

true when both are the same case with equal contents.

GetHashCode()

A hash consistent with Equals(RenderResult?): the case and the shapes, never the pixels.

public override int GetHashCode()

Returns

int

The hash.

ToString()

Describes both frames by shape and dtype.

public override string ToString()

Returns

string

The text.