OpenSim::ExternalLoads Class Reference
A convenience class for managing ExternaForce(s) to be applied to a model.
More...
#include <ExternalLoads.h>
List of all members.
Detailed Description
A convenience class for managing ExternaForce(s) to be applied to a model.
This includes creating instances and manipulating the data source of inividual ExternalForces so that they satsify conditions imposed by particular Tools. For example, ForwardTool, CMC/RRA, achieve better tracking (slower divergence) if the ground reaction forces are applied to a point that is expressed in the foot frame according to "ideal" kinematics. ExternalLoads provides convenience methdods to perform this "mapping" which is beyong the scope of an individual ExternalForce, but is too much detail to have each Tool implement.
An indiviudal ExternalForce has a property for its data source name, but under the management of ExternalLoads, the data source identified by ExternalLoads is used to set the data source on each ExternalForce. If multiple data sources are required for different groups of external forces then use multiple ExternalLoads.
- Authors:
- Ajay Seth, Ayman Habib
- Version:
- 1.0
Constructor & Destructor Documentation
ExternalLoads::ExternalLoads |
( |
|
) |
|
ExternalLoads::ExternalLoads |
( |
Model & |
model |
) |
|
ExternalLoads::ExternalLoads |
( |
Model & |
model, |
|
|
const std::string & |
aFileName, |
|
|
bool |
aUpdateFromXMLNode = true | |
|
) |
| | |
Construct an actuator set from file.
- Parameters:
-
| aFileName | Name of the file. |
ExternalLoads::ExternalLoads |
( |
const ExternalLoads & |
otherExternalLoads |
) |
|
Copy constructor.
- Parameters:
-
ExternalLoads::~ExternalLoads |
( |
|
) |
[virtual] |
Member Function Documentation
Object * ExternalLoads::copy |
( |
|
) |
const [virtual] |
void ExternalLoads::copyData |
( |
const ExternalLoads & |
aAbsExternalLoads |
) |
|
Copy the member variables of the ExternalLoads.
- Parameters:
-
| otherExternalLoads | actuator set to be copied |
const std::string& OpenSim::ExternalLoads::getDataFileName |
( |
|
) |
const [inline] |
const std::string& OpenSim::ExternalLoads::getExternalLoadsModelKinematicsFileName |
( |
|
) |
const [inline] |
double OpenSim::ExternalLoads::getLowpassCutoffFrequencyForLoadKinematics |
( |
|
) |
const [inline] |
const Model& OpenSim::ExternalLoads::getModel |
( |
|
) |
const [inline] |
Assignment operator.
- Returns:
- Reference to this object.
Reimplemented from OpenSim::Object.
void OpenSim::ExternalLoads::setDataFileName |
( |
const std::string & |
aNewFile |
) |
[inline] |
void OpenSim::ExternalLoads::setExternalLoadsModelKinematicsFileName |
( |
const std::string & |
aFileName |
) |
[inline] |
void OpenSim::ExternalLoads::setLowpassCutoffFrequencyForLoadKinematics |
( |
double |
aLowpassCutoffFrequency |
) |
[inline] |
void ExternalLoads::setup |
( |
Model & |
model |
) |
[virtual] |
ExternalForce * ExternalLoads::transformPointExpressedInGroundToAppliedBody |
( |
const ExternalForce & |
exForce, |
|
|
const Storage & |
kinematics, |
|
|
double |
startTime, |
|
|
double |
endTime | |
|
) |
| | |
void ExternalLoads::transformPointsExpressedInGroundToAppliedBodies |
( |
const Storage & |
kinematics, |
|
|
double |
startTime = -SimTK::Infinity , |
|
|
double |
endTime = SimTK::Infinity | |
|
) |
| | |
Re-express the position of the point of application for all ExternalForces in this collection of ExternalLoads, such that all points expressed in ground are transformed (re-expressed) in the appliedToBody of the External- Force.
The pointExpressedInBody is correspondingly updated to be the appliedToBody as well. Note: If the point is not expressed in ground to begin with, it is not re-expressed. If the ExternalForce does not specify a point of application (body force or torque) it remains untouched.
- Parameters:
-
| kinematics | Storage containing the time history of generalized coordinates for the model. Note that all generalized coordinates must be specified and in radians and Euler parameters. |
void ExternalLoads::updateFromXMLNode |
( |
|
) |
[virtual] |
Override of the default implementation to account for versioning.
Reimplemented from OpenSim::Object.
Member Data Documentation
Data source for all forces in this ExternalLoads, where individual external forces identify which subsets of the data they will acceess.
Name of the file containing the model kinematics corresponding to the external loads.
Low-pass cut-off frequency for filtering the model kinematics corresponding to the external loads.
A negative value results in no filtering. The default value is -1.0, so no filtering.
The documentation for this class was generated from the following files:
- OpenSim/Simulation/Model/ExternalLoads.h
- OpenSim/Simulation/Model/ExternalLoads.cpp