chrono::ChFunctionPosition_line Class Reference
Description
A motion function p=f(s) where p(t) is defined with a ChLine geometry object, ex.
ChLineArc or ChLineBspline etc.
#include <ChFunctionPosition_line.h>
Inheritance diagram for chrono::ChFunctionPosition_line:
Collaboration diagram for chrono::ChFunctionPosition_line:
Public Member Functions | |
ChFunctionPosition_line (const ChFunctionPosition_line &other) | |
virtual ChFunctionPosition_line * | Clone () const override |
"Virtual" copy constructor. | |
std::shared_ptr< geometry::ChLine > | GetLine () const |
Get the trajectory line. | |
void | SetLine (std::shared_ptr< geometry::ChLine > mline) |
Sets the trajectory line (take ownership - does not copy line) | |
std::shared_ptr< ChFunction > | GetSpaceFunction () const |
Gets the address of the function u=u(s) telling how the curvilinear parameter u of the spline changes in s (time). | |
void | SetSpaceFunction (std::shared_ptr< ChFunction > m_funct) |
Sets the function u=u(s) telling how the curvilinear parameter of the spline changes in s (time). More... | |
virtual ChVector | Get_p (double s) const override |
Return the p value of the function, at s, as p=f(s). | |
virtual ChVector | Get_p_ds (double s) const override |
Return the dp/ds derivative of the function, at s. | |
virtual ChVector | Get_p_dsds (double s) const override |
Return the ddp/dsds double derivative of the function, at s. | |
virtual void | ArchiveOUT (ChArchiveOut &marchive) override |
Method to allow serialization of transient data to archives. | |
virtual void | ArchiveIN (ChArchiveIn &marchive) override |
Method to allow de-serialization of transient data from archives. | |
Public Member Functions inherited from chrono::ChFunctionPosition | |
ChFunctionPosition (const ChFunctionPosition &other) | |
virtual void | Estimate_s_domain (double &smin, double &smax) const |
Return an estimate of the domain of the function argument. More... | |
virtual void | Estimate_boundingbox (ChVector<> &pmin, ChVector<> &pmax) const |
Return an estimate of the range of the function value. More... | |
virtual void | Update (const double t) |
Update could be implemented by children classes, ex. to launch callbacks. | |
Member Function Documentation
◆ SetSpaceFunction()
|
inline |
Sets the function u=u(s) telling how the curvilinear parameter of the spline changes in s (time).
Otherwise, by default, is a linear ramp, so evaluates the spline from begin at s=0 to end at s=1
The documentation for this class was generated from the following files:
- /builds/uwsbel/chrono/src/chrono/motion_functions/ChFunctionPosition_line.h
- /builds/uwsbel/chrono/src/chrono/motion_functions/ChFunctionPosition_line.cpp