You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After updating from Drake 1.35.0 to 1.36.0, I encounter a run-time error when using the DirectCollocation optimization that says:
RuntimeError: Exception while evaluating SNOPT costs and constraints: 'GetPropertyOrDefault(): The property ('material', 'hunt_crossley_dissipation') exists, but is of a different type. Requested 'drake::AutoDiffXd', but found 'double''
and
RuntimeError: Exception while evaluating SNOPT costs and constraints: 'GetPropertyOrDefault(): The property ('material', 'point_contact_stiffness') exists, but is of a different type. Requested 'drake::AutoDiffXd', but found 'double''
It appears that this might be caused to the changes in default values in the scene graph configuration added by this PR. If I reset the values to hunt_crossley_dissipation=None and point_contact_stiffness=None (their values in Drake 1.35.0), then my DirectCollocation optimization runs correctly again.
Is the issue that the DirectCollocation class is not properly casting these scene graph configuration values from double to AutoDiffXd, or is there just a fundamental conceptual problem using these two values in the optimization?
Version
1.36.0
What operating system are you using?
Ubuntu 22.04
What installation option are you using?
pip install drake
Relevant log output
No response
The text was updated successfully, but these errors were encountered:
I think the problem is MultibodyPlant accessing the values using the wrong type annotation. The properties should be accessed using double (not T) or could be omitted and double would be correctly inferred:
What happened?
After updating from Drake 1.35.0 to 1.36.0, I encounter a run-time error when using the
DirectCollocation
optimization that says:and
It appears that this might be caused to the changes in default values in the scene graph configuration added by this PR. If I reset the values to
hunt_crossley_dissipation=None
andpoint_contact_stiffness=None
(their values in Drake 1.35.0), then myDirectCollocation
optimization runs correctly again.Is the issue that the
DirectCollocation
class is not properly casting these scene graph configuration values fromdouble
toAutoDiffXd
, or is there just a fundamental conceptual problem using these two values in the optimization?Version
1.36.0
What operating system are you using?
Ubuntu 22.04
What installation option are you using?
pip install drake
Relevant log output
No response
The text was updated successfully, but these errors were encountered: