33 #ifndef DART_DYNAMICS_ENTITY_HPP_
34 #define DART_DYNAMICS_ENTITY_HPP_
67 const Frame* _oldFrame,
68 const Frame* _newFrame)>;
71 const std::string& _oldName,
72 const std::string& _newName)>;
88 virtual const std::string&
setName(
const std::string& _name) = 0;
91 virtual const std::string&
getName()
const = 0;
#define DART_DEPRECATED(version)
Definition: Deprecated.hpp:51
SlotRegister can be used as a public member for connecting slots to a private Signal member.
Definition: Signal.hpp:214
The Subject class is a base class for any object that wants to report when it gets destroyed.
Definition: Subject.hpp:58
The Detachable class is a special case of the Entity base class.
Definition: Entity.hpp:233
Detachable()
Constructor for inheriting classes, so they do not need to fill in the arguments.
Definition: Entity.cpp:285
virtual void setParentFrame(Frame *_newParentFrame)
Allows the user to change the parent Frame of this Entity.
Definition: Entity.cpp:279
Entity class is a base class for any objects that exist in the kinematic tree structure of DART.
Definition: Entity.hpp:60
Frame * getParentFrame()
Get the parent (reference) frame of this Entity.
Definition: Entity.cpp:82
virtual void dirtyVelocity()
Notify the velocity update of this Entity that its parent Frame's velocity is needed.
Definition: Entity.cpp:160
EntitySignal mAccelerationChangedSignal
Acceleration changed signal.
Definition: Entity.hpp:200
bool isFrame() const
True iff this Entity is also a Frame.
Definition: Entity.cpp:126
virtual const std::string & setName(const std::string &_name)=0
Set name.
bool mAmFrame
Whether or not this Entity is a Frame.
Definition: Entity.hpp:227
Entity()
Default constructor, delegates to Entity(ConstructAbstract_t)
Definition: Entity.cpp:69
ConstructFrameTag
Used when constructing a Frame class, because the Frame constructor will take care of setting up the ...
Definition: Entity.hpp:157
@ ConstructFrame
Definition: Entity.hpp:157
bool descendsFrom(const Frame *_someFrame) const
True if and only if this Entity depends on (i.e.
Definition: Entity.cpp:94
FrameChangedSignal mFrameChangedSignal
Frame changed signal.
Definition: Entity.hpp:188
const bool mAmQuiet
Whether or not this Entity is set to be quiet.
Definition: Entity.hpp:224
Frame * mParentFrame
Parent frame of this Entity.
Definition: Entity.hpp:173
virtual void notifyAccelerationUpdate()
Notify the acceleration of this Entity that its parent Frame's acceleration is needed.
Definition: Entity.cpp:176
virtual void changeParentFrame(Frame *_newParentFrame)
Used by derived classes to change their parent frames.
Definition: Entity.cpp:234
EntitySignal mTransformUpdatedSignal
Transform changed signal.
Definition: Entity.hpp:194
virtual ~Entity()
Destructor.
Definition: Entity.cpp:76
bool needsAccelerationUpdate() const
Returns true iff an acceleration update is needed for this Entity.
Definition: Entity.cpp:192
common::SlotRegister< EntitySignal > onVelocityChanged
Slot register for velocity updated signal.
Definition: Entity.hpp:217
virtual void dirtyAcceleration()
Notify the acceleration of this Entity that its parent Frame's acceleration is needed.
Definition: Entity.cpp:182
virtual const std::string & getName() const =0
Return the name of this Entity.
EntitySignal mVelocityChangedSignal
Velocity changed signal.
Definition: Entity.hpp:197
common::SlotRegister< FrameChangedSignal > onFrameChanged
Slot register for frame changed signal.
Definition: Entity.hpp:208
bool mNeedAccelerationUpdate
Does this Entity need an Acceleration update.
Definition: Entity.hpp:184
bool needsVelocityUpdate() const
Returns true iff a velocity update is needed for this Entity.
Definition: Entity.cpp:170
NameChangedSignal mNameChangedSignal
Name changed signal.
Definition: Entity.hpp:191
virtual void notifyVelocityUpdate()
Notify the velocity update of this Entity that its parent Frame's velocity is needed.
Definition: Entity.cpp:154
common::SlotRegister< EntitySignal > onTransformUpdated
Slot register for transform updated signal.
Definition: Entity.hpp:214
virtual void notifyTransformUpdate()
Notify the transformation update of this Entity that its parent Frame's pose is needed.
Definition: Entity.cpp:132
ConstructAbstractTag
Used when constructing a pure abstract class, because calling the Entity constructor is just a formal...
Definition: Entity.hpp:163
@ ConstructAbstract
Definition: Entity.hpp:163
bool mNeedTransformUpdate
Does this Entity need a Transform update.
Definition: Entity.hpp:176
Entity(const Entity &)=delete
bool isQuiet() const
Returns true if this Entity is set to be quiet.
Definition: Entity.cpp:120
bool mNeedVelocityUpdate
Does this Entity need a Velocity update.
Definition: Entity.hpp:180
common::SlotRegister< NameChangedSignal > onNameChanged
Slot register for name changed signal.
Definition: Entity.hpp:211
virtual void dirtyTransform()
Notify the transformation update of this Entity that its parent Frame's pose is needed.
Definition: Entity.cpp:138
common::SlotRegister< EntitySignal > onAccelerationChanged
Slot register for acceleration updated signal.
Definition: Entity.hpp:220
bool needsTransformUpdate() const
Returns true iff a transform update is needed for this Entity.
Definition: Entity.cpp:148
The Frame class serves as the backbone of DART's kinematic tree structure.
Definition: Frame.hpp:57
Definition: BulletCollisionDetector.cpp:63