chrono::ChFunctionRotationABCFunctions Class Reference

Description

A rotation function q=f(s) where q(s) is defined with three ChFunction objects, each per an an angle in an intrinsic triplets of angles (e.g.

Euler angles, Cardan angles, etc). By default, rotation is constant zero rotation. By default, uses RotRepresentation::CARDAN_ANGLES_XYZ (sequence: X-Y'-Z'' intrinsic).

#include <ChFunctionRotationABCFunctions.h>

Inheritance diagram for chrono::ChFunctionRotationABCFunctions:
Collaboration diagram for chrono::ChFunctionRotationABCFunctions:

Public Member Functions

 ChFunctionRotationABCFunctions (const ChFunctionRotationABCFunctions &other)
 
virtual ChFunctionRotationABCFunctionsClone () const override
 "Virtual" copy constructor.
 
void SetFunctionAngleA (std::shared_ptr< ChFunction > angle_function)
 Set the function A=A(s) for the rotation angle (in radians) about the first axis. More...
 
std::shared_ptr< ChFunctionGetFunctionAngleA () const
 Get the function A=A(s) for the rotation angle (in radians) about the first axis.
 
void SetFunctionAngleB (std::shared_ptr< ChFunction > angle_function)
 Set the function B(s) for the rotation angle (in radians) about the second axis. More...
 
std::shared_ptr< ChFunctionGetFunctionAngleB () const
 Get the function B(s) for the rotation angle (in radians) about the second axis.
 
void SetFunctionAngleC (std::shared_ptr< ChFunction > angle_function)
 Set the function C(s) for the rotation angle (in radians) about the third axis. More...
 
std::shared_ptr< ChFunctionGetFunctionAngleC () const
 Get the function C(s) for the rotation angle (in radians) about the third axis.
 
void SetRotationRepresentation (const RotRepresentation rot_rep)
 Set the angle set for rotation representation. More...
 
RotRepresentation GetRotationRepresentation () const
 Get the angle set for rotation representation.
 
virtual ChQuaternion GetQuat (double s) const override
 Return the rotation as a quaternion, function of s, as q=f(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::ChFunctionRotation
 ChFunctionRotation (const ChFunctionRotation &other)
 
virtual ChVector3d GetAngVel (double s) const
 Return the angular velocity in local frame. More...
 
virtual ChVector3d GetAngAcc (double s) const
 Return the angular acceleration in local frame. More...
 
virtual void Update (double t)
 Update could be implemented by children classes, ex. to launch callbacks.
 

Member Function Documentation

◆ SetFunctionAngleA()

void chrono::ChFunctionRotationABCFunctions::SetFunctionAngleA ( std::shared_ptr< ChFunction angle_function)
inline

Set the function A=A(s) for the rotation angle (in radians) about the first axis.

Default: constant 0 function.

◆ SetFunctionAngleB()

void chrono::ChFunctionRotationABCFunctions::SetFunctionAngleB ( std::shared_ptr< ChFunction angle_function)
inline

Set the function B(s) for the rotation angle (in radians) about the second axis.

Default: constant 0 function.

◆ SetFunctionAngleC()

void chrono::ChFunctionRotationABCFunctions::SetFunctionAngleC ( std::shared_ptr< ChFunction angle_function)
inline

Set the function C(s) for the rotation angle (in radians) about the third axis.

Default: constant 0 function.

◆ SetRotationRepresentation()

void chrono::ChFunctionRotationABCFunctions::SetRotationRepresentation ( const RotRepresentation  rot_rep)

Set the angle set for rotation representation.

This can be one of the supported Euler angle sets.


The documentation for this class was generated from the following files:
  • /builds/uwsbel/chrono/src/chrono/functions/ChFunctionRotationABCFunctions.h
  • /builds/uwsbel/chrono/src/chrono/functions/ChFunctionRotationABCFunctions.cpp