Description
A motion function p=f(s) where p(t) is defined with three independent ChFunction objects, each for px, py, pz component.
#include <ChFunctionPositionXYZFunctions.h>


Public Member Functions | |
ChFunctionPositionXYZFunctions (const ChFunctionPositionXYZFunctions &other) | |
virtual ChFunctionPositionXYZFunctions * | Clone () const override |
"Virtual" copy constructor. | |
void | SetFunctionX (std::shared_ptr< ChFunction > mx) |
Set the fx(s) function for the X component of the motion, ie. p.x = fx(s) | |
std::shared_ptr< ChFunction > | GetFunctionX () |
Get the fx(s) function for the X component of the motion, ie. p.x = fx(s) | |
void | SetFunctionY (std::shared_ptr< ChFunction > my) |
Set the fy(s) function for the Y component of the motion, ie. p.y = fy(s) | |
std::shared_ptr< ChFunction > | GetFunctionY () |
Get the fy(s) function for the Y component of the motion, ie. p.y = fy(s) | |
void | SetFunctionZ (std::shared_ptr< ChFunction > mz) |
Set the fz(s) function for the Z component of the motion, ie. p.z = fz(s) | |
std::shared_ptr< ChFunction > | GetFunctionZ () |
Get the fz(s) function for the Z component of the motion, ie. p.z = fz(s) | |
virtual ChVector3d | GetPos (double s) const override |
Return the position imposed by the function, at s. | |
virtual ChVector3d | GetLinVel (double s) const override |
Return the linear velocity imposed by the function, at s. | |
virtual ChVector3d | GetLinAcc (double s) const override |
Return the linear acceleration imposed the function, at s. | |
virtual void | ArchiveOut (ChArchiveOut &archive_out) override |
Method to allow serialization of transient data to archives. | |
virtual void | ArchiveIn (ChArchiveIn &archive_in) override |
Method to allow de-serialization of transient data from archives. | |
![]() | |
ChFunctionPosition (const ChFunctionPosition &other) | |
virtual void | Update (double t) |
Update could be implemented by children classes, ex. to launch callbacks. | |
Member Function Documentation
◆ ArchiveIn()
|
overridevirtual |
Method to allow de-serialization of transient data from archives.
Reimplemented from chrono::ChFunctionPosition.
◆ ArchiveOut()
|
overridevirtual |
Method to allow serialization of transient data to archives.
Reimplemented from chrono::ChFunctionPosition.
◆ Clone()
|
inlineoverridevirtual |
"Virtual" copy constructor.
Implements chrono::ChFunctionPosition.
◆ GetLinAcc()
|
overridevirtual |
Return the linear acceleration imposed the function, at s.
Reimplemented from chrono::ChFunctionPosition.
◆ GetLinVel()
|
overridevirtual |
Return the linear velocity imposed by the function, at s.
Reimplemented from chrono::ChFunctionPosition.
◆ GetPos()
|
overridevirtual |
Return the position imposed by the function, at s.
Implements chrono::ChFunctionPosition.
The documentation for this class was generated from the following files:
- C:/M/B/src/chrono-9.0.1/src/chrono/functions/ChFunctionPositionXYZFunctions.h
- C:/M/B/src/chrono-9.0.1/src/chrono/functions/ChFunctionPositionXYZFunctions.cpp