Simbody
Public Member Functions

SimTK::Motion::Sinusoid Class Reference

Prescribe position, velocity, or acceleration motion as a sinusoidal function of time, m(t) = a * sin( w*t + p ). More...

#include <Motion.h>

Inheritance diagram for SimTK::Motion::Sinusoid:

List of all members.

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)

Detailed Description

Prescribe position, velocity, or acceleration motion as a sinusoidal function of time, m(t) = a * sin( w*t + p ).


Constructor & Destructor Documentation

SimTK::Motion::Sinusoid::Sinusoid ( MobilizedBody mobod,
Motion::Level  level,
Real  amplitude,
Real  rate,
Real  phase 
)

Create a sinusoidal prescribed motion.

Parameters:
[in,out]mobodThe MobilizedBody to which this Motion should be added.
[in]levelThe Motion level that is being prescribed: Motion::Position, Motion::Velocity, or Motion::Acceleration.
[in]amplitudeScaling factor mapping the -1..1 sin() result to your desired units; output values will range between -amplitude and +amplitude.
[in]rateAngular 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]phasePhase angle in radians.

Member Function Documentation

SimTK::Motion::Sinusoid::SimTK_INSERT_DERIVED_HANDLE_DECLARATIONS ( Sinusoid  ,
SinusoidImpl  ,
Motion   
)

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines