Closed dschlee closed 1 year ago
Here's a slightly long answer to a short question:
The rimless wheel dynamics are derived by hand (as opposed to using Drake's more general physics engine in MultibodyPlant). they are in c++. you can find them here. Depending on your comfort with c++ / building Drake from source, that unfortunately makes them a little harder for you to change.
It's definitely possible to reconstruct them in python. See the SLIP model notebook for a similar python example.
Porting the rimless wheel dynamics to python and adding the ankle torque to the dynamics is probably the best way. (by the way -- I do think you mean constant torque, rather than constant angular velocity... otherwise you will have canceled the dynamics and the phase portrait is trivial?).
Yeah, I meant constant torque, sorry for the mix-up. And thank you very much for the explanation!
I have a question regarding the code block that creates the phase portrait for the rimless wheel:
Is there a way to change the function in such a way that constant angular velocity is applied to the wheel during the entire simulation? I would like to compare phase plots of the passive dynamics of the wheel on the slope vs forced angular velocity on a flat ground.