gz/physics/Joint.hh
Go to the documentation of this file.
Definition: gz/physics/Joint.hh:533
virtual void DetachJoint(const Identity &_jointID)=0
Definition: gz/physics/Joint.hh:526
Definition: gz/physics/Joint.hh:523
Definition: gz/physics/Feature.hh:93
Placeholder class in case a Feature does not define its own Joint API.
Definition: gz/physics/Feature.hh:77
This class defines the concept of a Feature. It should be inherited by classes that define some plugi...
Definition: gz/physics/Feature.hh:36
Container for specifying Frame IDs. We do not want to use a generic integer type for this,...
Definition: gz/physics/FrameID.hh:47
Base class for the API of a Frame. This will be inherited by any objects that are able to express Fra...
Definition: gz/physics/FrameSemantics.hh:101
The implementation API for getting basic joint properties.
Definition: gz/physics/Joint.hh:239
typename FromPolicy< PolicyT >::template Use< Pose > Pose
Definition: gz/physics/Joint.hh:240
virtual Pose GetJointTransformFromParent(const Identity &_id) const =0
virtual std::size_t GetJointDegreesOfFreedom(const Identity &_id) const =0
virtual Pose GetJointTransformToChild(const Identity &_id) const =0
The Joint API for getting basic joint properties.
Definition: gz/physics/Joint.hh:199
std::size_t GetDegreesOfFreedom() const
Get the number of degrees of freedom (a.k.a. number of generalized coordinates) within this joint.
typename FromPolicy< PolicyT >::template Use< Pose > Pose
Definition: gz/physics/Joint.hh:200
Pose GetTransformFromParent() const
Get the transformation matrix from the parent link (or world) to the base of the joint transform....
Pose GetTransformToChild() const
Get the transformation matrix from the tip of the joint transform to the child link....
This feature retrieves the generalized joint properties such as Degrees Of Freedom (DoF),...
Definition: gz/physics/Joint.hh:195
The implementation API for getting basic joint state.
Definition: gz/physics/Joint.hh:85
virtual Scalar GetJointPosition(const Identity &_id, std::size_t _dof) const =0
virtual Scalar GetJointForce(const Identity &_id, std::size_t _dof) const =0
virtual Scalar GetJointAcceleration(const Identity &_id, std::size_t _dof) const =0
typename FromPolicy< PolicyT >::template Use< Pose > Pose
Definition: gz/physics/Joint.hh:87
typename PolicyT::Scalar Scalar
Definition: gz/physics/Joint.hh:86
virtual Pose GetJointTransform(const Identity &_id) const =0
virtual Scalar GetJointVelocity(const Identity &_id, std::size_t _dof) const =0
The Joint API for getting basic joint state.
Definition: gz/physics/Joint.hh:39
Scalar GetVelocity(const std::size_t _dof) const
Get the generalized velocity of a specific generalized coordinate within this joint.
typename FromPolicy< PolicyT >::template Use< Pose > Pose
Definition: gz/physics/Joint.hh:41
typename PolicyT::Scalar Scalar
Definition: gz/physics/Joint.hh:40
Scalar GetAcceleration(const std::size_t _dof) const
Get the generalized acceleration of a specific generalized coordinate within this joint.
Pose GetTransform() const
Get the transformation from the joint's parent to the joint's child produced by the current generaliz...
Scalar GetPosition(const std::size_t _dof) const
Get the generalized position of a specific generalized coordinate within this joint.
Scalar GetForce(const std::size_t _dof) const
Get the generalized force of a specific generalized coordinate within this joint.
This feature retrieves the generalized joint states such as position, velocity, acceleration of the j...
Definition: gz/physics/Joint.hh:35
Definition: gz/physics/Joint.hh:579
virtual Wrench GetJointTransmittedWrenchInJointFrame(const Identity &_jointID) const =0
typename FromPolicy< PolicyT >::template Use< Wrench > Wrench
Definition: gz/physics/Joint.hh:581
Definition: gz/physics/Joint.hh:544
Wrench GetTransmittedWrench(const FrameID &_relativeTo, const FrameID &_inCoordinatesOf) const
Get the transmitted wrench of this joint at the specified reference frame and expressed in the specif...
Wrench GetTransmittedWrench() const
Get the transmitted wrench at the Joint frame.
typename FromPolicy< PolicyT >::template Use< Wrench > Wrench
Definition: gz/physics/Joint.hh:546
Definition: gz/physics/Joint.hh:540
The implementation API for setting basic joint state.
Definition: gz/physics/Joint.hh:167
virtual void SetJointAcceleration(const Identity &_id, std::size_t _dof, Scalar _value)=0
typename PolicyT::Scalar Scalar
Definition: gz/physics/Joint.hh:168
virtual void SetJointPosition(const Identity &_id, std::size_t _dof, Scalar _value)=0
virtual void SetJointForce(const Identity &_id, std::size_t _dof, Scalar _value)=0
virtual void SetJointVelocity(const Identity &_id, std::size_t _dof, Scalar _value)=0
The Joint API for setting basic joint state.
Definition: gz/physics/Joint.hh:119
typename PolicyT::Scalar Scalar
Definition: gz/physics/Joint.hh:120
void SetAcceleration(const std::size_t _dof, const Scalar _value)
Set the generalized acceleration of a specific generalized coordinate within this joint.
void SetVelocity(const std::size_t _dof, const Scalar _value)
Set the generalized velocity of a specific generalized coordinate within this joint.
void SetForce(const std::size_t _dof, const Scalar _value)
Set the generalized force of a specific generalized coordinate within this joint.
void SetPosition(const std::size_t _dof, const Scalar _value)
Set the generalized position of a specific generalized coordinate within this joint.
This feature sets the generalized joint states such as position, velocity, acceleration of the joint ...
Definition: gz/physics/Joint.hh:115
The implementation API for setting effort limit commands.
Definition: gz/physics/Joint.hh:508
virtual void SetJointMaxEffort(const Identity &_id, std::size_t _dof, Scalar _value)=0
typename PolicyT::Scalar Scalar
Definition: gz/physics/Joint.hh:509
virtual void SetJointMinEffort(const Identity &_id, std::size_t _dof, Scalar _value)=0
The Joint API for setting effort limits of a joint. These limits are applied to joints controlled via...
Definition: gz/physics/Joint.hh:483
void SetMinEffort(const std::size_t _dof, const Scalar _value)
Set the minimum value of effort of a specific generalized coordinate within this joint.
typename PolicyT::Scalar Scalar
Definition: gz/physics/Joint.hh:484
void SetMaxEffort(const std::size_t _dof, const Scalar _value)
Set the maximum value of effort of a specific generalized coordinate within this joint.
This feature sets the min and max value of effort of this Joint.
Definition: gz/physics/Joint.hh:477
The implementation API for setting position limit commands.
Definition: gz/physics/Joint.hh:408
typename PolicyT::Scalar Scalar
Definition: gz/physics/Joint.hh:409
virtual void SetJointMinPosition(const Identity &_id, std::size_t _dof, Scalar _value)=0
virtual void SetJointMaxPosition(const Identity &_id, std::size_t _dof, Scalar _value)=0
The Joint API for setting position limits of a joint.
Definition: gz/physics/Joint.hh:379
typename PolicyT::Scalar Scalar
Definition: gz/physics/Joint.hh:380
void SetMinPosition(const std::size_t _dof, const Scalar _value)
Set the minimum allowed value of the generalized coordinate within this joint.
void SetMaxPosition(const std::size_t _dof, const Scalar _value)
Set the maximum allowed value of the generalized coordinate within this joint.
This feature sets the min and max generalized position of this Joint.
Definition: gz/physics/Joint.hh:375
Definition: gz/physics/Joint.hh:283
typename FromPolicy< PolicyT >::template Use< Pose > Pose
Definition: gz/physics/Joint.hh:284
virtual void SetJointTransformFromParent(const Identity &_id, const Pose &_pose)=0
The Joint API for setting the transform from the joint's parent.
Definition: gz/physics/Joint.hh:260
typename FromPolicy< PolicyT >::template Use< Pose > Pose
Definition: gz/physics/Joint.hh:261
void SetTransformFromParent(const Pose &_pose)
Set the transformation matrix from the parent link (or world) to the base of the joint transform....
Definition: gz/physics/Joint.hh:256
The implementation API for setting the transform to the child.
Definition: gz/physics/Joint.hh:321
typename FromPolicy< PolicyT >::template Use< Pose > Pose
Definition: gz/physics/Joint.hh:322
virtual void SetJointTransformToChild(const Identity &_id, const Pose &_pose)=0
The Joint API for setting the transform to the joint's child.
Definition: gz/physics/Joint.hh:299
typename FromPolicy< PolicyT >::template Use< Pose > Pose
Definition: gz/physics/Joint.hh:300
void SetTransformToChild(const Pose &_pose)
Set the transformation matrix from the tip of the joint transform to the child link....
Definition: gz/physics/Joint.hh:295
The implementation API for setting joint velocity commands.
Definition: gz/physics/Joint.hh:361
virtual void SetJointVelocityCommand(const Identity &_id, std::size_t _dof, Scalar _value)=0
typename PolicyT::Scalar Scalar
Definition: gz/physics/Joint.hh:362
The Joint API for setting velocity commands (target velocity). This is different from SetVelocity in ...
Definition: gz/physics/Joint.hh:343
void SetVelocityCommand(const std::size_t _dof, const Scalar _value)
Set the commanded value of generalized velocity of a specific generalized coordinate within this join...
typename PolicyT::Scalar Scalar
Definition: gz/physics/Joint.hh:344
This feature sets the commanded value of generalized velocity of this Joint.
Definition: gz/physics/Joint.hh:335
The implementation API for setting velocity limit commands.
Definition: gz/physics/Joint.hh:460
typename PolicyT::Scalar Scalar
Definition: gz/physics/Joint.hh:461
virtual void SetJointMinVelocity(const Identity &_id, std::size_t _dof, Scalar _value)=0
virtual void SetJointMaxVelocity(const Identity &_id, std::size_t _dof, Scalar _value)=0
The Joint API for setting velocity limits of a joint. These limits apply to joints commanded via velo...
Definition: gz/physics/Joint.hh:431
typename PolicyT::Scalar Scalar
Definition: gz/physics/Joint.hh:432
void SetMinVelocity(const std::size_t _dof, const Scalar _value)
Set the minimum value of generalized velocity of a specific generalized coordinate within this joint.
void SetMaxVelocity(const std::size_t _dof, const Scalar _value)
Set the maximum value of generalized velocity of a specific generalized coordinate within this joint.
This feature sets the min and max value of generalized velocity of this Joint.
Definition: gz/physics/Joint.hh:426
If your feature is known to require any other features, then you should have your feature class inher...
Definition: gz/physics/FeatureList.hh:118
This struct is used to conveniently convert from a policy to a geometric type. Example usage:
Definition: gz/physics/Geometry.hh:78