Simbody
|
This non-holonomic Motion object imposes a constant rate on all mobilities. More...
#include <Motion.h>
Public Member Functions | |
Steady (MobilizedBody &mobod, Real u) | |
Create a Motion::Steady where all mobilities have the same velocity. | |
template<int N> | |
Steady (MobilizedBody &mobod, const Vec< N > &u) | |
Create a Motion::Steady with different velocities for each mobility specified. | |
Steady & | setDefaultRate (Real u) |
Steady & | setOneDefaultRate (UIndex, Real u) |
template<int N> | |
Steady & | setDefaultRates (const Vec< N > &u) |
Real | getDefaultRate (UIndex=UIndex(0)) const |
void | setRate (State &, Real u) const |
void | setOneRate (State &, UIndex, Real u) const |
SimTK_INSERT_DERIVED_HANDLE_DECLARATIONS (Steady, SteadyImpl, Motion) |
This non-holonomic Motion object imposes a constant rate on all mobilities.
SimTK::Motion::Steady::Steady | ( | MobilizedBody & | mobod, |
Real | u | ||
) |
Create a Motion::Steady where all mobilities have the same velocity.
[in,out] | mobod | the MobilizedBody to which this Motion should be added |
[in] | u | the rate to be applied to all mobilities |
SimTK::Motion::Steady::Steady | ( | MobilizedBody & | mobod, |
const Vec< N > & | u | ||
) |
Create a Motion::Steady with different velocities for each mobility specified.
Any unspecified mobilities will get zero velocity.
[in,out] | mobod | the MobilizedBody to which this Motion should be added |
[in] | u | the rates to be applied to the first N mobilities; the rest are set to zero |
Steady& SimTK::Motion::Steady::setDefaultRate | ( | Real | u | ) |
void SimTK::Motion::Steady::setRate | ( | State & | , |
Real | u | ||
) | const |