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

mj_stepSkip made available to be used when including mujoco.h #1453

Open
DMackRus opened this issue Feb 26, 2024 · 0 comments
Open

mj_stepSkip made available to be used when including mujoco.h #1453

DMackRus opened this issue Feb 26, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@DMackRus
Copy link

Hello,

Request
I would like to use the function mj_stepSkip in my code but it is not available in mujoco.h currently.

Reason
I have written my own finite-differencing code as I have a use case where I can't use mjd_transitionFD. But I want my finite-differencing code to be as fast as possible which requires this function. The reason I cant use mj_transitionFD is I am experimenting with code to dynamically change the state vector for my optimisation problems and so don't want to be computing the full A, B, C and D matrices for everything in the simulator.

Additional thought
I wonder if this would be a good feature to have in MuJoCo directly and I could implement it as a pull request if desired. I.e people who want to compute A, B, C, D matrices for a subset of their model. Particularly useful in high dimensional systems and performing manipulation in clutter.

The user could call mjd_transitionFD with an additional optional parameter perhaps. This additional parameter could be a list of elements that the user wants to consider in their state vector?

{joint1, joint2, joint4, body1_x, body1_y, body2_z, body2_yaw ... etc}

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