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

Question: Why spline_mapping is used to update paramerter? #363

Open
ppap36 opened this issue Nov 29, 2024 · 0 comments
Open

Question: Why spline_mapping is used to update paramerter? #363

ppap36 opened this issue Nov 29, 2024 · 0 comments

Comments

@ppap36
Copy link

ppap36 commented Nov 29, 2024

Hello! I am a master student studying mjpc.
When I was studying https://github.com/google-deepmind/mujoco_mpc/tree/main/mjpc/planners/gradient algorithnm,
I was looking at these codes:
https://github.com/google-deepmind/mujoco_mpc/blob/9bd2037498056a0ab9cf9463ab841e40fef54142/mjpc/planners/gradient/planner.cc

    // compute spline mapping linear operator
    mappings[policy.representation]->Compute(
        candidate_policy[0].times, candidate_policy[0].num_spline_points,
        trajectory[0].times.data(), trajectory[0].horizon - 1);

    // compute total derivatives
    mju_mulMatTVec(candidate_policy[0].parameter_update.data(),
                   mappings[policy.representation]->Get(),
                   candidate_policy[0].k.data(),
                   model->nu * (trajectory[0].horizon - 1),
                   model->nu * candidate_policy[0].num_spline_points);

From my point of view, I assume k and parameter_update are the same thing, and i don't know why mappings are used.

Can someone have an idea? Thanks a lot!

@ppap36 ppap36 changed the title Question: Why spline_mapping is uesd to update paramerter? Question: Why spline_mapping is used to update paramerter? Nov 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant