gz/sim/Joint.hh
Go to the documentation of this file.
The EntityComponentManager constructs, deletes, and returns components and entities....
Definition: gz/sim/EntityComponentManager.hh:67
This class provides wrappers around entities and components which are more convenient and straight-fo...
Definition: gz/sim/Joint.hh:68
std::optional< std::vector< msgs::Wrench > > TransmittedWrench(const EntityComponentManager &_ecm) const
Get the transmitted wrench of the joint.
void EnableTransmittedWrenchCheck(EntityComponentManager &_ecm, bool _enable=true) const
By default, Gazebo will not report transmitted wrench for a joint, so functions like TransmittedWrenc...
void EnableVelocityCheck(EntityComponentManager &_ecm, bool _enable=true) const
By default, Gazebo will not report velocities for a joint, so functions like Velocity will return nul...
void SetForce(EntityComponentManager &_ecm, const std::vector< double > &_forces)
Set force on this joint. If both forces and velocities are set, only forces are applied.
uint64_t SensorCount(const EntityComponentManager &_ecm) const
Get the number of sensors which are immediate children of this joint.
std::optional< std::vector< math::Vector2d > > PositionLimits(const EntityComponentManager &_ecm) const
Get joint position limits.
std::optional< math::Pose3d > Pose(const EntityComponentManager &_ecm) const
Get the pose of the joint.
void SetVelocityLimits(EntityComponentManager &_ecm, const std::vector< math::Vector2d > &_limits)
Set the velocity limits on a joint axis.
std::optional< Model > ParentModel(const EntityComponentManager &_ecm) const
Get the parent model.
std::optional< std::string > ParentLinkName(const EntityComponentManager &_ecm) const
Get the parent link name.
std::optional< std::string > ChildLinkName(const EntityComponentManager &_ecm) const
Get the child link name.
std::optional< sdf::JointType > Type(const EntityComponentManager &_ecm) const
Get the joint type.
gazebo::Entity SensorByName(const EntityComponentManager &_ecm, const std::string &_name) const
Get the ID of a sensor entity which is an immediate child of this joint.
std::vector< gazebo::Entity > Sensors(const EntityComponentManager &_ecm) const
Get all sensors which are immediate children of this joint.
void SetEffortLimits(EntityComponentManager &_ecm, const std::vector< math::Vector2d > &_limits)
Set the effort limits on a joint axis.
std::optional< std::vector< double > > Velocity(const EntityComponentManager &_ecm) const
Get the velocity of the joint.
std::optional< std::string > Name(const EntityComponentManager &_ecm) const
Get the joint's unscoped name.
void ResetEntity(gazebo::Entity _newEntity)
Reset Entity to a new one.
void EnablePositionCheck(EntityComponentManager &_ecm, bool _enable=true) const
By default, Gazebo will not report positions for a joint, so functions like Position will return null...
void SetVelocity(EntityComponentManager &_ecm, const std::vector< double > &_velocities)
Set velocity on this joint. Only applied if no forces are set.
bool Valid(const EntityComponentManager &_ecm) const
Check whether this joint correctly refers to an entity that has a components::Joint.
std::optional< std::vector< double > > EffortLimits(const EntityComponentManager &_ecm) const
Get joint effort limits.
void ResetVelocity(EntityComponentManager &_ecm, const std::vector< double > &_velocities)
Reset the joint velocities.
std::optional< std::vector< double > > MaxVelocityLimits(const EntityComponentManager &_ecm) const
Get joint velocity limits.
gazebo::Entity Entity() const
Get the entity which this Joint is related to.
std::optional< std::vector< sdf::JointAxis > > Axis(const EntityComponentManager &_ecm) const
Get the joint axis.
void SetPositionLimits(EntityComponentManager &_ecm, const std::vector< math::Vector2d > &_limits)
Set the position limits on a joint axis.
std::optional< std::vector< double > > Position(const EntityComponentManager &_ecm) const
Get the position of the joint.
std::optional< double > ThreadPitch(const EntityComponentManager &_ecm) const
Get the thread pitch of the joint.
void ResetPosition(EntityComponentManager &_ecm, const std::vector< double > &_positions)
Reset the joint positions.
const Entity kNullEntity
Indicates a non-existant or invalid Entity.
Definition: gz/sim/Entity.hh:61
uint64_t Entity
An Entity identifies a single object in simulation such as a model, link, or light....
Definition: gz/sim/Entity.hh:58