Go to the documentation of this file. 1 #ifndef SimTK_SIMBODY_FORCE_MOBILITY_DISCRETE_FORCE_H_
2 #define SimTK_SIMBODY_FORCE_MOBILITY_DISCRETE_FORCE_H_
124 MobilityDiscreteForceImpl,
Force);
130 #endif // SimTK_SIMBODY_FORCE_MOBILITY_DISCRETE_FORCE_H_
A discrete mobility (generalized) force f applied to a particular mobility that is specified at const...
Definition: Force_MobilityDiscreteForce.h:52
This object is intended to contain all state information for a SimTK::System, except topological info...
Definition: State.h:280
MobilityDiscreteForce(GeneralForceSubsystem &forces, const MobilizedBody &mobod, MobilizerUIndex whichU, Real defaultForce=0)
Create a MobilityDiscreteForce.
#define SimTK_INSERT_DERIVED_HANDLE_DECLARATIONS(DERIVED, DERIVED_IMPL, PARENT)
Definition: PrivateImplementation.h:343
MobilityDiscreteForce & setDefaultMobilityForce(Real defaultForce)
Provide a new value for the defaultForce, overriding the one provided in the constructor.
This is a System that represents the dynamics of a particle moving along a smooth surface.
Definition: Assembler.h:37
void setMobilityForce(State &state, Real f) const
Change the value of the generalized force to be applied in the given state.
This is the base class from which all Force element handle classes derive.
Definition: Force.h:50
This is a concrete subsystem which can apply arbitrary forces to a MultibodySystem.
Definition: GeneralForceSubsystem.h:47
A MobilizedBody is Simbody's fundamental body-and-joint object used to parameterize a system's motion...
Definition: MobilizedBody.h:169
#define SimTK_SIMBODY_EXPORT
Definition: Simbody/include/simbody/internal/common.h:68
MobilityDiscreteForce()
Default constructor creates an empty handle.
Definition: Force_MobilityDiscreteForce.h:90
SimTK_Real Real
This is the default compiled-in floating point type for SimTK, either float or double.
Definition: SimTKcommon/include/SimTKcommon/internal/common.h:606
MobilityDiscreteForce(GeneralForceSubsystem &forces, const MobilizedBody &mobod, Real defaultForce=0)
Alternate constructor signature for when the mobilizer has only a single generalized speed,...
Definition: Force_MobilityDiscreteForce.h:81
Real getDefaultMobilityForce() const
Return the value that this generalized force will have by default.
Real getMobilityForce(const State &state) const
Return the value for this generalized force that is stored in the given state.