RobotAgent¶
abstract class · namespace Hazel
Constructors¶
RobotAgent(float, string, string)¶
Fields¶
| Field | Description |
|---|---|
protected float[] m_ActionBuffer |
|
protected int m_ActionOffset |
|
protected int[] m_ActuatorIds |
|
protected AnimationComponent? m_AnimationComponent |
|
protected RefPoseCalibrator? m_Calibrator |
|
protected float[] m_CtrlBuffer |
|
protected int m_CtrlOffset |
|
public uint m_DatasetAnchorId |
|
protected uint m_FreeJointId |
|
public bool m_IsCalibrating |
|
protected uint[] m_JointQposAdrs |
|
protected uint[] m_JointQvelAdrs |
|
public MujocoSceneComponent m_MujocoScene |
|
public uint m_PelvisBodyId |
|
public uint m_PelvisDatasetId |
|
public RefPoseExtractor? m_RefPoseExtractor |
|
protected uint m_RobotAnchorId |
|
protected RobotManager m_RobotManager |
|
protected float[] m_StateBuffer |
|
protected int m_StateOffset |
Properties¶
ActionSize¶
CalibrationTargets¶
CommandManager¶
JointSpec¶
m_dt¶
m_ID¶
m_MotionDataset¶
m_NeedsCalibration¶
m_NumJoints¶
m_PolicyPath¶
StateSize¶
StateSpec¶
Methods¶
Action()¶
ApplyAdditionalJointOffsets(float[])¶
BindBatchBuffers(float[], int, float[], int, float[], int)¶
public void BindBatchBuffers(float[] stateBuffer, int stateOffset, float[] actionBuffer, int actionOffset, float[] ctrlBuffer, int ctrlOffset)
CacheJointHandles(List)¶
CaptureInitialPose()¶
ClearBuffers()¶
GetActuatorIndices()¶
GetAxisMapping()¶
GetDefaultJointPos()¶
GetJointNames()¶
GetJointQposAdrs()¶
GetJointQvelAdrs()¶
GetMotionAnchorPoseMj(Vector3, Quaternion)¶
Get motion anchor pose in MuJoCo space (for observation). When RefPoseExtractor is null, returns Zero/Identity.
GetMotionJointPos()¶
GetStateSpec()¶
OnAction()¶
OnReset()¶
OnSetup()¶
OnState()¶
SetCalibrationOffsets(float[])¶
SetMujocoScene(MujocoSceneComponent)¶
SetRobotManager(RobotManager)¶
Setup(RobotManager, MujocoSceneComponent, int, bool)¶
public void Setup(RobotManager robotManager, MujocoSceneComponent mujocoScene, int ID, bool isExternalBatch = false)
UpdateCalibration()¶
Source: Hazel/Learn/RobotAgent.cs