33 #ifndef DART_DYNAMICS_DETAIL_SHAPEFRAMEASPECT_HPP_ 34 #define DART_DYNAMICS_DETAIL_SHAPEFRAMEASPECT_HPP_ 38 #include "dart/common/EmbeddedAspect.hpp" 39 #include "dart/dynamics/SmartPointer.hpp" 45 class CollisionAspect;
56 bool mUseDefaultColor;
66 const Eigen::Vector4d& color = Eigen::Vector4d(0.5, 0.5, 1.0, 1.0),
67 const bool hidden =
false,
68 const bool shadowed =
true);
74 EIGEN_MAKE_ALIGNED_OPERATOR_NEW
117 const double frictionCoeff = 1.0,
const double restitutionCoeff = 0.0);
134 const double primaryFrictionCoeff,
135 const double secondaryFrictionCoeff,
136 const double restitutionCoeff,
137 const double primarySlipCompliance = -1.0,
138 const double secondarySlipCompliance = -1.0,
139 const Eigen::Vector3d& firstFrictionDirection = Eigen::Vector3d::Zero(),
140 const Frame* firstFrictionDirectionFrame =
nullptr);
162 SpecializedForAspect<VisualAspect, CollisionAspect, DynamicsAspect> >;
168 #endif // DART_DYNAMICS_DETAIL_SHAPEFRAMEASPECT_HPP_ double mFrictionCoeff
Primary coefficient of friction.
Definition: ShapeFrameAspect.hpp:92
double mSecondarySlipCompliance
Secondary slip compliance coefficient.
Definition: ShapeFrameAspect.hpp:104
ShapePtr mShape
Pointer to a shape.
Definition: ShapeFrameAspect.hpp:149
double mRestitutionCoeff
Coefficient of restitution.
Definition: ShapeFrameAspect.hpp:95
The Frame class serves as the backbone of DART's kinematic tree structure.
Definition: Frame.hpp:57
virtual ~VisualAspectProperties()=default
Destructor.
Eigen::Vector3d mFirstFrictionDirection
First friction direction unit vector.
Definition: ShapeFrameAspect.hpp:107
bool mCollidable
This object is collidable if true.
Definition: ShapeFrameAspect.hpp:80
bool mHidden
True if this shape node should be kept from rendering.
Definition: ShapeFrameAspect.hpp:59
Definition: ShapeFrameAspect.hpp:51
const Frame * mFirstFrictionDirectionFrame
First friction direction frame The first friction direction unit vector is expressed in this frame...
Definition: ShapeFrameAspect.hpp:111
Definition: Aspect.cpp:40
Definition: ShapeFrameAspect.hpp:89
Definition: ShapeFrameAspect.hpp:77
bool mShadowed
True if this shape node should be shadowed.
Definition: ShapeFrameAspect.hpp:62
double mSecondaryFrictionCoeff
Secondary coefficient of friction.
Definition: ShapeFrameAspect.hpp:98
Definition: ShapeFrame.hpp:189
VisualAspectProperties(const Eigen::Vector4d &color=Eigen::Vector4d(0.5, 0.5, 1.0, 1.0), const bool hidden=false, const bool shadowed=true)
Constructor.
Definition: ShapeFrame.cpp:41
Eigen::Vector4d mRGBA
Color for the primitive shape.
Definition: ShapeFrameAspect.hpp:54
This is an alternative to EmbedProperties which allows your class to also inherit other Composite obj...
Definition: EmbeddedAspect.hpp:237
double mPrimarySlipCompliance
Primary slip compliance coefficient.
Definition: ShapeFrameAspect.hpp:101
Definition: ShapeFrameAspect.hpp:146