Skip to content

AgentBatch

class · namespace Hazel

public class AgentBatch

Constructors

AgentBatch(string, string)

public AgentBatch(string policyName, string policyPath)

Fields

Field Description
public float[] ActionBuffer
public int[] ActuatorBuffer
public float[] CtrlBuffer
public float[] DefaultJointPosBuffer
public List<RobotAgent> m_Agents
public float[] StateBuffer

Properties

Entity

public Entity Entity { get; }

Methods

CollectState(RobotManager)

public void CollectState(RobotManager robotManager)

GetActions(RobotManager)

public void GetActions(RobotManager robotManager)

Reset(RobotManager, IReadOnlyList?)

public void Reset(RobotManager robotManager, IReadOnlyList<int>? agentIndices = null)

Setup(RobotManager, MujocoSceneComponent, float)

public void Setup(RobotManager robotManager, MujocoSceneComponent mujocoScene, float dt)

UpdateCommands(RobotManager)

public void UpdateCommands(RobotManager robotManager)

Source: Hazel/Learn/AgentBatch.cs