|
| DARTLink (EntityPtr _parent) |
| Constructor. More...
|
|
virtual | ~DARTLink () |
| Destructor. More...
|
|
void | AddDARTChildJoint (DARTJointPtr _dartChildJoint) |
| Set child joint of this link. More...
|
|
virtual void | AddForce (const math::Vector3 &_force) |
| Add a force to the body. More...
|
|
virtual void | AddForceAtRelativePosition (const math::Vector3 &_force, const math::Vector3 &_relpos) |
| Add a force to the body at position expressed to the body's own frame of reference. More...
|
|
virtual void | AddForceAtWorldPosition (const math::Vector3 &_force, const math::Vector3 &_pos) |
| Add a force to the body using a global position. More...
|
|
virtual void | AddRelativeForce (const math::Vector3 &_force) |
| Add a force to the body, components are relative to the body's own frame of reference. More...
|
|
virtual void | AddRelativeTorque (const math::Vector3 &_torque) |
| Add a torque to the body, components are relative to the body's own frame of reference. More...
|
|
virtual void | AddTorque (const math::Vector3 &_torque) |
| Add a torque to the body. More...
|
|
virtual void | Fini () |
| Finalize the entity. More...
|
|
dart::dynamics::BodyNode * | GetDARTBodyNode () const |
| Get pointer to DART BodyNode associated with this link. More...
|
|
DARTModelPtr | GetDARTModel () const |
| Get pointer to DART Model associated with this link. More...
|
|
DARTPhysicsPtr | GetDARTPhysics (void) const |
| Get pointer to DART Physics engine associated with this link. More...
|
|
dart::simulation::World * | GetDARTWorld (void) const |
| Get pointer to DART World associated with this link. More...
|
|
virtual bool | GetEnabled () const |
| Get whether this body is enabled in the physics engine. More...
|
|
virtual bool | GetGravityMode () const |
| Get the gravity mode. More...
|
|
virtual bool | GetKinematic () const |
| Implement this function. More...
|
|
virtual math::Vector3 | GetWorldAngularVel () const |
| Get the angular velocity of the entity in the world frame. More...
|
|
virtual math::Vector3 | GetWorldCoGLinearVel () const |
| Get the linear velocity at the body's center of gravity in the world frame. More...
|
|
virtual math::Vector3 | GetWorldForce () const |
| Get the force applied to the body in the world frame. More...
|
|
virtual math::Vector3 | GetWorldLinearVel (const math::Vector3 &_offset=math::Vector3(0, 0, 0)) const |
| Get the linear velocity of a point on the body in the world frame, using an offset expressed in a body-fixed frame. More...
|
|
virtual math::Vector3 | GetWorldLinearVel (const math::Vector3 &_offset, const math::Quaternion &_q) const |
| Get the linear velocity of a point on the body in the world frame, using an offset expressed in an arbitrary frame. More...
|
|
virtual math::Vector3 | GetWorldTorque () const |
| Get the torque applied to the body in the world frame. More...
|
|
virtual void | Init () |
| Initialize the body. More...
|
|
virtual void | Load (sdf::ElementPtr _ptr) |
| Load the body based on an SDF element. More...
|
|
virtual void | OnPoseChange () |
| This function is called when the entity's (or one of its parents) pose of the parent has changed. More...
|
|
virtual void | SetAngularDamping (double _damping) |
| Set the angular damping factor. More...
|
|
virtual void | SetAngularVel (const math::Vector3 &_vel) |
| Set the angular velocity of the body. More...
|
|
virtual void | SetAutoDisable (bool _disable) |
| Allow the link to auto disable. More...
|
|
void | SetDARTParentJoint (DARTJointPtr _dartParentJoint) |
| Set parent joint of this link. More...
|
|
virtual void | SetEnabled (bool _enable) const |
| Set whether this body is enabled. More...
|
|
virtual void | SetForce (const math::Vector3 &_force) |
| Set the force applied to the body. More...
|
|
virtual void | SetGravityMode (bool _mode) |
| Set whether gravity affects this body. More...
|
|
virtual void | SetKinematic (const bool &_state) |
| Implement this function. More...
|
|
virtual void | SetLinearDamping (double _damping) |
| Set the linear damping factor. More...
|
|
virtual void | SetLinearVel (const math::Vector3 &_vel) |
| Set the linear velocity of the body. More...
|
|
virtual void | SetLinkStatic (bool _static) |
| Freeze link to ground (inertial frame). More...
|
|
virtual void | SetSelfCollide (bool _collide) |
| Set whether this body will collide with others in the model. More...
|
|
virtual void | SetTorque (const math::Vector3 &_torque) |
| Set the torque applied to the body. More...
|
|
void | updateDirtyPoseFromDARTTransformation () |
| Store DART Transformation to Entity::dirtyPose and add this link to World::dirtyPoses so that World::Update() trigger Entity::SetWorldPose() for this link. More...
|
|
| Link (EntityPtr _parent) |
| Constructor. More...
|
|
virtual | ~Link () |
| Destructor. More...
|
|
void | AddChildJoint (JointPtr _joint) |
| Joints that have this Link as a parent Link. More...
|
|
void | AddParentJoint (JointPtr _joint) |
| Joints that have this Link as a child Link. More...
|
|
void | AttachStaticModel (ModelPtr &_model, const math::Pose &_offset) |
| Attach a static model to this link. More...
|
|
template<typename T > |
event::ConnectionPtr | ConnectEnabled (T _subscriber) |
| Connect to the add entity signal. More...
|
|
void | DetachAllStaticModels () |
| Detach all static models from this link. More...
|
|
void | DetachStaticModel (const std::string &_modelName) |
| Detach a static model from this link. More...
|
|
void | DisconnectEnabled (event::ConnectionPtr &_conn) |
| Disconnect to the add entity signal. More...
|
|
void | FillMsg (msgs::Link &_msg) |
| Fill a link message. More...
|
|
bool | FindAllConnectedLinksHelper (const LinkPtr &_originalParentLink, Link_V &_connectedLinks, bool _fistLink=false) |
| Helper function to find all connected links of a link based on parent/child relations of joints. More...
|
|
void | Fini () |
| Finalize the body. More...
|
|
double | GetAngularDamping () const |
| Get the angular damping factor. More...
|
|
virtual math::Box | GetBoundingBox () const |
| Get the bounding box for the link and all the child elements. More...
|
|
Joint_V | GetChildJoints () const |
| Get the child joints. More...
|
|
Link_V | GetChildJointsLinks () const |
| Returns a vector of children Links connected by joints. More...
|
|
CollisionPtr | GetCollision (const std::string &_name) |
| Get a child collision by name. More...
|
|
CollisionPtr | GetCollision (unsigned int _index) const |
| Get a child collision by index. More...
|
|
Collision_V | GetCollisions () const |
| Get all the child collisions. More...
|
|
InertialPtr | GetInertial () const |
| Get the inertia of the link. More...
|
|
double | GetLinearDamping () const |
| Get the linear damping factor. More...
|
|
ModelPtr | GetModel () const |
| Get the model that this body belongs to. More...
|
|
Joint_V | GetParentJoints () const |
| Get the parent joints. More...
|
|
Link_V | GetParentJointsLinks () const |
| Returns a vector of parent Links connected by joints. More...
|
|
math::Vector3 | GetRelativeAngularAccel () const |
| Get the angular acceleration of the body. More...
|
|
math::Vector3 | GetRelativeAngularVel () const |
| Get the angular velocity of the body. More...
|
|
math::Vector3 | GetRelativeForce () const |
| Get the force applied to the body. More...
|
|
math::Vector3 | GetRelativeLinearAccel () const |
| Get the linear acceleration of the body. More...
|
|
math::Vector3 | GetRelativeLinearVel () const |
| Get the linear velocity of the body. More...
|
|
math::Vector3 | GetRelativeTorque () const |
| Get the torque applied to the body. More...
|
|
bool | GetSelfCollide () const |
| Get Self-Collision Flag, if this is true, this body will collide with other bodies even if they share the same parent. More...
|
|
unsigned int | GetSensorCount () const |
| Get sensor count. More...
|
|
std::string | GetSensorName (unsigned int _index) const |
| Get sensor name. More...
|
|
msgs::Visual | GetVisualMessage (const std::string &_name) const |
| Returns the visual message specified by its name. More...
|
|
math::Vector3 | GetWorldAngularAccel () const |
| Get the angular acceleration of the body in the world frame. More...
|
|
math::Pose | GetWorldCoGPose () const |
| Get the pose of the body's center of gravity in the world coordinate frame. More...
|
|
double | GetWorldEnergy () const |
| Returns this link's total energy, or sum of Link::GetWorldEnergyPotential() and Link::GetWorldEnergyKinetic(). More...
|
|
double | GetWorldEnergyKinetic () const |
| Returns this link's kinetic energy computed using link's CoG velocity in the inertial (world) frame. More...
|
|
double | GetWorldEnergyPotential () const |
| Returns this link's potential energy, based on position in world frame and gravity. More...
|
|
math::Pose | GetWorldInertialPose () const |
| Get the world pose of the link inertia (cog position and Moment of Inertia frame). More...
|
|
math::Matrix3 | GetWorldInertiaMatrix () const |
| Get the inertia matrix in the world frame. More...
|
|
math::Vector3 | GetWorldLinearAccel () const |
| Get the linear acceleration of the body in the world frame. More...
|
|
virtual math::Vector3 | GetWorldLinearVel () const |
| Get the linear velocity of the origin of the link frame, expressed in the world frame. More...
|
|
void | MoveFrame (const math::Pose &_worldReferenceFrameSrc, const math::Pose &_worldReferenceFrameDst) |
| Move Link given source and target frames specified in world coordinates. More...
|
|
void | ProcessMsg (const msgs::Link &_msg) |
| Update parameters from a message. More...
|
|
virtual void | RemoveChild (EntityPtr _child) |
|
void | RemoveChildJoint (const std::string &_jointName) |
| Remove Joints that have this Link as a parent Link. More...
|
|
void | RemoveCollision (const std::string &_name) |
| Remove a collision from the link. More...
|
|
void | RemoveParentJoint (const std::string &_jointName) |
| Remove Joints that have this Link as a child Link. More...
|
|
void | Reset () |
| Reset the link. More...
|
|
void | ResetPhysicsStates () |
| Reset the link. More...
|
|
void | SetAngularAccel (const math::Vector3 &_accel) |
| Set the angular acceleration of the body. More...
|
|
void | SetCollideMode (const std::string &_mode) |
| Set the collide mode of the body. More...
|
|
void | SetInertial (const InertialPtr &_inertial) |
| Set the mass of the link. More...
|
|
void | SetLaserRetro (float _retro) |
| Set the laser retro reflectiveness. More...
|
|
void | SetLinearAccel (const math::Vector3 &_accel) |
| Set the linear acceleration of the body. More...
|
|
void | SetPublishData (bool _enable) |
| Enable/Disable link data publishing. More...
|
|
void | SetScale (const math::Vector3 &_scale) |
| Set the scale of the link. More...
|
|
virtual bool | SetSelected (bool _set) |
| Set whether this entity has been selected by the user through the gui. More...
|
|
void | SetState (const LinkState &_state) |
| Set the current link state. More...
|
|
void | Update (const common::UpdateInfo &_info) |
| Update the collision. More...
|
|
virtual void | UpdateMass () |
| Update the mass matrix. More...
|
|
virtual void | UpdateParameters (sdf::ElementPtr _sdf) |
| Update the parameters using new sdf values. More...
|
|
virtual void | UpdateSurface () |
| Update surface parameters. More...
|
|
| Entity (BasePtr _parent) |
| Constructor. More...
|
|
virtual | ~Entity () |
| Destructor. More...
|
|
CollisionPtr | GetChildCollision (const std::string &_name) |
| Get a child collision entity, if one exists. More...
|
|
LinkPtr | GetChildLink (const std::string &_name) |
| Get a child linke entity, if one exists. More...
|
|
math::Box | GetCollisionBoundingBox () const |
| Returns collision bounding box. More...
|
|
const math::Pose & | GetDirtyPose () const |
| Returns Entity::dirtyPose. More...
|
|
math::Pose | GetInitialRelativePose () const |
| Get the initial relative pose. More...
|
|
void | GetNearestEntityBelow (double &_distBelow, std::string &_entityName) |
| Get the distance to the nearest entity below (along the Z-axis) this entity. More...
|
|
ModelPtr | GetParentModel () |
| Get the parent model, if one exists. More...
|
|
math::Pose | GetRelativePose () const |
| Get the pose of the entity relative to its parent. More...
|
|
virtual const math::Pose & | GetWorldPose () const |
| Get the absolute pose of the entity. More...
|
|
bool | IsCanonicalLink () const |
| A helper function that checks if this is a canonical body. More...
|
|
bool | IsStatic () const |
| Return whether this entity is static. More...
|
|
void | PlaceOnEntity (const std::string &_entityName) |
| Move this entity to be ontop of another entity by name. More...
|
|
void | PlaceOnNearestEntityBelow () |
| Move this entity to be ontop of the nearest entity below. More...
|
|
void | SetAnimation (const common::PoseAnimationPtr &_anim, boost::function< void()> _onComplete) |
| Set an animation for this entity. More...
|
|
void | SetAnimation (common::PoseAnimationPtr _anim) |
| Set an animation for this entity. More...
|
|
void | SetCanonicalLink (bool _value) |
| Set to true if this entity is a canonical link for a model. More...
|
|
void | SetInitialRelativePose (const math::Pose &_pose) |
| Set the initial pose. More...
|
|
virtual void | SetName (const std::string &_name) |
| Set the name of the entity. More...
|
|
void | SetRelativePose (const math::Pose &_pose, bool _notify=true, bool _publish=true) |
| Set the pose of the entity relative to its parent. More...
|
|
void | SetStatic (const bool &_static) |
| Set whether this entity is static: immovable. More...
|
|
void | SetWorldPose (const math::Pose &_pose, bool _notify=true, bool _publish=true) |
| Set the world pose of the entity. More...
|
|
void | SetWorldTwist (const math::Vector3 &_linear, const math::Vector3 &_angular, bool _updateChildren=true) |
| Set angular and linear rates of an physics::Entity. More...
|
|
virtual void | StopAnimation () |
| Stop the current animation, if any. More...
|
|
| Base (BasePtr _parent) |
| Constructor. More...
|
|
virtual | ~Base () |
| Destructor. More...
|
|
void | AddChild (BasePtr _child) |
| Add a child to this entity. More...
|
|
void | AddType (EntityType _type) |
| Add a type specifier. More...
|
|
BasePtr | GetByName (const std::string &_name) |
| Get by name. More...
|
|
BasePtr | GetChild (unsigned int _i) const |
| Get a child by index. More...
|
|
BasePtr | GetChild (const std::string &_name) |
| Get a child by name. More...
|
|
unsigned int | GetChildCount () const |
| Get the number of children. More...
|
|
uint32_t | GetId () const |
| Return the ID of this entity. More...
|
|
std::string | GetName () const |
| Return the name of the entity. More...
|
|
BasePtr | GetParent () const |
| Get the parent. More...
|
|
int | GetParentId () const |
| Return the ID of the parent. More...
|
|
bool | GetSaveable () const |
| Get whether the object should be "saved", when the user selects to save the world to xml. More...
|
|
std::string | GetScopedName (bool _prependWorldName=false) const |
| Return the name of this entity with the model scope model1::...::modelN::entityName. More...
|
|
virtual const sdf::ElementPtr | GetSDF () |
| Get the SDF values for the object. More...
|
|
unsigned int | GetType () const |
| Get the full type definition. More...
|
|
const WorldPtr & | GetWorld () const |
| Get the World this object is in. More...
|
|
bool | HasType (const EntityType &_t) const |
| Returns true if this object's type definition has the given type. More...
|
|
bool | IsSelected () const |
| True if the entity is selected by the user. More...
|
|
bool | operator== (const Base &_ent) const |
| Returns true if the entities are the same. More...
|
|
void | Print (const std::string &_prefix) |
| Print this object to screen via gzmsg. More...
|
|
virtual void | RemoveChild (unsigned int _id) |
| Remove a child from this entity. More...
|
|
void | RemoveChild (const std::string &_name) |
| Remove a child by name. More...
|
|
void | RemoveChildren () |
| Remove all children. More...
|
|
virtual void | Reset (Base::EntityType _resetType) |
| Calls recursive Reset on one of the Base::EntityType's. More...
|
|
void | SetParent (BasePtr _parent) |
| Set the parent. More...
|
|
void | SetSaveable (bool _v) |
| Set whether the object should be "saved", when the user selects to save the world to xml. More...
|
|
void | SetWorld (const WorldPtr &_newWorld) |
| Set the world this object belongs to. More...
|
|
virtual void | Update () |
| Update the object. More...
|
|