Skip to content

Preserve link changes combined with maxJointVelocity - #4830

Open
cyanseek wants to merge 1 commit into
bulletphysics:masterfrom
cyanseek:fix/change-dynamics-combined-velocity
Open

cyanseek wants to merge 1 commit into
bulletphysics:masterfrom
cyanseek:fix/change-dynamics-combined-velocity

Conversation

@cyanseek

@cyanseek cyanseek commented Dec 4, 2026 •

Copy link
Copy Markdown

Combining maxJointVelocity with link-specific settings in changeDynamics silently redirects those settings to the base. For example, the KUKA reproduction in #4133 ignores the requested joint limits, while two separate calls work. Combining it with mass also changes the base mass instead of the requested link's mass.

Preserve the command's link index when setting the velocity cap, and process the cap in the common multibody branch. Add regressions for combined joint limits, combined link mass, and standalone velocity-cap updates. The cap remains multibody-wide; this addresses the combined-call behavior in #4133, not its request for independent per-joint velocity limits.

Validation on current master d3afe76132fc76b0f9b2359cbaef47a3766e7fbb, Linux x86_64, CPython 3.12.3, GCC 13.3.0, native double-precision build:

  • Before the C++ change: both combined-call regressions fail; standalone velocity updates pass.
  • After the change: all 8 tests in examples/pybullet/unittests/unittests.py pass, including the 3 new regressions.
  • KUKA replay from bug in changeDynamics function for joint manipulation #4133: the combined call ends at 2.075153943633 rad before the fix and 0.999999999999982 rad after it, matching the separate-call workaround. Peak joint velocity is 1 rad/s in both runs.

The full Python test file emitted a missing display-texture warning for checker_blue.png; all physics assertions passed. The full Linux CMake/ctest matrix and macOS were not run locally.

Upstream AppVeyor Windows CI passed the build and all 7 CTest tests.

@cyanseek

cyanseek commented Dec 4, 2026 •

Copy link
Copy Markdown
Author

The AppVeyor Windows build has passed, including all 7 CTest tests. The CMake workflow is awaiting maintainer approval and has not started any jobs. Could a maintainer approve that run when available? The native Linux regression results are included in the PR description.

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.

1 participant