Skip to content

Fix attached tendon wrap model pointers - #3406

Merged
copybara-service[bot] merged 1 commit into
google-deepmind:mainfrom
devshahofficial:agent/pr3157-attach-mjcwrap
Jul 20, 2026
Merged

Fix attached tendon wrap model pointers#3406
copybara-service[bot] merged 1 commit into
google-deepmind:mainfrom
devshahofficial:agent/pr3157-attach-mjcwrap

Conversation

@devshahofficial

Copy link
Copy Markdown
Contributor

Draft follow-up for #3157 / #3152, based on the original fix from @mar-yan24.

This keeps the change narrow:

  • propagates the parent model pointer to tendon wraps during mjCTendon::CopyFromSpec()
  • extends the attach spatial-tendon test so attached wrap targets and sidesites are resolved before compile

Local validation:

  • git diff --check
  • cmake -S . -B /tmp/mujoco-pr3157-build -DMUJOCO_BUILD_TESTS=ON -DMUJOCO_TEST_PYTHON_UTIL=OFF -DCMAKE_BUILD_TYPE=Release
  • cmake --build /tmp/mujoco-pr3157-build --target user_api_test -j2
  • /tmp/mujoco-pr3157-build/bin/user_api_test --gtest_filter='MujocoTest.AttachSpatialTendonWithoutSidesite'

Opening as draft to avoid superseding the existing approved PR unless maintainers prefer this rebased/test-extended version.

@yuvaltassa
yuvaltassa requested a review from quagla July 19, 2026 23:10
@quagla
quagla marked this pull request as ready for review July 20, 2026 07:43
@copybara-service
copybara-service Bot merged commit 5ea4c3a into google-deepmind:main Jul 20, 2026
20 of 21 checks passed
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

Successfully merging this pull request may close these issues.

2 participants