33 #ifndef DART_DYNAMICS_MARKER_HPP_ 34 #define DART_DYNAMICS_MARKER_HPP_ 36 #include <Eigen/Dense> 37 #include "dart/common/Deprecated.hpp" 38 #include "dart/dynamics/FixedJacobianNode.hpp" 39 #include "dart/dynamics/detail/MarkerAspect.hpp" 48 detail::MarkerProperties,
52 using ConstraintType = detail::MarkerProperties::ConstraintType;
53 static constexpr ConstraintType NO = detail::MarkerProperties::NO;
54 static constexpr ConstraintType HARD = detail::MarkerProperties::HARD;
55 static constexpr ConstraintType SOFT = detail::MarkerProperties::SOFT;
99 void setColor(
const Eigen::Vector4d& color);
102 const Eigen::Vector4d&
getColor()
const;
118 static int msMarkerCount;
124 #endif // DART_DYNAMICS_MARKER_HPP_ void setLocalPosition(const Eigen::Vector3d &offset)
Set position of this marker in the parent body node coordinates.
Definition: Marker.cpp:86
Eigen::Vector3d getWorldPosition() const
Get position in the world coordinates.
Definition: Marker.cpp:94
The Node class is a base class for BodyNode and any object that attaches to a BodyNode.
Definition: Node.hpp:79
const Eigen::Vector4d & getColor() const
Return color of this Marker.
Definition: Marker.cpp:132
Definition: CompositeData.hpp:106
void setConstraintType(ConstraintType type)
Set constraint type. which will be useful for inverse kinematics.
Definition: Marker.cpp:106
Definition: Aspect.cpp:40
ConstraintType getConstraintType() const
Get constraint type. which will be useful for inverse kinematics.
Definition: Marker.cpp:116
Marker(BodyNode *parent, const BasicProperties &properties)
Constructor used by BodyNode.
Definition: Marker.cpp:138
BodyNode * getBodyNode()
Get the BodyNode this Marker belongs to.
Definition: Marker.cpp:68
BodyNode class represents a single node of the skeleton.
Definition: BodyNode.hpp:74
void setAspectProperties(const AspectProperties &properties)
Set the AspectProperties of this Marker.
Definition: Marker.cpp:61
Definition: Marker.hpp:46
void setColor(const Eigen::Vector4d &color)
Set the color of this Marker.
Definition: Marker.cpp:122
int getID() const
Get global unique ID.
Definition: Marker.cpp:100
Eigen::Vector3d getLocalPosition() const
Get position of this marker in the parent body node coordinates.
Definition: Marker.cpp:80
This is an alternative to EmbedProperties which allows your class to also inherit other Composite obj...
Definition: EmbeddedAspect.hpp:237
Definition: CompositeData.hpp:185
virtual ~Marker()=default
Destructor.