RobotLocomotion / drake

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

Promote Parameters from LeafContext to Context #5072

Closed david-german-tri closed 7 years ago

david-german-tri commented 7 years ago

Contrary to my original belief, there are a few reasons we might want to reason about Parameters independent of a particular LeafSystem's semantics. One of these is to measure symbolic sparsity.

I vaguely recall that @jadecastro had some other reasons.

jadecastro commented 7 years ago

Yeah, it fits well in the realm of parameter-varying systems, where the parameters for a given system are allowed to evolve according to some external process. A simple example of this is linearization of some nonlinear system (where the equilibria can vary with time and are not described by the linearized dynamics).

RussTedrake commented 7 years ago

Parameter estimation seems like another clear example. There are generic tools for this (e.g. take the gradient of the dynamics with respect to the parameters, and update in that direction) that need not understand LeafSystem semantics to be used.