Table of Contents

Class MjDataBody

Namespace
Gym.MuJoCo
Assembly
Gym.Environments.dll

One body's quantities in a simulation (data.body(name), Python's _MjDataBodyViews): what Gymnasium's code reads of it.

[PyName("_MjDataBodyViews")]
public sealed class MjDataBody
Inheritance
MjDataBody
Inherited Members
Extension Methods

Properties

Id

The body's index (id).

[PyName("id")]
public int Id { get; }

Property Value

int

Name

The body's name (name).

[PyName("name")]
public string Name { get; }

Property Value

string

Xpos

The body frame's position in the world (xpos), shape (3,), float64: a writable view of the simulation's array, which the caller owns. It is what get_body_com returns, the frame's origin rather than the center of mass (Xipos), whatever the name says.

[PyName("xpos")]
public NDArray Xpos { get; }

Property Value

NDArray