#include <Constraint.h>
You provide a Function which takes the current time as its argument and returns the required value of the generalized coordinate. It also must support derivatives up to second order.
Public Member Functions | |
PrescribedMotion (SimbodyMatterSubsystem &matter, const Function< 1 > *function, MobilizedBodyIndex coordBody, MobilizerQIndex coordIndex) | |
Create a PrescribedMotion constraint. |
PrescribedMotion | ( | SimbodyMatterSubsystem & | matter, | |
const Function< 1 > * | function, | |||
MobilizedBodyIndex | coordBody, | |||
MobilizerQIndex | coordIndex | |||
) |
Create a PrescribedMotion constraint.
You specify a Function that takes time as its single argument, and returns the required value for the constrained coordinate.
matter | the matter subsystem this constraint will be added to | |
function | the Function which specifies the value of the constrained coordinate. The constraint takes over ownership of this object, and automatically deletes it when the constraint is deleted. | |
coordBody | the MobilizedBody corresponding to the generalized coordinate which will be constrained | |
coordIndex | the index of the generalized coordinate which will be constrained |