3#include "JointConstraint.h"
8#include "sfh/ogre/C3DLine.h"
17 EIGEN_MAKE_ALIGNED_OPERATOR_NEW
42#ifdef FH_VISUALIZATION
43 virtual void RenderInit(Ogre::Root*
const ogreRoot);
44 virtual void RenderUpdate(
const double T,
const double*
const X);
45 void visualizationDetailed(
bool val);
46 bool visualizationDetailed();
50 std::vector<RigidElement*> getElements(){
return m_elements;}
51 RigidElement* getFirstElement(){
return m_elements.front();}
56 double getLength(){
return m_Length;}
57 double GammaN() {
return m_base_coupling.GammaN;}
58 double GammaMx(){
return m_base_coupling.GammaM.x();}
59 double GammaMy(){
return m_base_coupling.GammaM.y();}
60 double GammaT() {
return m_base_coupling.GammaM.z();}
65 virtual void Init(ConstraintSolver* solver, ISimObjectCreator* creator, LineSpec spec, std::string name);
70 std::vector<RigidElement*> m_elements;
74#ifdef FH_VISUALIZATION
77 std::vector<Ogre::SceneNode*> m_Nodes;
Definition: ConstraintSolver.h:31
Definition: JointConstraint.h:17
Definition: RigidElement.h:15
Definition: LineStructure.h:15
virtual void InitialConditionSetup(double *const states, const vec3 &P1, const vec3 &P2)
double m_elemDiameter
element length [m]
Definition: LineStructure.h:69
int getNumElements()
For use in project MarinSim. Otherwise commented out.
Definition: LineStructure.h:53
LineStructure(ConstraintSolver *solver, ISimObjectCreator *creator, LineSpec spec, string name)
RigidElement * getLastElement()
For use in project MarinSim. Otherwise commented out.
Definition: LineStructure.h:52
virtual void ComputeConstraints(const double T, const double *const X)
Definition: CollisionManager.h:6
Definition: JointConstraint.h:125
Definition: LineStructure.h:18
double Diameter
Total length of the line [m].
Definition: LineStructure.h:23
double Alpha
Regulator frequency coefficient; [s^-1].
Definition: LineStructure.h:21
double Beta
Number of discrete elements in the line.
Definition: LineStructure.h:20
double Inertia[6]
Bending stiffness around x, y and z axis [Nm].
Definition: LineStructure.h:26
vec3 EI
Axial stiffness [N].
Definition: LineStructure.h:25
double Length
Damping frequency coefficient; [s^-1].
Definition: LineStructure.h:22
double EA
line diameter;
Definition: LineStructure.h:24