-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ModelVisualizer throws when a model has implicit PD gains #22444
Comments
|
It's not a problem with lagged. It's a problem with the disconnected input port during visualization. |
yes, I know, I just thought it'd be very strange (an additional problem/bug) if removing that line changed things. |
I imagine that no matter where the model visualizer is grabbing its defaults in Russ's example, we'd still like to update the requirement to be connected for the desired state input ports.
If you agree, I can work on this. Also, fyi, I just realized our docs are not correct. We document actuation inputs to be required when there are no PD controllers. That's not true. I'll also update those docs in the same PR. |
This sounds like the right solution to me. Thank you. Should we reassign the issue to you? nit: "ignored/not added to the model" might be a little confusing. I believe the behavior will be that if I build the model with PD gains and run with the desired state disconnected, then the internal PD has no effect. However, if I were to then connect the port and step, it would take effect. So it was added to the model, but was effectively deactivated? |
"deactivated" is good. Another option would be "the controller is disarmed when no input is connected". |
What happened?
It should be easy to construct a more minimal example, but in the spirit of not losing my in-hand reproduction, I ran:
which failed with
RuntimeError: Desired state input port for model instance aloha_scene not connected.
I'm not sure which component
ModelVisualizer
lands in today. I've tagged @rpoyner-tri for parsing, but please delegate as needed.My inclination is that the right solution might be to make the desired state input port of the plant support being disconnected.
Version
No response
What operating system are you using?
Ubuntu 22.04
What installation option are you using?
pip install drake
Relevant log output
The text was updated successfully, but these errors were encountered: