33 #ifndef DART_UTILS_MJCF_DETAIL_JOINT_HPP_
34 #define DART_UTILS_MJCF_DETAIL_JOINT_HPP_
46 namespace MjcfParser {
56 const std::string&
getName()
const;
58 const Eigen::Vector3d&
getPos()
const;
59 const Eigen::Vector3d&
getAxis()
const;
61 const Eigen::Vector2d&
getRange()
const;
69 tinyxml2::XMLElement* element,
95 Eigen::Vector3d
mPos{Eigen::Vector3d::Zero()};
100 Eigen::Vector3d
mAxis{Eigen::Vector3d::UnitZ()};
110 Eigen::Vector2d
mRange{Eigen::Vector2d::Zero()};
Definition: Compiler.hpp:51
Definition: Default.hpp:80
double mStiffness
Definition: Joint.hpp:107
double mMargin
Definition: Joint.hpp:112
int mGroup
Definition: Joint.hpp:90
bool isLimited() const
Definition: Joint.cpp:164
double mArmature
Definition: Joint.hpp:118
JointType getType() const
Definition: Joint.cpp:146
Eigen::Vector2d mSpringDamper
Definition: Joint.hpp:102
bool mLimited
This attribute specifies if the joint has limits.
Definition: Joint.hpp:105
double getDamping() const
Definition: Joint.cpp:176
const Eigen::Vector3d & getAxis() const
Definition: Joint.cpp:158
std::string mName
Definition: Joint.hpp:86
const Eigen::Vector3d & getPos() const
Definition: Joint.cpp:152
double mRef
Definition: Joint.hpp:114
Errors preprocess(const Compiler &compiler)
Updates attributes and elements that doesn't require any other elements.
Definition: Joint.cpp:88
double mDamping
Definition: Joint.hpp:120
JointAttributes mAttributes
Definition: Joint.hpp:84
double getSpringRef() const
Definition: Joint.cpp:182
Errors compile(const Compiler &compiler)
Updates attributes and elements that require the preprocessed child elements of this <joint>.
Definition: Joint.cpp:108
Eigen::Vector2d mRange
The joint limits.
Definition: Joint.hpp:110
Eigen::Vector3d mPos
Position of the joint, specified in local or global coordinates as determined by the coordinate attri...
Definition: Joint.hpp:95
double mFrictionLoss
Definition: Joint.hpp:122
JointType mType
Definition: Joint.hpp:88
const Eigen::Vector2d & getRange() const
Definition: Joint.cpp:170
Errors read(tinyxml2::XMLElement *element, const Defaults &defaults, const JointAttributes &defaultAttributes)
Definition: Joint.cpp:44
Errors postprocess(const Body *body, const Compiler &compiler)
Updates attributes and elements that require the compiled parent element.
Definition: Joint.cpp:115
const std::string & getName() const
Definition: Joint.cpp:140
Eigen::Vector3d mAxis
This attribute specifies the axis of rotation for hinge joints and the direction of translation for s...
Definition: Joint.hpp:100
double mSpringRef
Definition: Joint.hpp:116
Eigen::VectorXd mUser
Definition: Joint.hpp:124
JointType
Definition: Types.hpp:132
std::vector< Error > Errors
Definition: Error.hpp:85
Definition: BulletCollisionDetector.cpp:65
Definition: JointAttributes.hpp:49