CellModules
MecaCell::Joint Struct Reference

#include <spring.hpp>

Public Member Functions

 Joint ()
 
 Joint (const double &K, const double &C, const double &MTETA, bool handleMteta=true)
 
void updateDirection (const Vec &v, const Rotation< Vec > &rot)
 
void updateDelta ()
 

Public Attributes

double k = 1.0
 
double c = 1.0
 
double maxTeta = M_PI / 10.0
 
Rotation< Vecr
 
Rotation< Vecdelta
 
Rotation< VecprevDelta
 
Vec direction
 
Vec target
 
bool maxTetaAutoCorrect = true
 
bool targetUpdateEnabled = true
 

Detailed Description

Definition at line 45 of file spring.hpp.

Constructor & Destructor Documentation

◆ Joint() [1/2]

MecaCell::Joint::Joint ( )
inline

Definition at line 56 of file spring.hpp.

◆ Joint() [2/2]

MecaCell::Joint::Joint ( const double &  K,
const double &  C,
const double &  MTETA,
bool  handleMteta = true 
)
inline

Definition at line 58 of file spring.hpp.

Member Function Documentation

◆ updateDelta()

void MecaCell::Joint::updateDelta ( )
inline

Definition at line 65 of file spring.hpp.

◆ updateDirection()

void MecaCell::Joint::updateDirection ( const Vec v,
const Rotation< Vec > &  rot 
)
inline

Definition at line 62 of file spring.hpp.

Member Data Documentation

◆ c

double MecaCell::Joint::c = 1.0

Definition at line 47 of file spring.hpp.

◆ delta

Rotation<Vec> MecaCell::Joint::delta

Definition at line 50 of file spring.hpp.

◆ direction

Vec MecaCell::Joint::direction

Definition at line 52 of file spring.hpp.

◆ k

double MecaCell::Joint::k = 1.0

Definition at line 46 of file spring.hpp.

◆ maxTeta

double MecaCell::Joint::maxTeta = M_PI / 10.0

Definition at line 48 of file spring.hpp.

◆ maxTetaAutoCorrect

bool MecaCell::Joint::maxTetaAutoCorrect = true

Definition at line 54 of file spring.hpp.

◆ prevDelta

Rotation<Vec> MecaCell::Joint::prevDelta

Definition at line 51 of file spring.hpp.

◆ r

Rotation<Vec> MecaCell::Joint::r

Definition at line 49 of file spring.hpp.

◆ target

Vec MecaCell::Joint::target

Definition at line 53 of file spring.hpp.

◆ targetUpdateEnabled

bool MecaCell::Joint::targetUpdateEnabled = true

Definition at line 55 of file spring.hpp.


The documentation for this struct was generated from the following file: