UMjNetworkManager¶
Manages network-related functionality: ZMQ component discovery and camera streaming.
| Attribute | Value |
|---|---|
| Kind | Class |
| UE Macro | UCLASS |
| Inherits | UActorComponent |
| Blueprint Spawnable | ✅ Yes |
Properties¶
Public Properties¶
| Property | Type | Description |
|---|---|---|
ZmqComponents |
TArray<UMjZmqComponent*> | List of ZMQ components discovered on the owner actor. |
bEnableAllCameras |
bool |
If true, forces all UMjCameras to enable ZMQ broadcasting. |
ZmqComponents¶
List of ZMQ components discovered on the owner actor.
- Type: TArray<UMjZmqComponent*>
- Editor: 👁 VisibleAnywhere
- Blueprint: 🟢 ReadOnly
- Category: MuJoCo|Network
bEnableAllCameras¶
If true, forces all UMjCameras to enable ZMQ broadcasting.
- Type: bool
- Editor: ✏️ EditAnywhere
- Blueprint: 🔵 ReadWrite
- Category: MuJoCo|Network
Functions¶
Public Functions¶
General¶
| Function | Returns | Description |
|---|---|---|
UpdateCameraStreamingState() |
void | Updates the camera streaming state for all cameras according to bEnableAllCameras. |
RegisterCamera() |
void | Thread-safe camera registration. |
UnregisterCamera() |
void | Thread-safe camera unregistration. |
GetActiveCameras() |
TArray<UMjCamera*> | Thread-safe access to active cameras. |
DiscoverZmqComponents() |
void | Discovers ZMQ components attached to the owner actor. |
UpdateCameraStreamingState¶
Updates the camera streaming state for all cameras according to bEnableAllCameras.
- Signature:
UpdateCameraStreamingState()
GetActiveCameras¶
Thread-safe access to active cameras.
- Signature:
GetActiveCameras() - Returns: TArray<UMjCamera*>
DiscoverZmqComponents¶
Discovers ZMQ components attached to the owner actor.
- Signature:
DiscoverZmqComponents()