make_constraint: traverse dof tree when constructing contact constraints and is sparse #929
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
this pr is part of the effort to implement sparse Jacobians #88
when
is_sparse==True, instead of iterating over all dofs to construction contact constraints, traverse dof tree for each contact bodiesmujoco reference: https://github.com/google-deepmind/mujoco/blob/08b4b4144d70c69206f96cf329d5044ae686a1e6/src/engine/engine_core_util.c#L55
humanoid
performance for dense should be unchanged
this pr:
main (bb81495):
performance for sparse should be improved
this pr:
main (bb81495):
notes:
efc.Jis represented in a sparse format and it is not necessary to zero memory on each call tomake_constraintcontact_pyramidalandcontact_ellipticwith awp.funcintroduced overhead? as a result, to maintain performance for now there is duplicated code in dense and sparse cases.todo