groot / code /hb_groot /h2_body31_hand44_h32.py
BIue-Jay's picture
Update README and adapter code
c425b36 verified
Raw History Blame Contribute Delete
1.46 kB
"""2026-11-15 user: action horizon 32 copy of h2_body31_hand44_h16.py. A18 H2 (Sharpa hands) GR00T modality config, same protocol as the A18 Delta-flow run
(schema a18-h2-sharpa-body31-hand44-state78-chunk16-v1): cameras head+chest, state = 75 joints + projected
gravity, action = action.body_target (31) + action.hands (44), horizon 16, absolute targets."""
from gr00t.configs.data.embodiment_configs import register_modality_config
from gr00t.data.embodiment_tags import EmbodimentTag
from gr00t.data.types import ActionConfig, ActionFormat, ActionRepresentation, ActionType, ModalityConfig
h2_body31_hand44_h32 = {
"video": ModalityConfig(delta_indices=[0], modality_keys=["head", "chest"]),
"state": ModalityConfig(
delta_indices=[0],
modality_keys=["left_leg", "right_leg", "waist", "left_arm", "right_arm", "head", "left_hand", "right_hand",
"projected_gravity"],
),
"action": ModalityConfig(
delta_indices=list(range(32)),
modality_keys=["body_target", "left_hand_target", "right_hand_target"],
action_configs=[ActionConfig(rep=ActionRepresentation.ABSOLUTE, type=ActionType.NON_EEF,
format=ActionFormat.DEFAULT) for _ in range(3)],
),
"language": ModalityConfig(delta_indices=[0], modality_keys=["annotation.human.task_description"]),
}
register_modality_config(h2_body31_hand44_h32, embodiment_tag=EmbodimentTag.NEW_EMBODIMENT)