Public Member Functions |
virtual | ~RRATool () |
| Destructor.
|
| RRATool () |
| Default constructor.
|
| RRATool (const std::string &aFileName, bool aLoadModel=true) SWIG_DECLARE_EXCEPTION |
| RRATool (const RRATool &aObject) |
| Copy constructor.
|
virtual Object * | copy () const |
| Virtual copy constructor.
|
RRATool & | operator= (const RRATool &aRRATool) |
| Assignment operator.
|
const std::string & | getDesiredPointsFileName () |
void | setDesiredPointsFileName (const std::string &aFileName) |
const std::string & | getDesiredKinematicsFileName () |
void | setDesiredKinematicsFileName (const std::string &aFileName) |
const std::string & | getConstraintsFileName () |
void | setConstraintsFileName (const std::string &aFileName) |
const std::string & | getTaskSetFileName () |
void | setTaskSetFileName (const std::string &aFileName) |
const std::string & | getRRAControlsFileName () |
void | setRRAControlsFileName (const std::string &aFileName) |
const std::string & | getOutputModelFileName () |
void | setOutputModelFileName (const std::string &aFileName) |
bool | getAdjustCOMToReduceResiduals () |
void | setAdjustCOMToReduceResiduals (bool aAdjust) |
const std::string & | getAdjustedCOMBody () |
void | setAdjustedCOMBody (const std::string &aBody) |
double | getLowpassCutoffFrequency () const |
void | setLowpassCutoffFrequency (double aLowpassCutoffFrequency) |
const std::string & | getExternalLoadsFileName () const |
void | setExternalLoadsFileName (const std::string &aFileName) |
virtual bool | run () SWIG_DECLARE_EXCEPTION |
| Run the investigation.
|
Storage & | getForceStorage () |
| Get a pointer to the Storage object holding forces.
|
void | setOriginalForceSet (const ForceSet &aForceSet) |
virtual void | updateFromXMLNode () |
| Override default implementation by object to intercept and fix the XML node underneath the tool to match current version, issue warning for unexpected inputs.
|
ControlSet * | constructRRAControlSet (ControlSet *aControlConstraints) |
| Create a set of control constraints based on an RRA solution.
|
void | initializeControlSetUsingConstraints (const ControlSet *aRRAControlSet, const ControlSet *aControlConstraints, ControlSet &rControlSet) |
| Set controls to use steps except for the residuals, which use linear interpolation.
|
void | adjustCOMToReduceResiduals (SimTK::State &s, const Storage &qStore, const Storage &uStore) |
void | adjustCOMToReduceResiduals (const OpenSim::Array< double > &aFAve, const OpenSim::Array< double > &aMAve) |
| Adjust the center of mass to reduce any DC offsets in MX and MZ.
|
void | addNecessaryAnalyses () |
| Add Actuation/Kinematics analyses if necessary.
|
void | writeAdjustedModel () |
Static Public Member Functions |
static void | computeAverageResiduals (const Storage &aForceStore, OpenSim::Array< double > &rFAve, OpenSim::Array< double > &rMAve) |
| Compute the average residuals.
|
static void | computeAverageResiduals (SimTK::State &s, Model &aModel, double aTi, double aTf, const Storage &aStatesStore, OpenSim::Array< double > &rFAve, OpenSim::Array< double > &rMAve) |
An abstract class for specifying the interface for an investigation.
RRATool::RRATool |
( |
const RRATool & |
aTool |
) |
|
Copy constructor.
Copy constructors for all Tools do not copy the Object's DOMnode and XMLDocument. The reason for this is that for the object and all its derived classes to establish the correct connection to the XML document nodes, the the object would need to reconstruct based on the XML document not the values of the object's member variables.
There are three proper ways to generate an XML document for a Tool:
1) Construction based on XML file (
- See also:
- Tool(const char *aFileName)). In this case, the XML document is created by parsing the XML file.
2) Construction by Tool(const XMLDocument *aDocument). This constructor explictly requests construction based on an XML document that is held in memory. In this way the proper connection between an object's node and the corresponding node within the XML document is established. This constructor is a copy constructor of sorts because all essential Tool member variables should be held within the XML document. The advantage of this style of construction is that nodes within the XML document, such as comments that may not have any associated Tool member variable, are preserved.
3) A call to generateXMLDocument(). This method generates an XML document for the Tool from scratch. Only the essential document nodes are created (that is, nodes that correspond directly to member variables.).
- Parameters:
-
- See also:
- Tool(const XMLDocument *aDocument)
-
Tool(const char *aFileName)
-
generateXMLDocument()
Storage & RRATool::getForceStorage |
( |
|
) |
|
Get a pointer to the Storage object holding forces.
This's a utility routine used by the SimTrack GUI primarily to get access to residuals while running RRA.
User-beware, the storage will get out of scope and potentially get deleted when the analysis is done, so no assumptions about the lifetime of the returned storage object outside the owning analysis should be made.