Simbody
|
Prescribe position, velocity, or acceleration motion as a sinusoidal function of time, m(t) = a * sin( w*t + p ). More...
#include <Motion.h>
Public Member Functions | |
Sinusoid (MobilizedBody &mobod, Motion::Level level, Real amplitude, Real rate, Real phase) | |
Create a sinusoidal prescribed motion. | |
SimTK_INSERT_DERIVED_HANDLE_DECLARATIONS (Sinusoid, SinusoidImpl, Motion) |
Prescribe position, velocity, or acceleration motion as a sinusoidal function of time, m(t) = a * sin( w*t + p ).
SimTK::Motion::Sinusoid::Sinusoid | ( | MobilizedBody & | mobod, |
Motion::Level | level, | ||
Real | amplitude, | ||
Real | rate, | ||
Real | phase | ||
) |
Create a sinusoidal prescribed motion.
[in,out] | mobod | The MobilizedBody to which this Motion should be added. |
[in] | level | The Motion level that is being prescribed: Motion::Position, Motion::Velocity, or Motion::Acceleration. |
[in] | amplitude | Scaling factor mapping the -1..1 sin() result to your desired units; output values will range between -amplitude and +amplitude. |
[in] | rate | Angular rate in radians/unit time; e.g. if time is in seconds then rate=2*Pi would be 1 Hz (1 rotation per second). |
[in] | phase | Phase angle in radians. |
SimTK::Motion::Sinusoid::SimTK_INSERT_DERIVED_HANDLE_DECLARATIONS | ( | Sinusoid | , |
SinusoidImpl | , | ||
Motion | |||
) |