Description
Extension of FmuUnit class for Chrono FMUs.
#include <ChFmuToolsImport.h>
Inherits FmuUnit.
Public Member Functions | |
fmi3Status | GetVecVariable (const std::string &name, ChVector3d &v) |
Load the given ChVector3d from the FMU variable with the specified name. | |
fmi3Status | SetVecVariable (const std::string &name, const ChVector3d &v) |
Set the FMU variable with specified name to the values of the given ChVector3d. | |
fmi3Status | GetQuatVariable (const std::string &name, ChQuaternion<> &q) |
Load the given ChQuaternion from the FMU variable with the specified name. | |
fmi3Status | SetQuatVariable (const std::string &name, const ChQuaternion<> &q) |
Set the FMU variable with specified name to the values of the given ChQuaternion. | |
fmi3Status | GetCoordsysVariable (const std::string &name, ChCoordsysd &csys) |
Load the given ChCoordsys from the FMU variable with the specified name. | |
fmi3Status | SetCoordsysVariable (const std::string &name, const ChCoordsysd &csys) |
Set the FMU variable with specified name to the values of the given ChQuaternion. | |
fmi3Status | GetFrameVariable (const std::string &name, ChFrame<> &frame) |
Load the given ChFrame from the FMU variable with the specified name. | |
fmi3Status | SetFrameVariable (const std::string &name, const ChFrame<> &frame) |
Set the FMU variable with specified name to the values of the given ChFrame. More... | |
fmi3Status | GetFrameMovingVariable (const std::string &name, ChFrameMoving<> &frame) |
Load the given ChFrameMoving from FMU variables with the specified name. | |
fmi3Status | SetFrameMovingVariable (const std::string &name, const ChFrameMoving<> &frame) |
Set the FMU variable with specified name to the values of the given ChgFrameMoving. More... | |
Member Function Documentation
◆ SetFrameMovingVariable()
|
inline |
Set the FMU variable with specified name to the values of the given ChgFrameMoving.
Note that only the base data members of the FMU's ChFrameMoving object are set (namely, the position vector and orientation quaternion and their time derivatives). If the rotation matrix of the ChFrameMoving object is needed, it must be explicitly calculated before use through a call to ChFrame::Set_A_quaternion (e.g., in a pre-step callback).
◆ SetFrameVariable()
|
inline |
Set the FMU variable with specified name to the values of the given ChFrame.
Note that only the base data members of the FMU's ChFrame object are set (namely, the position vector and orientation quaternion). If the rotation matrix of the ChFrame object is needed, it must be explicitly calculated before use through a call to ChFrame::Set_A_quaternion (e.g., in a pre-step callback).
The documentation for this class was generated from the following file:
- /builds/uwsbel/chrono/src/chrono_fmi/fmi3/ChFmuToolsImport.h