chrono::ChFunctionPositionLine Class Reference

Description

A motion function p=f(s) where p(t) is defined with a ChLine geometry object (e.g.

ChLineArc, ChLineBSpline, etc.).

#include <ChFunctionPositionLine.h>

Inheritance diagram for chrono::ChFunctionPositionLine:
Collaboration diagram for chrono::ChFunctionPositionLine:

Public Member Functions

 ChFunctionPositionLine (std::shared_ptr< ChLine > line)
 
 ChFunctionPositionLine (const ChFunctionPositionLine &other)
 
virtual ChFunctionPositionLineClone () const override
 "Virtual" copy constructor.
 
std::shared_ptr< ChLineGetLine () const
 Get the trajectory line.
 
void SetLine (std::shared_ptr< ChLine > line)
 Set the trajectory line.
 
std::shared_ptr< ChFunctionGetSpaceFunction () const
 Get the function u=u(s) telling how the curvilinear parameter u of the spline changes in s (time).
 
void SetSpaceFunction (std::shared_ptr< ChFunction > funct)
 Set the function u=u(s) telling how the curvilinear parameter of the spline changes in s (e.g. More...
 
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 by 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.
 
- Public Member Functions inherited from chrono::ChFunctionPosition
 ChFunctionPosition (const ChFunctionPosition &other)
 
virtual void Update (double t)
 Update could be implemented by children classes, e.g. to launch callbacks.
 

Member Function Documentation

◆ SetSpaceFunction()

void chrono::ChFunctionPositionLine::SetSpaceFunction ( std::shared_ptr< ChFunction funct)
inline

Set the function u=u(s) telling how the curvilinear parameter of the spline changes in s (e.g.

time). Note: by default, u=u(s) 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/functions/ChFunctionPositionLine.h
  • /builds/uwsbel/chrono/src/chrono/functions/ChFunctionPositionLine.cpp