|
DART 6.12.2
|
TranslationalJoint2D represents a 2-dof joint, which has two orthogonal translational axes. More...
#include <TranslationalJoint2D.hpp>
Public Types | |
| using | PlaneType = detail::PlaneType |
| using | UniqueProperties = detail::TranslationalJoint2DUniqueProperties |
| using | Properties = detail::TranslationalJoint2DProperties |
| using | Base = detail::TranslationalJoint2DBase |
| using | Impl = EmbedProperties< DerivedT, PropertiesDataT > |
| using | Derived = typename Impl::Derived |
| using | AspectPropertiesData = typename Impl::AspectPropertiesData |
| using | AspectProperties = typename Impl::AspectProperties |
| using | Aspect = typename Impl::Aspect |
Public Member Functions | |
| bool | hasTranslationalJoint2DAspect () const |
| Check if this Composite currently has TranslationalJoint2DAspect . | |
| Aspect * | getTranslationalJoint2DAspect () |
| Get a(an) TranslationalJoint2DAspect from this Composite. | |
| const Aspect * | getTranslationalJoint2DAspect () const |
| Get a(an) TranslationalJoint2DAspect from this Composite. | |
| Aspect * | getTranslationalJoint2DAspect (const bool createIfNull) |
| Get a(an) TranslationalJoint2DAspect from this Composite. | |
| void | setTranslationalJoint2DAspect (const Aspect *aspect) |
| Make a clone of TranslationalJoint2DAspect and place the clone into this Composite. | |
| void | setTranslationalJoint2DAspect (std::unique_ptr< Aspect > &&aspect) |
| Use move semantics to place TranslationalJoint2DAspect into this Composite. | |
| template<typename... Args> | |
| Aspect * | createTranslationalJoint2DAspect (Args &&... args) |
| Construct a(an) TranslationalJoint2DAspect inside of this Composite. | |
| void | removeTranslationalJoint2DAspect () |
| Remove a(an) TranslationalJoint2DAspect from this Composite. | |
| std::unique_ptr< Aspect > | releaseTranslationalJoint2DAspect () |
| Remove a(an) TranslationalJoint2DAspect from this Composite, but return its unique_ptr instead of letting it be deleted. | |
| TranslationalJoint2D (const TranslationalJoint2D &)=delete | |
| virtual | ~TranslationalJoint2D () |
| Destructor. | |
| void | setProperties (const Properties &properties) |
| Sets the Properties of this TranslationalJoint2D. | |
| void | setProperties (const UniqueProperties &properties) |
| Sets the Properties of this TranslationalJoint2D. | |
| void | setAspectProperties (const AspectProperties &properties) |
| Sets the AspectProperties of this TranslationalJoint2D. | |
| Properties | getTranslationalJoint2DProperties () const |
| Returns the Properties of this TranslationalJoint2D. | |
| void | copy (const TranslationalJoint2D &otherJoint) |
| Copies the Properties of another TranslationalJoint2D. | |
| void | copy (const TranslationalJoint2D *otherJoint) |
| Copies the Properties of another TranslationalJoint2D. | |
| TranslationalJoint2D & | operator= (const TranslationalJoint2D &otherJoint) |
| Copies the Properties of another TranslationalJoint2D. | |
| const std::string & | getType () const override |
| bool | isCyclic (std::size_t index) const override |
| void | setXYPlane (bool renameDofs=true) |
| Sets plane type as XY-plane. | |
| void | setYZPlane (bool renameDofs=true) |
| Sets plane type as YZ-plane. | |
| void | setZXPlane (bool renameDofs=true) |
| Sets plane type as ZX-plane. | |
| void | setArbitraryPlane (const Eigen::Vector3d &transAxis1, const Eigen::Vector3d &transAxis2, bool renameDofs=true) |
| Sets plane type as arbitrary plane with two orthogonal translational axes. | |
| PlaneType | getPlaneType () const |
| Returns plane type. | |
| Eigen::Vector3d | getTranslationalAxis1 () const |
| Returns first translational axis. | |
| Eigen::Vector3d | getTranslationalAxis2 () const |
| Returns second translational axis. | |
| Eigen::Matrix< double, 6, 2 > | getRelativeJacobianStatic (const Eigen::Vector2d &positions) const override |
| const AspectProperties & | getAspectProperties () const |
Static Public Member Functions | |
| static const std::string & | getStaticType () |
| Returns joint type for this class. | |
Protected Member Functions | |
| TranslationalJoint2D (const Properties &properties) | |
| Constructor called by Skeleton class. | |
| Joint * | clone () const override |
| void | updateDegreeOfFreedomNames () override |
| void | updateRelativeTransform () const override |
| void | updateRelativeJacobian (bool mandatory=true) const override |
| void | updateRelativeJacobianTimeDeriv () const override |
Protected Attributes | |
| AspectProperties | mAspectProperties |
| Aspect::Properties data, directly accessible to your derived class. | |
Friends | |
| class | Skeleton |
TranslationalJoint2D represents a 2-dof joint, which has two orthogonal translational axes.
First and second coordiantes represent the translations along first and second translational axes, respectively.
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
| using dart::dynamics::TranslationalJoint2D::UniqueProperties = detail::TranslationalJoint2DUniqueProperties |
|
delete |
|
virtual |
Destructor.
|
explicitprotected |
Constructor called by Skeleton class.
|
overrideprotected |
| void dart::dynamics::TranslationalJoint2D::copy | ( | const TranslationalJoint2D & | otherJoint | ) |
Copies the Properties of another TranslationalJoint2D.
| void dart::dynamics::TranslationalJoint2D::copy | ( | const TranslationalJoint2D * | otherJoint | ) |
Copies the Properties of another TranslationalJoint2D.
|
inline |
Construct a(an) TranslationalJoint2DAspect inside of this Composite.
|
inlineinherited |
| TranslationalJoint2D::PlaneType dart::dynamics::TranslationalJoint2D::getPlaneType | ( | ) | const |
Returns plane type.
|
override |
|
static |
Returns joint type for this class.
| Eigen::Vector3d dart::dynamics::TranslationalJoint2D::getTranslationalAxis1 | ( | ) | const |
Returns first translational axis.
| Eigen::Vector3d dart::dynamics::TranslationalJoint2D::getTranslationalAxis2 | ( | ) | const |
Returns second translational axis.
|
inline |
Get a(an) TranslationalJoint2DAspect from this Composite.
|
inline |
Get a(an) TranslationalJoint2DAspect from this Composite.
|
inline |
Get a(an) TranslationalJoint2DAspect from this Composite.
If _createIfNull is true, then a(an) TranslationalJoint2DAspect will be generated if one does not already exist.
| TranslationalJoint2D::Properties dart::dynamics::TranslationalJoint2D::getTranslationalJoint2DProperties | ( | ) | const |
Returns the Properties of this TranslationalJoint2D.
|
override |
|
inline |
Check if this Composite currently has TranslationalJoint2DAspect .
|
override |
| TranslationalJoint2D & dart::dynamics::TranslationalJoint2D::operator= | ( | const TranslationalJoint2D & | otherJoint | ) |
Copies the Properties of another TranslationalJoint2D.
|
inline |
Remove a(an) TranslationalJoint2DAspect from this Composite, but return its unique_ptr instead of letting it be deleted.
This allows you to safely use move semantics to transfer a(an) TranslationalJoint2DAspect between two Composites.
|
inline |
Remove a(an) TranslationalJoint2DAspect from this Composite.
| void dart::dynamics::TranslationalJoint2D::setArbitraryPlane | ( | const Eigen::Vector3d & | transAxis1, |
| const Eigen::Vector3d & | transAxis2, | ||
| bool | renameDofs = true |
||
| ) |
Sets plane type as arbitrary plane with two orthogonal translational axes.
| [in] | transAxis1 | First translational axis |
| [in] | transAxis2 | Second translational axis |
| [in] | renameDofs | If true, the names of dofs in this joint will be renmaed according to the plane type. |
| void dart::dynamics::TranslationalJoint2D::setAspectProperties | ( | const AspectProperties & | properties | ) |
Sets the AspectProperties of this TranslationalJoint2D.
| void dart::dynamics::TranslationalJoint2D::setProperties | ( | const Properties & | properties | ) |
Sets the Properties of this TranslationalJoint2D.
| void dart::dynamics::TranslationalJoint2D::setProperties | ( | const UniqueProperties & | properties | ) |
Sets the Properties of this TranslationalJoint2D.
|
inline |
Make a clone of TranslationalJoint2DAspect and place the clone into this Composite.
If a(an) TranslationalJoint2DAspect already exists in this Composite, the existing TranslationalJoint2DAspect will be destroyed.
|
inline |
Use move semantics to place TranslationalJoint2DAspect into this Composite.
If a(an) TranslationalJoint2DAspect already exists in this Composite, the existing TranslationalJoint2DAspect will be destroyed.
| void dart::dynamics::TranslationalJoint2D::setXYPlane | ( | bool | renameDofs = true | ) |
Sets plane type as XY-plane.
| [in] | renameDofs | If true, the names of dofs in this joint will be renmaed according to the plane type. |
| void dart::dynamics::TranslationalJoint2D::setYZPlane | ( | bool | renameDofs = true | ) |
Sets plane type as YZ-plane.
| [in] | renameDofs | If true, the names of dofs in this joint will be renmaed according to the plane type. |
| void dart::dynamics::TranslationalJoint2D::setZXPlane | ( | bool | renameDofs = true | ) |
Sets plane type as ZX-plane.
| [in] | renameDofs | If true, the names of dofs in this joint will be renmaed according to the plane type. |
|
overrideprotected |
|
overrideprotected |
|
overrideprotected |
|
overrideprotected |
|
friend |
|
protectedinherited |
Aspect::Properties data, directly accessible to your derived class.