33 #ifndef DART_DYNAMICS_DETAIL_BODYNODEASPECT_HPP_ 34 #define DART_DYNAMICS_DETAIL_BODYNODEASPECT_HPP_ 36 #include "dart/common/EmbeddedAspect.hpp" 37 #include "dart/common/ProxyAspect.hpp" 38 #include "dart/dynamics/Entity.hpp" 39 #include "dart/dynamics/Inertia.hpp" 40 #include "dart/dynamics/Node.hpp" 55 BodyNodeState(
const Eigen::Vector6d& Fext = Eigen::Vector6d::Zero());
60 EIGEN_MAKE_ALIGNED_OPERATOR_NEW
96 const
std::
string& name,
99 double _frictionCoeff,
100 double _restitutionCoeff,
107 bool isCollidable = true,
108 bool gravityMode = true);
115 = common::CloneableVector<
std::unique_ptr<
Node::
State> >;
122 = common::CloneableVector<
std::unique_ptr<
Node::Properties> >;
123 using NodePropertiesMap
128 void setAllNodeStates(BodyNode* bodyNode, const
AllNodeStates& states);
134 void setAllNodeProperties(
142 common::Aspect::State,
150 common::Aspect::Properties,
153 &setAllNodeProperties,
154 &getAllNodeProperties>;
173 #endif // DART_DYNAMICS_DETAIL_BODYNODEASPECT_HPP_ The Node class is a base class for BodyNode and any object that attaches to a BodyNode.
Definition: Node.hpp:79
Definition: SharedLibraryManager.hpp:46
This is an alternative to EmbedStateAndProperties which allows your class to also inherit other Compo...
Definition: EmbeddedAspect.hpp:431
Definition: Inertia.hpp:43
Eigen::Vector6d mFext
External spatial force.
Definition: BodyNodeAspect.hpp:53
Definition: ProxyAspect.hpp:57
Definition: Aspect.cpp:40
Definition: Cloneable.hpp:139
bool mIsCollidable
Indicates whether this node is collidable;.
Definition: BodyNodeAspect.hpp:73
class State
Definition: State.hpp:65
Inertia mInertia
Inertia information for the BodyNode.
Definition: BodyNodeAspect.hpp:70
BodyNode class represents a single node of the skeleton.
Definition: BodyNode.hpp:74
double mFrictionCoeff
Coefficient of friction.
Definition: BodyNodeAspect.hpp:79
MapHolder is a templated wrapper class that is used to allow maps of Aspect::State and Aspect::Proper...
Definition: Cloneable.hpp:220
std::string mName
Name of the Entity.
Definition: BodyNodeAspect.hpp:67
double mRestitutionCoeff
Coefficient of restitution.
Definition: BodyNodeAspect.hpp:85
bool mGravityMode
Gravity will be applied if true.
Definition: BodyNodeAspect.hpp:88
The CloneableVector type wraps a std::vector of an Cloneable type allowing it to be handled by an Clo...
Definition: Cloneable.hpp:287
Definition: BodyNodeAspect.hpp:50
Definition: BodyNodeAspect.hpp:64