33 #ifndef DART_DYNAMICS_ENTITY_HPP_ 34 #define DART_DYNAMICS_ENTITY_HPP_ 40 #include "dart/common/Composite.hpp" 41 #include "dart/common/Signal.hpp" 42 #include "dart/common/Subject.hpp" 43 #include "dart/dynamics/Shape.hpp" 44 #include "dart/dynamics/SmartPointer.hpp" 59 DART_DECLARE_CLASS_WITH_VIRTUAL_BASE_BEGIN
69 const Entity*,
const std::string& _oldName,
const std::string& _newName)>;
85 virtual const std::string&
setName(
const std::string& _name) = 0;
88 virtual const std::string&
getName()
const = 0;
232 DART_DECLARE_CLASS_WITH_VIRTUAL_BASE_END
236 DART_DECLARE_CLASS_WITH_VIRTUAL_BASE_BEGIN
244 virtual void setParentFrame(
Frame* _newParentFrame);
251 DART_DECLARE_CLASS_WITH_VIRTUAL_BASE_END
256 #endif // DART_DYNAMICS_ENTITY_HPP_ bool mNeedAccelerationUpdate
Does this Entity need an Acceleration update.
Definition: Entity.hpp:187
The Subject class is a base class for any object that wants to report when it gets destroyed...
Definition: Subject.hpp:57
EntitySignal mAccelerationChangedSignal
Acceleration changed signal.
Definition: Entity.hpp:203
Entity()
Default constructor, delegates to Entity(ConstructAbstract_t)
Definition: Entity.cpp:69
EntitySignal mTransformUpdatedSignal
Transform changed signal.
Definition: Entity.hpp:197
virtual ~Entity()
Destructor.
Definition: Entity.cpp:75
The Frame class serves as the backbone of DART's kinematic tree structure.
Definition: Frame.hpp:57
virtual void notifyVelocityUpdate()
Notify the velocity update of this Entity that its parent Frame's velocity is needed.
Definition: Entity.cpp:153
virtual void changeParentFrame(Frame *_newParentFrame)
Used by derived classes to change their parent frames.
Definition: Entity.cpp:233
virtual void dirtyVelocity()
Notify the velocity update of this Entity that its parent Frame's velocity is needed.
Definition: Entity.cpp:159
bool isQuiet() const
Returns true if this Entity is set to be quiet.
Definition: Entity.cpp:119
Entity class is a base class for any objects that exist in the kinematic tree structure of DART...
Definition: Entity.hpp:60
ConstructAbstractTag
Used when constructing a pure abstract class, because calling the Entity constructor is just a formal...
Definition: Entity.hpp:164
bool mNeedVelocityUpdate
Does this Entity need a Velocity update.
Definition: Entity.hpp:183
common::SlotRegister< FrameChangedSignal > onFrameChanged
Slot register for frame changed signal.
Definition: Entity.hpp:211
virtual void dirtyAcceleration()
Notify the acceleration of this Entity that its parent Frame's acceleration is needed.
Definition: Entity.cpp:181
bool needsVelocityUpdate() const
Returns true iff a velocity update is needed for this Entity.
Definition: Entity.cpp:169
virtual void dirtyTransform()
Notify the transformation update of this Entity that its parent Frame's pose is needed.
Definition: Entity.cpp:137
bool descendsFrom(const Frame *_someFrame) const
Returns true if and only if this Entity is itself (i.e.
Definition: Entity.cpp:93
common::SlotRegister< EntitySignal > onTransformUpdated
Slot register for transform updated signal.
Definition: Entity.hpp:217
Definition: Aspect.cpp:40
virtual const std::string & getName() const =0
Return the name of this Entity.
virtual void notifyTransformUpdate()
Notify the transformation update of this Entity that its parent Frame's pose is needed.
Definition: Entity.cpp:131
Frame * getParentFrame()
Get the parent (reference) frame of this Entity.
Definition: Entity.cpp:81
EntitySignal mVelocityChangedSignal
Velocity changed signal.
Definition: Entity.hpp:200
bool needsAccelerationUpdate() const
Returns true iff an acceleration update is needed for this Entity.
Definition: Entity.cpp:191
virtual const std::string & setName(const std::string &_name)=0
Set name.
ConstructFrameTag
Used when constructing a Frame class, because the Frame constructor will take care of setting up the ...
Definition: Entity.hpp:155
common::SlotRegister< NameChangedSignal > onNameChanged
Slot register for name changed signal.
Definition: Entity.hpp:214
bool needsTransformUpdate() const
Returns true iff a transform update is needed for this Entity.
Definition: Entity.cpp:147
common::SlotRegister< EntitySignal > onAccelerationChanged
Slot register for acceleration updated signal.
Definition: Entity.hpp:223
bool isFrame() const
True iff this Entity is also a Frame.
Definition: Entity.cpp:125
FrameChangedSignal mFrameChangedSignal
Frame changed signal.
Definition: Entity.hpp:191
SlotRegister can be used as a public member for connecting slots to a private Signal member...
Definition: Signal.hpp:228
bool mNeedTransformUpdate
Does this Entity need a Transform update.
Definition: Entity.hpp:179
Frame * mParentFrame
Parent frame of this Entity.
Definition: Entity.hpp:176
common::SlotRegister< EntitySignal > onVelocityChanged
Slot register for velocity updated signal.
Definition: Entity.hpp:220
NameChangedSignal mNameChangedSignal
Name changed signal.
Definition: Entity.hpp:194
virtual void notifyAccelerationUpdate()
Notify the acceleration of this Entity that its parent Frame's acceleration is needed.
Definition: Entity.cpp:175
The Detachable class is a special case of the Entity base class.
Definition: Entity.hpp:237