Base class for all physics objects in Gazebo. More...
#include <Entity.hh>

Public Member Functions | |
| Entity (BasePtr parent) | |
| Constructor. | |
| virtual | ~Entity () |
| Destructor. | |
| virtual void | Load (sdf::ElementPtr &_sdf) |
| Load. | |
| virtual void | Fini () |
| Finalize the entity. | |
| virtual void | Reset () |
| virtual void | UpdateParameters (sdf::ElementPtr &_sdf) |
| Update the parameters using new sdf values. | |
| virtual void | SetName (const std::string &name) |
| Set the name of the entity. | |
| void | SetStatic (const bool &s) |
| Set whether this entity is static: immovable. | |
| bool | IsStatic () const |
| Return whether this entity is static. | |
| void | SetInitialRelativePose (const math::Pose &p) |
| Set the initial pose. | |
| virtual math::Box | GetBoundingBox () const |
| Return the bounding box for the entity. | |
| const math::Pose & | GetWorldPose () const |
| Get the absolute pose of the entity. | |
| math::Pose | GetRelativePose () const |
| Get the pose of the entity relative to its parent. | |
| void | SetRelativePose (const math::Pose &pose, bool notify=true) |
| Set the pose of the entity relative to its parent. | |
| void | SetWorldPose (const math::Pose &pose, bool notify=true) |
| Set the world pose of the entity. | |
| virtual math::Vector3 | GetRelativeLinearVel () const |
| Get the linear velocity of the entity. | |
| virtual math::Vector3 | GetWorldLinearVel () const |
| Get the linear velocity of the entity in the world frame. | |
| virtual math::Vector3 | GetRelativeAngularVel () const |
| Get the angular velocity of the entity. | |
| virtual math::Vector3 | GetWorldAngularVel () const |
| Get the angular velocity of the entity in the world frame. | |
| virtual math::Vector3 | GetRelativeLinearAccel () const |
| Get the linear acceleration of the entity. | |
| virtual math::Vector3 | GetWorldLinearAccel () const |
| Get the linear acceleration of the entity in the world frame. | |
| virtual math::Vector3 | GetRelativeAngularAccel () const |
| Get the angular acceleration of the entity. | |
| virtual math::Vector3 | GetWorldAngularAccel () const |
| Get the angular acceleration of the entity in the world frame. | |
| void | SetCanonicalLink (bool _value) |
| Set to true if this entity is a canonical link for a model. | |
| bool | IsCanonicalLink () const |
| A helper function that checks if this is a canonical body. | |
| void | SetAnimation (const common::PoseAnimationPtr &_anim, boost::function< void()> _onComplete) |
| Set an animation for this entity. | |
| void | SetAnimation (const common::PoseAnimationPtr &_anim) |
| ModelPtr | GetParentModel () |
| Get the parent model, if one exists. | |
| CollisionPtr | GetChildCollision (const std::string &_name) |
| Get a child collision entity, if one exists. | |
| LinkPtr | GetChildLink (const std::string &_name) |
| Get a child linke entity, if one exists. | |
| void | GetNearestEntityBelow (double &_distBelow, std::string &_entityName) |
| Get the distance to the nearest entity below (along the Z-axis) this entity. | |
| void | PlaceOnNearestEntityBelow () |
| Move this entity to be ontop of the nearest entity below. | |
| math::Box | GetCollisionBoundingBox () const |
| void | SetWorldTwist (const math::Vector3 &linear, const math::Vector3 &angular, bool updateChildren=true) |
| const math::Pose & | GetDirtyPose () const |
Protected Member Functions | |
| virtual void | OnPoseChange ()=0 |
| This function is called when the entity's (or one of its parents) pose of the parent has changed. | |
Protected Attributes | |
| EntityPtr | parentEntity |
| A helper that prevents numerous dynamic_casts. | |
| transport::NodePtr | node |
| transport::PublisherPtr | visPub |
| transport::PublisherPtr | requestPub |
| msgs::Visual * | visualMsg |
| msgs::Pose * | poseMsg |
| common::PoseAnimationPtr | animation |
| common::Time | prevAnimationTime |
| math::Pose | animationStartPose |
| std::vector< event::ConnectionPtr > | connections |
| event::ConnectionPtr | animationConnection |
| math::Pose | dirtyPose |
Base class for all physics objects in Gazebo.
| Entity | ( | BasePtr | parent | ) |
Constructor.
| parent | Parent of the entity. |
| void GetNearestEntityBelow | ( | double & | _distBelow, |
| std::string & | _entityName | ||
| ) |
Get the distance to the nearest entity below (along the Z-axis) this entity.
| _distBelow | The distance to the nearest entity below |
| _entityName | The name of the nearest entity below |
| ModelPtr GetParentModel | ( | ) |
Get the parent model, if one exists.
| virtual math::Vector3 GetRelativeAngularAccel | ( | ) | const [inline, virtual] |
Get the angular acceleration of the entity.
| virtual math::Vector3 GetRelativeAngularVel | ( | ) | const [inline, virtual] |
Get the angular velocity of the entity.
| virtual math::Vector3 GetRelativeLinearAccel | ( | ) | const [inline, virtual] |
Get the linear acceleration of the entity.
| virtual math::Vector3 GetRelativeLinearVel | ( | ) | const [inline, virtual] |
Get the linear velocity of the entity.
| virtual math::Vector3 GetWorldAngularAccel | ( | ) | const [inline, virtual] |
Get the angular acceleration of the entity in the world frame.
| virtual math::Vector3 GetWorldAngularVel | ( | ) | const [inline, virtual] |
Get the angular velocity of the entity in the world frame.
| virtual math::Vector3 GetWorldLinearAccel | ( | ) | const [inline, virtual] |
Get the linear acceleration of the entity in the world frame.
| virtual math::Vector3 GetWorldLinearVel | ( | ) | const [inline, virtual] |
Get the linear velocity of the entity in the world frame.
| bool IsStatic | ( | ) | const |
Return whether this entity is static.
| virtual void Load | ( | sdf::ElementPtr & | _sdf | ) | [virtual] |
| void SetCanonicalLink | ( | bool | _value | ) |
Set to true if this entity is a canonical link for a model.
| _value | True if the link is canonical. |
| void SetInitialRelativePose | ( | const math::Pose & | p | ) |
Set the initial pose.
| p | The initial pose |
| virtual void SetName | ( | const std::string & | name | ) | [virtual] |
| void SetRelativePose | ( | const math::Pose & | pose, |
| bool | notify = true |
||
| ) |
Set the pose of the entity relative to its parent.
| pose | The new pose |
| notify | True = tell children of the pose change |
| void SetStatic | ( | const bool & | s | ) |
Set whether this entity is static: immovable.
| s | Bool, true = static |
| void SetWorldPose | ( | const math::Pose & | pose, |
| bool | notify = true |
||
| ) |
Set the world pose of the entity.
| pose | The new world pose |
| notify | True = tell children of the pose change |
1.7.5.1