Simbody
3.4 (development)
|
This is a Constraint that uses a Function to prescribe the behavior of a single generalized coordinate as a function of time. More...
#include <Constraint.h>
Public Member Functions | |
PrescribedMotion (SimbodyMatterSubsystem &matter, const Function *function, MobilizedBodyIndex coordBody, MobilizerQIndex coordIndex) | |
Create a PrescribedMotion constraint. | |
PrescribedMotion () | |
Default constructor creates an empty handle. |
This is a Constraint that uses a Function to prescribe the behavior of a single generalized coordinate as a function of time.
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.
SimTK::Constraint::PrescribedMotion::PrescribedMotion | ( | SimbodyMatterSubsystem & | matter, |
const Function * | 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 to which this constraint will be added. |
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. |
Default constructor creates an empty handle.