33 #ifndef DART_DYNAMICS_DETAIL_SOFTBODYNODEASPECT_HPP_ 34 #define DART_DYNAMICS_DETAIL_SOFTBODYNODEASPECT_HPP_ 36 #include "dart/common/RequiresAspect.hpp" 37 #include "dart/dynamics/BodyNode.hpp" 38 #include "dart/dynamics/PointMass.hpp" 43 const double DART_DEFAULT_VERTEX_STIFFNESS = 1.0;
44 const double DART_DEFAULT_EDGE_STIFNESS = 1.0;
45 const double DART_DEFAULT_DAMPING_COEFF = 0.01;
86 double _Kv = DART_DEFAULT_VERTEX_STIFFNESS,
87 double _Ke = DART_DEFAULT_EDGE_STIFNESS,
88 double _DampCoeff = DART_DEFAULT_DAMPING_COEFF,
89 const std::vector<PointMass::Properties>& _points
90 = std::vector<PointMass::Properties>(),
91 const std::vector<Eigen::Vector3i>& _faces
92 = std::vector<Eigen::Vector3i>());
100 bool connectPointMasses(std::size_t i1, std::size_t i2);
103 void addFace(
const Eigen::Vector3i& _newFace);
131 #endif // DART_DYNAMICS_DETAIL_SOFTBODYNODEASPECT_HPP_ Definition: SoftBodyNodeAspect.hpp:65
SoftBodyNode represent a soft body that has one deformable skin.
Definition: SoftBodyNode.hpp:45
Properties for each PointMass.
Definition: PointMass.hpp:83
std::vector< PointMass::Properties > mPointProps
Array of Properties for PointMasses.
Definition: SoftBodyNodeAspect.hpp:79
This is an alternative to EmbedStateAndProperties which allows your class to also inherit other Compo...
Definition: EmbeddedAspect.hpp:431
Definition: Aspect.cpp:40
std::vector< Eigen::Vector3i > mFaces
Tri-mesh indexes for rendering.
Definition: SoftBodyNodeAspect.hpp:83
std::vector< PointMass::State > mPointStates
Array of States for PointMasses.
Definition: SoftBodyNodeAspect.hpp:59
BodyNode class represents a single node of the skeleton.
Definition: BodyNode.hpp:74
double mKe
Spring stiffness for edge deformation restoring spring force of the point masses. ...
Definition: SoftBodyNodeAspect.hpp:73
double mDampCoeff
Damping coefficient.
Definition: SoftBodyNodeAspect.hpp:76
double mKv
Spring stiffness for vertex deformation restoring spring force of the point masses.
Definition: SoftBodyNodeAspect.hpp:69
Definition: SoftBodyNodeAspect.hpp:56
Definition: SoftBodyNodeAspect.hpp:107
Definition: CompositeData.hpp:185