33 #ifndef DART_DYNAMICS_DETAIL_SHAPEFRAMEASPECT_HPP_
34 #define DART_DYNAMICS_DETAIL_SHAPEFRAMEASPECT_HPP_
45 class CollisionAspect;
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> >;
This is an alternative to EmbedProperties which allows your class to also inherit other Composite obj...
Definition: EmbeddedAspect.hpp:240
The Frame class serves as the backbone of DART's kinematic tree structure.
Definition: Frame.hpp:58
Definition: ShapeFrame.hpp:192
std::shared_ptr< Shape > ShapePtr
Definition: SmartPointer.hpp:81
Definition: BulletCollisionDetector.cpp:65
Definition: ShapeFrameAspect.hpp:78
virtual ~CollisionAspectProperties()=default
Destructor.
bool mCollidable
This object is collidable if true.
Definition: ShapeFrameAspect.hpp:80
CollisionAspectProperties(const bool collidable=true)
Constructor.
Definition: ShapeFrame.cpp:49
Definition: ShapeFrameAspect.hpp:90
virtual ~DynamicsAspectProperties()=default
Destructor.
const Frame * mFirstFrictionDirectionFrame
First friction direction frame The first friction direction unit vector is expressed in this frame.
Definition: ShapeFrameAspect.hpp:111
double mSecondarySlipCompliance
Secondary slip compliance coefficient.
Definition: ShapeFrameAspect.hpp:104
double mSecondaryFrictionCoeff
Secondary coefficient of friction.
Definition: ShapeFrameAspect.hpp:98
double mRestitutionCoeff
Coefficient of restitution.
Definition: ShapeFrameAspect.hpp:95
double mPrimarySlipCompliance
Primary slip compliance coefficient.
Definition: ShapeFrameAspect.hpp:101
double mFrictionCoeff
Primary coefficient of friction.
Definition: ShapeFrameAspect.hpp:92
Eigen::Vector3d mFirstFrictionDirection
First friction direction unit vector.
Definition: ShapeFrameAspect.hpp:107
DynamicsAspectProperties(const double frictionCoeff=1.0, const double restitutionCoeff=0.0)
Constructors The frictionCoeff argument will be used for both primary and secondary friction.
Definition: ShapeFrame.cpp:56
Definition: ShapeFrameAspect.hpp:147
ShapePtr mShape
Pointer to a shape.
Definition: ShapeFrameAspect.hpp:149
ShapeFrameProperties(const ShapePtr &shape=nullptr)
Constructor.
Definition: ShapeFrame.cpp:90
virtual ~ShapeFrameProperties()=default
Virtual destructor.
Definition: ShapeFrameAspect.hpp:52
Eigen::Vector4d mRGBA
Color for the primitive shape.
Definition: ShapeFrameAspect.hpp:54
virtual ~VisualAspectProperties()=default
Destructor.
bool mShadowed
True if this shape node should be shadowed.
Definition: ShapeFrameAspect.hpp:62
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
bool mHidden
True if this shape node should be kept from rendering.
Definition: ShapeFrameAspect.hpp:59
bool mUseDefaultColor
Definition: ShapeFrameAspect.hpp:56