unilab.tasks.manipulation.allegro_inhand.grasp_gen¶
Manager-Based terms and registry owner for Allegro grasp generation.
Classes
Expose one cached quality condition through the community MetricsManager. |
|
Reject timeouts that are not stable multi-finger grasps. |
|
Collect successful timeout states and persist the canonical 23-D cache. |
- class unilab.tasks.manipulation.allegro_inhand.grasp_gen.AllegroGraspQualityMetric[source]¶
Bases:
ManagerTermBaseExpose one cached quality condition through the community MetricsManager.
- Parameters:
cfg (
ManagerTermBaseCfg)env (
_GraspEnv)
- class unilab.tasks.manipulation.allegro_inhand.grasp_gen.AllegroGraspQualityTermination[source]¶
Bases:
ManagerTermBaseReject timeouts that are not stable multi-finger grasps.
- Parameters:
cfg (
ManagerTermBaseCfg)env (
_GraspEnv)
- class unilab.tasks.manipulation.allegro_inhand.grasp_gen.AllegroGraspRecorder[source]¶
Bases:
RecorderTermCollect successful timeout states and persist the canonical 23-D cache.
- Parameters:
cfg (
RecorderTermCfg)env (
_GraspEnv)
- record_pre_reset(env_ids)[source]¶
Called in
env.step()before terminated environments are reset.What is available:
obs_bufcontains the observation from the end of the previous step (the input the agent used to choose the terminal action). It does not contain the post-action terminal observation (the state reached after applying the action), which is never computed for resetting environments.action_manager.actioncontains the action applied during this step. This is the correct terminal action. It will be zeroed for these environments by_reset_idximmediately after this hook returns, so capture it here if you need it later.reward_bufcontains the reward for this terminal step.reset_terminatedandreset_time_outsreflect why each environment is resetting.
This is the right hook to record the terminal transition
(obs_t, action_t, reward_t, done=True)for each resetting environment.