Simbody  3.4 (development)
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 applied at position, velocity, or acceleration level.
 Sinusoid ()
 Default constructor creates an empty handle that can be assigned to reference any Motion::Sinusoid object.

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 applied at position, velocity, or acceleration level.

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.

Default constructor creates an empty handle that can be assigned to reference any Motion::Sinusoid object.


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