33 #ifndef DART_DYNAMICS_EULERJOINT_HPP_
34 #define DART_DYNAMICS_EULERJOINT_HPP_
104 template <typename RotationType>
106 const RotationType& _rotation,
AxisOrder _ordering)
115 dtwarn <<
"[EulerJoint::convertToPositions] Unsupported AxisOrder ("
116 <<
static_cast<int>(_ordering) <<
"), returning a zero vector\n";
117 return Eigen::Vector3d::Zero();
124 template <
typename RotationType>
132 const Eigen::Vector3d& _positions,
AxisOrder _ordering);
141 const Eigen::Vector3d& _positions,
AxisOrder _ordering);
147 const Eigen::Vector3d& _positions)
const override;
156 using Base::getRelativeJacobianStatic;
#define dtwarn
Output a warning message.
Definition: Console.hpp:46
BodyPropPtr properties
Definition: SdfParser.cpp:80
Terminator for the variadic template.
Definition: CompositeJoiner.hpp:45
This is an alternative to EmbedProperties which allows your class to also inherit other Composite obj...
Definition: EmbeddedAspect.hpp:240
typename Impl::Aspect Aspect
Definition: EmbeddedAspect.hpp:246
typename Impl::AspectProperties AspectProperties
Definition: EmbeddedAspect.hpp:245
class EulerJoint
Definition: EulerJoint.hpp:43
static Eigen::Vector3d convertToPositions(const RotationType &_rotation, AxisOrder _ordering)
Convert a rotation into a 3D vector that can be used to set the positions of an EulerJoint with the s...
Definition: EulerJoint.hpp:105
Eigen::Vector3d convertToPositions(const RotationType &_rotation) const
This is a version of EulerJoint::convertToPositions(const RotationType&, AxisOrder) which will use th...
Definition: EulerJoint.hpp:125
detail::EulerJointProperties Properties
Definition: EulerJoint.hpp:48
void setAxisOrder(AxisOrder _order, bool _renameDofs=true)
Set the axis order.
Definition: EulerJoint.cpp:121
void copy(const EulerJoint &_otherJoint)
Copy the Properties of another EulerJoint.
Definition: EulerJoint.cpp:77
void setAspectProperties(const AspectProperties &properties)
Set the AspectProperties of this EulerJoint.
Definition: EulerJoint.cpp:64
Properties getEulerJointProperties() const
Get the Properties of this EulerJoint.
Definition: EulerJoint.cpp:70
void setProperties(const Properties &_properties)
Set the Properties of this EulerJoint.
Definition: EulerJoint.cpp:51
bool isCyclic(std::size_t _index) const override
Definition: EulerJoint.cpp:115
void updateRelativeJacobian(bool=true) const override
Definition: EulerJoint.cpp:343
static Eigen::Isometry3d convertToTransform(const Eigen::Vector3d &_positions, AxisOrder _ordering)
Convert a set of Euler angle positions into a transform.
Definition: EulerJoint.cpp:139
void updateRelativeTransform() const override
Definition: EulerJoint.cpp:333
EulerJoint(const EulerJoint &)=delete
static Eigen::Matrix3d convertToRotation(const Eigen::Vector3d &_positions, AxisOrder _ordering)
Convert a set of Euler angle positions into a rotation matrix.
Definition: EulerJoint.cpp:153
void updateDegreeOfFreedomNames() override
Set the names of this joint's DegreesOfFreedom.
Definition: EulerJoint.cpp:301
Eigen::Matrix< double, 6, 3 > getRelativeJacobianStatic(const Eigen::Vector3d &_positions) const override
Definition: EulerJoint.cpp:179
void updateRelativeJacobianTimeDeriv() const override
Definition: EulerJoint.cpp:349
Joint * clone() const override
Definition: EulerJoint.cpp:295
detail::AxisOrder AxisOrder
Definition: EulerJoint.hpp:46
const std::string & getType() const override
Definition: EulerJoint.cpp:102
AxisOrder getAxisOrder() const
Return the axis order.
Definition: EulerJoint.cpp:133
static const std::string & getStaticType()
Get joint type for this class.
Definition: EulerJoint.cpp:108
class Joint
Definition: Joint.hpp:60
class Skeleton
Definition: Skeleton.hpp:59
#define DART_BAKE_SPECIALIZED_ASPECT_IRREGULAR(TypeName, AspectName)
Definition: Composite.hpp:164
Definition: Random-impl.hpp:92
AxisOrder
Axis order.
Definition: EulerJointAspect.hpp:50
common::EmbedPropertiesOnTopOf< EulerJoint, EulerJointUniqueProperties, GenericJoint< math::R3Space > > EulerJointBase
Definition: EulerJointAspect.hpp:87
Eigen::Vector3d matrixToEulerXYZ(const Eigen::Matrix3d &_R)
get the Euler XYZ angle from R
Definition: Geometry.cpp:117
Eigen::Vector3d matrixToEulerZYX(const Eigen::Matrix3d &_R)
get the Euler ZYX angle from R
Definition: Geometry.cpp:151
Definition: BulletCollisionDetector.cpp:65
Definition: SharedLibraryManager.hpp:46
Definition: EulerJointAspect.hpp:70
Definition: EulerJointAspect.hpp:57