33 #ifndef DART_DYNAMICS_SIMPLEFRAME_HPP_
34 #define DART_DYNAMICS_SIMPLEFRAME_HPP_
59 const std::string& _name =
"simple_frame",
60 const Eigen::Isometry3d& _relativeTransform = Eigen::Isometry3d::Identity());
70 const std::string&
setName(
const std::string& _name)
override;
73 const std::string&
getName()
const override;
85 bool _copyProperties=
true);
89 bool _copyProperties=
true);
100 const std::string&
name =
"SimpleFrame",
101 const Eigen::Isometry3d& relativeTransform
102 = Eigen::Isometry3d::Identity());
120 void setTransform(
const Eigen::Isometry3d& _newTransform,
132 void setRotation(
const Eigen::Matrix3d& _newRotation,
158 const Frame* _inCoordinatesOf);
179 const Frame* _inCoordinatesOf);
208 const Eigen::Vector3d& _linearVelocity = Eigen::Vector3d::Zero(),
209 const Eigen::Vector3d& _angularVelocity = Eigen::Vector3d::Zero(),
210 const Eigen::Vector3d& _linearAcceleration = Eigen::Vector3d::Zero(),
211 const Eigen::Vector3d& _angularAcceleration = Eigen::Vector3d::Zero());
232 EIGEN_MAKE_ALIGNED_OPERATOR_NEW
#define DART_DEFINE_ALIGNED_SHARED_OBJECT_CREATOR(class_name)
Definition: Memory.hpp:148
std::string * name
Definition: SkelParser.cpp:1642
The Detachable class is a special case of the Entity base class.
Definition: Entity.hpp:233
The Frame class serves as the backbone of DART's kinematic tree structure.
Definition: Frame.hpp:57
static Frame * World()
Definition: Frame.cpp:72
Definition: ShapeFrame.hpp:164
The SimpleFrame class offers a user-friendly way of creating arbitrary Frames within the kinematic tr...
Definition: SimpleFrame.hpp:52
std::shared_ptr< SimpleFrame > clone(Frame *_refFrame=Frame::World()) const
Create a new SimpleFrame with the same world transform, velocity, and acceleration as this one.
Definition: SimpleFrame.cpp:99
void setRelativeRotation(const Eigen::Matrix3d &_newRotation)
Set the relative rotation of this SimpleFrame.
Definition: SimpleFrame.cpp:174
std::string mName
Name of this SimpleFrame.
Definition: SimpleFrame.hpp:216
void copy(const Frame &_otherFrame, Frame *_refFrame=Frame::World(), bool _copyProperties=true)
Make the world transform, world velocity, and world acceleration of this SimpleFrame match another Fr...
Definition: SimpleFrame.cpp:105
const Eigen::Vector6d & getRelativeSpatialAcceleration() const override
Get the spatial acceleration of this Frame relative to its parent Frame, in the coordinates of this F...
Definition: SimpleFrame.cpp:258
Eigen::Isometry3d mRelativeTf
Relative transform of the SimpleFrame.
Definition: SimpleFrame.hpp:219
void setRelativeSpatialVelocity(const Eigen::Vector6d &_newSpatialVelocity)
Set the spatial velocity of this SimpleFrame relative to its parent Frame.
Definition: SimpleFrame.cpp:212
void setClassicDerivatives(const Eigen::Vector3d &_linearVelocity=Eigen::Vector3d::Zero(), const Eigen::Vector3d &_angularVelocity=Eigen::Vector3d::Zero(), const Eigen::Vector3d &_linearAcceleration=Eigen::Vector3d::Zero(), const Eigen::Vector3d &_angularAcceleration=Eigen::Vector3d::Zero())
Set the relative velocity and acceleration of this Frame according to classical (non-spatial) relativ...
Definition: SimpleFrame.cpp:278
Eigen::Vector6d mRelativeAcceleration
Relative spatial acceleration of the SimpleFrame.
Definition: SimpleFrame.hpp:225
void setRelativeTransform(const Eigen::Isometry3d &_newRelTransform)
Set the relative transform of this SimpleFrame.
Definition: SimpleFrame.cpp:159
const Eigen::Vector6d & getPrimaryRelativeAcceleration() const override
The Featherstone ABI algorithm exploits a component of the spatial acceleration which we refer to as ...
Definition: SimpleFrame.cpp:264
Eigen::Vector6d mPartialAcceleration
Partial Acceleration of this Frame.
Definition: SimpleFrame.hpp:228
virtual ~SimpleFrame()
Destructor.
Definition: SimpleFrame.cpp:72
const std::string & getName() const override
Return the name of this Entity.
Definition: SimpleFrame.cpp:93
void setTransform(const Eigen::Isometry3d &_newTransform, const Frame *_withRespectTo=Frame::World())
Set the transform of this SimpleFrame so that its transform with respect to Frame _withRespectTo is e...
Definition: SimpleFrame.cpp:181
std::shared_ptr< SimpleFrame > spawnChildSimpleFrame(const std::string &name="SimpleFrame", const Eigen::Isometry3d &relativeTransform=Eigen::Isometry3d::Identity())
Spawn a child SimpleFrame to this SimpleFrame.
Definition: SimpleFrame.cpp:152
const Eigen::Vector6d & getRelativeSpatialVelocity() const override
Get the spatial velocity of this Frame relative to its parent Frame, in its own coordinates.
Definition: SimpleFrame.cpp:231
const Eigen::Isometry3d & getRelativeTransform() const override
Get the transform of this Frame with respect to its parent Frame.
Definition: SimpleFrame.cpp:206
void setRelativeSpatialAcceleration(const Eigen::Vector6d &_newSpatialAcceleration)
Set the spatial acceleration of this SimpleFrame relative to its parent Frame.
Definition: SimpleFrame.cpp:237
SimpleFrame(Frame *_refFrame, const std::string &_name="simple_frame", const Eigen::Isometry3d &_relativeTransform=Eigen::Isometry3d::Identity())
Constructor.
Definition: SimpleFrame.cpp:41
void setRotation(const Eigen::Matrix3d &_newRotation, const Frame *_withRespectTo=Frame::World())
Set the rotation of this SimpleFrame so that its rotation with respect to Frame _withRespectTo is equ...
Definition: SimpleFrame.cpp:197
const std::string & setName(const std::string &_name) override
Set name.
Definition: SimpleFrame.cpp:78
void setTranslation(const Eigen::Vector3d &_newTranslation, const Frame *_withRespectTo=Frame::World())
Set the translation of this SimpleFrame so that its translation with respect to Frame _withRespectTo ...
Definition: SimpleFrame.cpp:189
const Eigen::Vector6d & getPartialAcceleration() const override
The Featherstone ABI algorithm exploits a component of the spatial acceleration which we refer to as ...
Definition: SimpleFrame.cpp:270
SimpleFrame & operator=(const SimpleFrame &_otherFrame)
Same as copy(const Frame&) except the parent frame of this SimpleFrame is left the same,...
Definition: SimpleFrame.cpp:145
void setRelativeTranslation(const Eigen::Vector3d &_newTranslation)
Set the relative translation of this SimpleFrame.
Definition: SimpleFrame.cpp:167
Eigen::Vector6d mRelativeVelocity
Relative spatial velocity of the SimpleFrame.
Definition: SimpleFrame.hpp:222
Matrix< double, 6, 1 > Vector6d
Definition: MathTypes.hpp:49
Definition: BulletCollisionDetector.cpp:63