drake icon indicating copy to clipboard operation
drake copied to clipboard

Add ResolveConstraints logic to JointSliders (=> ModelVisualizer)

Open RussTedrake opened this issue 9 months ago • 6 comments

Updates JointSliders to have discrete state (previously it was stateless). Additionally, if the new ResolveConstraints logic is active, we publish the (rounded) resolved constraints back to Meshcat, so that the other sliders are updated.

Since ModelVisualizer uses JointSliders, now ModelVisualizer also satisfies the multibody constraints.

Resolves https://github.com/RobotLocomotion/drake/issues/18917.

Deprecates JointSliders::SetPositions(q), which has been replaced with JointSliders::SetPositions(context, q).

https://github.com/user-attachments/assets/3abb096e-d4ef-48fb-8976-b5729beb7f9e


This change is Reviewable

RussTedrake avatar Jan 19 '25 20:01 RussTedrake