Conversation
- expand_to_q_indices/expand_to_v_indices for joint-to-qpos/dof mapping - nq, nv properties for total qpos/dof dimensions - joint_qpos_widths, joint_dof_widths tensors
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Tests verify observations and rewards correctly use expand_to_q_indices and expand_to_v_indices instead of direct joint_ids indexing. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- observations: joint_pos_rel, joint_vel_rel use expanded indices - rewards: joint_vel_l2, joint_acc_l2, joint_pos_limits, posture, electrical_power_cost - events: reset_joints_by_offset, randomize_encoder_bias, _get_entity_indices
|
…ng still needs to be fixed
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
|
@NeoZng Thanks for the review. Issue 1 (
Issue 2 ( Issue 3 ( |
|
2: one must write all 4 qpos or 3 qvel for ball joint even just want to modify one. but this isnt a big deal. maybe u should ask maintainer for more suggestions. to support ball joints, the workaround I took was to treat the ball joints separately from the 1dof joints, just like what we do to floating joints. another ugly workaround is to use a series of hinges to replace ball joint, which works fine when the moving range is not that big (no gimbal lock) |
|
Thanks for the feedback! Issue 2: Agreed. Issues 3 & 4: I am aware of these edge cases. They are robot-specific scenarios:
I would be happy to address Issues 3 & 4 as well if there is interest in supporting these scenarios more broadly. Why this PR: In my case to address This PR aims to fix that workaround by making I understand @kevinzakka - looking forward to your feedback whenever you have a chance! |
|
@kevinzakka Hi! Just following up on this PR. I have resolved the merge conflicts with main and tests are passing. This addresses #475 (ball joint support). Would appreciate a review when you get a chance. Thanks! |
Summary
expand_to_q_indicesandexpand_to_v_indicesfor ball joint indexing.Fixes #475