Skip to content

UMjBallAngVelSensor

Specific BallAngVel Sensor component.

Attribute Value
Kind Class
UE Macro UCLASS
Inherits UMjSensor
Blueprint Spawnable ✅ Yes

Properties

Public Properties

Property Type Description
nsample int32
interp int32
delay float
cutoff float
noise float
Type EMjSensorType The type of sensor (Touch, Accelerometer, JointPos, etc.).
TargetName FString Name of the object this sensor is attached to or referencing (e.g. site name, joint name).
ReferenceName FString Optional: Referenced object name (e.g. for reftype/refname pairs in MuJoCo).
Dim int Dimension of the sensor output.
UserAdr int32 Output address override for user sensors (mjsSensor::adr). -1 = let MuJoCo assign.
MjClassName FString Optional MuJoCo class name to inherit defaults from (string fallback).
DefaultClass UMjDefault* Reference to a UMjDefault component for default class inheritance.
ObjType EMjObjType Type of object this sensor is attached to (e.g. Site, Joint, Body).
RefType EMjObjType Type of reference object (e.g. Camera for camprojection, Body/Geom for distance).
IntParams TArray<int32> Integer parameters for sensor configuration (e.g. rangefinder flags, contact flags). Maps to sensor->intprm.
UserParams TArray<double> User data for custom sensors. Maps to sensor->userdata.
m_SensorView SensorView The runtime view of the MuJoCo sensor.

nsample

Override-enabled (bOverride_nsample)

  • Type: int32
  • Editor: ✏️ EditAnywhere
  • Blueprint: 🔵 ReadWrite
  • Category: MuJoCo|MjSensor

interp

Override-enabled (bOverride_interp)

  • Type: int32
  • Editor: ✏️ EditAnywhere
  • Blueprint: 🔵 ReadWrite
  • Category: MuJoCo|MjSensor

delay

Override-enabled (bOverride_delay)

  • Type: float
  • Editor: ✏️ EditAnywhere
  • Blueprint: 🔵 ReadWrite
  • Category: MuJoCo|MjSensor

cutoff

Override-enabled (bOverride_cutoff)

  • Type: float
  • Editor: ✏️ EditAnywhere
  • Blueprint: 🔵 ReadWrite
  • Category: MuJoCo|MjSensor

noise

Override-enabled (bOverride_noise)

  • Type: float
  • Editor: ✏️ EditAnywhere
  • Blueprint: 🔵 ReadWrite
  • Category: MuJoCo|MjSensor

Type

The type of sensor (Touch, Accelerometer, JointPos, etc.).

  • Type: EMjSensorType
  • Editor: ✏️ EditAnywhere
  • Blueprint: 🔵 ReadWrite
  • Category: MuJoCo|Sensor

TargetName

Name of the object this sensor is attached to or referencing (e.g. site name, joint name).

  • Type: FString
  • Editor: ✏️ EditAnywhere
  • Blueprint: 🔵 ReadWrite
  • Category: MuJoCo|Sensor

ReferenceName

Optional: Referenced object name (e.g. for reftype/refname pairs in MuJoCo).

  • Type: FString
  • Editor: ✏️ EditAnywhere
  • Blueprint: 🔵 ReadWrite
  • Category: MuJoCo|Sensor

Dim

Dimension of the sensor output.

  • Type: int
  • Editor: ✏️ EditAnywhere
  • Blueprint: 🔵 ReadWrite
  • Category: MuJoCo|Sensor

UserAdr

Output address override for user sensors (mjsSensor::adr). -1 = let MuJoCo assign.

  • Type: int32
  • Editor: ✏️ EditAnywhere
  • Blueprint: 🔵 ReadWrite
  • Category: MuJoCo|Sensor

MjClassName

Optional MuJoCo class name to inherit defaults from (string fallback).

  • Type: FString
  • Editor: ✏️ EditAnywhere
  • Blueprint: 🔵 ReadWrite
  • Category: MuJoCo|Sensor

DefaultClass

Reference to a UMjDefault component for default class inheritance.

  • Type: UMjDefault*
  • Editor: ✏️ EditAnywhere
  • Blueprint: 🔵 ReadWrite
  • Category: MuJoCo|Sensor

ObjType

Type of object this sensor is attached to (e.g. Site, Joint, Body).

  • Type: EMjObjType
  • Editor: ✏️ EditAnywhere
  • Blueprint: 🔵 ReadWrite
  • Category: MuJoCo|Sensor

RefType

Type of reference object (e.g. Camera for camprojection, Body/Geom for distance).

  • Type: EMjObjType
  • Editor: ✏️ EditAnywhere
  • Blueprint: 🔵 ReadWrite
  • Category: MuJoCo|Sensor

IntParams

Integer parameters for sensor configuration (e.g. rangefinder flags, contact flags). Maps to sensor->intprm.

  • Type: TArray
  • Editor: ✏️ EditAnywhere
  • Blueprint: 🔵 ReadWrite
  • Category: MuJoCo|Sensor

UserParams

User data for custom sensors. Maps to sensor->userdata.

  • Type: TArray
  • Editor: ✏️ EditAnywhere
  • Blueprint: 🔵 ReadWrite
  • Category: MuJoCo|Sensor

m_SensorView

The runtime view of the MuJoCo sensor.

Functions

Public Functions

General

Function Returns Description
ImportFromXml() void Imports properties and override flags directly from the raw XML node.
RegisterToSpec() void Registers this sensor to the MuJoCo spec.
GetMjName() FString Gets the full prefixed name of this sensor as it appears in the compiled MuJoCo model.
GetMj() SensorView& Semantic accessor for raw MuJoCo data and helper methods.
ImportFromXml

Imports properties and override flags directly from the raw XML node.

  • Signature: ImportFromXml(const class FXmlNode* Node, const struct FMjCompilerSettings& CompilerSettings)
RegisterToSpec

Registers this sensor to the MuJoCo spec.

GetMjName

Gets the full prefixed name of this sensor as it appears in the compiled MuJoCo model.

  • Signature: GetMjName()
  • Returns: FString
GetMj

Semantic accessor for raw MuJoCo data and helper methods.

MuJoCo|Runtime

Function Returns Description
GetReading() TArray<float> Gets the full array reading.
GetScalarReading() float Gets the first scalar reading (index 0).
GetDimension() int Gets the sensor output dimension (number of values in GetReading()).
GetReading

Gets the full array reading.

  • Signature: GetReading()
  • Blueprint: 🔵 Callable
  • Returns: TArray
GetScalarReading

Gets the first scalar reading (index 0).

  • Signature: GetScalarReading()
  • Blueprint: 🔵 Callable
  • Returns: float
GetDimension

Gets the sensor output dimension (number of values in GetReading()).

  • Signature: GetDimension()
  • Blueprint: 🔵 Callable
  • Returns: int