1
Fork 0

fix(testing): target direction updated to work with dim >= 2

This commit is contained in:
Robin Meersman 2026-05-05 11:49:32 +02:00
parent b244761db1
commit 3ad1ad8e39
3 changed files with 30 additions and 5 deletions

View file

@ -105,6 +105,7 @@ def create_obs_processor(
# -------- SPLIT TO SEGMENTS --------
if key in _JOINT_SCALED_KEYS:
if morph_mode == MorphMode.SEGMENT:
# TODO: remove magic constants
center_size = num_arms * 3 * 2
v_center = v[:center_size].reshape(num_arms, 3 * 2) # (arms, 6)
v_segs = v[center_size:].reshape(-1, 2) # (segs, 2)