MdpContext¶
class · namespace Hazel
Immutable context passed to MDP component Compute/Evaluate methods. Provides access to the MuJoCo scene, agent state, and per-step timing without exposing mutable engine internals. Analogous to TimeManager's StepContext: immutable during callback execution, no dynamic allocation, all data available by reference.
Constructors¶
MdpContext(MujocoSceneComponent, RobotAgent, CommandManager, float, int, float, float[], float[])¶
public MdpContext(MujocoSceneComponent mujocoScene, RobotAgent agent, CommandManager commands, float dt, int stepCount, float maxEpisodeLengthS, float[] previousActions, float[] currentActions)
Properties¶
Agent¶
Commands¶
CurrentActions¶
Dt¶
MaxEpisodeLengthS¶
MujocoScene¶
PreviousActions¶
StepCount¶
Source: Hazel/Learn/MdpComponent.cs