Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add data.joint(k).dof_index and data.joint(k).qpos_index #2345

Open
vikashplus opened this issue Jan 9, 2025 · 0 comments
Open

Add data.joint(k).dof_index and data.joint(k).qpos_index #2345

vikashplus opened this issue Jan 9, 2025 · 0 comments
Labels
enhancement New feature or request

Comments

@vikashplus
Copy link

The feature, motivation and pitch

Significant quality-of-life improvement if all indices are returned for usecases involving

  • subsampling large datasets with joint subsets
  • resampling batches with joint subsets
  • building submatrices and subvectors of inertia, pos error, etc, for e.g. stable PD control (cc @Balint-H)
  • Optimizing for a trajectory with a subset of joints, systemID, etc. (cc @Balint-H)

Something similar already happens for

  • data.joint("my_ball_joint").qpos gives 4 numbers.
  • data.joint("my_ball_joint").qvel will give 3

Alternatives

There exist alternatives where one can check the type of joints and calculate the required indices.

Additional context

No response

@vikashplus vikashplus added the enhancement New feature or request label Jan 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant