RobotLocomotion / drake

Model-based design and verification for robotics.
https://drake.mit.edu
Other
3.35k stars 1.27k forks source link

Allow updating multibody constraints in the context with new specs values after Finalize() #22007

Open chen-tianjian opened 1 month ago

chen-tianjian commented 1 month ago

Is your feature request related to a problem? Please describe. We are attempting to model an item in a soft bag as a runtime-mutable pendulum, and we wish to leverage the multibody distance constraints. However, currently Drake does not allow updating the constraints specs after Finalize().

Describe the solution you'd like Allow updating multibody constraints in the context with new specs values. Currently we only care about updating distance, but we are glad to see other specs becoming mutable too.

Describe alternatives you've considered We can also use bushing for this purpose, but constraints are better for numerics with large timesteps.

Additional context The slack discussion is here

sherm1 commented 1 month ago

Assigned to @amcastro-tri for disposition.