Parameters related to the axis of rotation for rotational joints, and the axis of translation for prismatic joints. More...
#include <JointAxis.hh>
Public Member Functions | |
JointAxis () | |
Default constructor. More... | |
JointAxis (const JointAxis &_jointAxis) | |
Copy constructor. More... | |
JointAxis (JointAxis &&_jointAxis) noexcept | |
Move constructor. More... | |
~JointAxis () | |
Destructor. More... | |
double | Damping () const |
Get the physical velocity dependent viscous damping coefficient of the joint axis. More... | |
double | Dissipation () const |
Get the joint stop dissipation. More... | |
double | Effort () const |
Get the value for enforcing the maximum joint effort applied. More... | |
sdf::ElementPtr | Element () const |
Get a pointer to the SDF element that was used during load. More... | |
double | Friction () const |
Get the physical static friction value of the joint. More... | |
double | InitialPosition () const |
Get the initial joint position for this joint axis. More... | |
Errors | Load (ElementPtr _sdf) |
Load the joint axis based on a element pointer. More... | |
double | Lower () const |
Get the lower joint axis limit (radians for revolute joints, meters for prismatic joints). More... | |
double | MaxVelocity () const |
Get the value for enforcing the maximum joint velocity. More... | |
JointAxis & | operator= (JointAxis &&_jointAxis) |
Move assignment operator. More... | |
JointAxis & | operator= (const JointAxis &_jointAxis) |
Copy assignment operator. More... | |
void | SetDamping (const double _damping) |
Set the physical velocity dependent viscous damping coefficient of the joint axis. More... | |
void | SetDissipation (const double _dissipation) const |
Set the joint stop dissipation. More... | |
void | SetEffort (double _effort) |
Set the value for enforcing the maximum joint effort applied. More... | |
void | SetFriction (const double _friction) |
Set the physical static friction value of the joint. More... | |
void | SetInitialPosition (const double _pos) |
Set the initial joint position for this joint axis. More... | |
void | SetLower (const double _lower) |
Set the lower joint axis limit (radians for revolute joints, meters for prismatic joints). More... | |
void | SetMaxVelocity (const double _velocity) const |
Set the value for enforcing the maximum joint velocity. More... | |
void | SetSpringReference (const double _spring) |
Set the spring reference position for this joint axis. More... | |
void | SetSpringStiffness (const double _spring) |
Set the spring stiffness for this joint axis. More... | |
void | SetStiffness (const double _stiffness) const |
Get the joint stop stiffness. More... | |
void | SetUpper (const double _upper) const |
Set the upper joint axis limit (radians for revolute joints, meters for prismatic joints). More... | |
void | SetUseParentModelFrame (const bool _parentModelFrame) |
Set whether to interpret the axis xyz value in the parent model instead of the joint frame. More... | |
void | SetXyz (const ignition::math::Vector3d &_xyz) |
Set the x,y,z components of the axis unit vector. More... | |
double | SpringReference () const |
Get the spring reference position for this joint axis. More... | |
double | SpringStiffness () const |
Get the spring stiffness for this joint axis. More... | |
double | Stiffness () const |
Get the joint stop stiffness. More... | |
double | Upper () const |
Get the upper joint axis limit (radians for revolute joints, meters for prismatic joints). More... | |
bool | UseParentModelFrame () const |
Get whether to interpret the axis xyz value in the parent model frame instead of joint frame. More... | |
ignition::math::Vector3d | Xyz () const |
Get the x,y,z components of the axis unit vector. More... | |
Parameters related to the axis of rotation for rotational joints, and the axis of translation for prismatic joints.
sdf::v8::JointAxis::JointAxis | ( | ) |
Default constructor.
sdf::v8::JointAxis::JointAxis | ( | const JointAxis & | _jointAxis | ) |
Copy constructor.
[in] | _jointAxis | Joint axis to copy. |
|
noexcept |
Move constructor.
[in] | _jointAxis | Joint axis to move. |
sdf::v8::JointAxis::~JointAxis | ( | ) |
Destructor.
double sdf::v8::JointAxis::Damping | ( | ) | const |
Get the physical velocity dependent viscous damping coefficient of the joint axis.
The default value is zero (0.0).
double sdf::v8::JointAxis::Dissipation | ( | ) | const |
Get the joint stop dissipation.
The default value is 1.0.
double sdf::v8::JointAxis::Effort | ( | ) | const |
Get the value for enforcing the maximum joint effort applied.
Limit is not enforced if value is negative. The default value is -1.
sdf::ElementPtr sdf::v8::JointAxis::Element | ( | ) | const |
double sdf::v8::JointAxis::Friction | ( | ) | const |
Get the physical static friction value of the joint.
The default value is zero (0.0).
double sdf::v8::JointAxis::InitialPosition | ( | ) | const |
Get the initial joint position for this joint axis.
The default value is zero (0.0).
Errors sdf::v8::JointAxis::Load | ( | ElementPtr | _sdf | ) |
double sdf::v8::JointAxis::Lower | ( | ) | const |
Get the lower joint axis limit (radians for revolute joints, meters for prismatic joints).
Not valid if the joint that uses this axis is continuous. The default value is -1e16.
double sdf::v8::JointAxis::MaxVelocity | ( | ) | const |
Get the value for enforcing the maximum joint velocity.
The default value is -1.
Move assignment operator.
[in] | _jointAxis | JointAxis component to move. |
Copy assignment operator.
[in] | _jointAxis | JointAxis component to copy. |
void sdf::v8::JointAxis::SetDamping | ( | const double | _damping | ) |
Set the physical velocity dependent viscous damping coefficient of the joint axis.
[in] | _damping | The physical velocity dependent viscous damping coefficient of the joint axis |
void sdf::v8::JointAxis::SetDissipation | ( | const double | _dissipation | ) | const |
Set the joint stop dissipation.
[in] | _dissipation | The joint stop dissipation. |
void sdf::v8::JointAxis::SetEffort | ( | double | _effort | ) |
Set the value for enforcing the maximum joint effort applied.
Limit is not enforced if value is negative.
[in] | _effort | Effort limit. |
void sdf::v8::JointAxis::SetFriction | ( | const double | _friction | ) |
Set the physical static friction value of the joint.
[in] | _friction | The physical static friction value of the joint. |
void sdf::v8::JointAxis::SetInitialPosition | ( | const double | _pos | ) |
Set the initial joint position for this joint axis.
[in] | _pos | The initial joint position. |
void sdf::v8::JointAxis::SetLower | ( | const double | _lower | ) |
Set the lower joint axis limit (radians for revolute joints, meters for prismatic joints).
Not valid if the joint that uses this axis is continuous.
[in] | _lower | The lower joint axis limit |
void sdf::v8::JointAxis::SetMaxVelocity | ( | const double | _velocity | ) | const |
Set the value for enforcing the maximum joint velocity.
[in] | _velocity | The value for enforcing the maximum joint velocity. |
void sdf::v8::JointAxis::SetSpringReference | ( | const double | _spring | ) |
Set the spring reference position for this joint axis.
[in] | _spring | The spring reference position for this joint axis. |
void sdf::v8::JointAxis::SetSpringStiffness | ( | const double | _spring | ) |
Set the spring stiffness for this joint axis.
[in] | _spring | The spring stiffness for this joint axis. |
void sdf::v8::JointAxis::SetStiffness | ( | const double | _stiffness | ) | const |
Get the joint stop stiffness.
[in] | _stiffness | The joint stop stiffness. |
void sdf::v8::JointAxis::SetUpper | ( | const double | _upper | ) | const |
Set the upper joint axis limit (radians for revolute joints, meters for prismatic joints).
Not valid if joint that uses this axis is continuous.
[in] | _upper | The upper joint axis limit. |
void sdf::v8::JointAxis::SetUseParentModelFrame | ( | const bool | _parentModelFrame | ) |
Set whether to interpret the axis xyz value in the parent model instead of the joint frame.
[in] | _parentModelFrame | True to interpret the axis xyz value in the parent model frame, false to use the joint frame. |
void sdf::v8::JointAxis::SetXyz | ( | const ignition::math::Vector3d & | _xyz | ) |
Set the x,y,z components of the axis unit vector.
[in] | _xyz | The x,y,z components of the axis unit vector. |
double sdf::v8::JointAxis::SpringReference | ( | ) | const |
Get the spring reference position for this joint axis.
The default value is zero (0.0).
double sdf::v8::JointAxis::SpringStiffness | ( | ) | const |
Get the spring stiffness for this joint axis.
The default value is zero (0.0).
double sdf::v8::JointAxis::Stiffness | ( | ) | const |
Get the joint stop stiffness.
The default value is 1e8.
double sdf::v8::JointAxis::Upper | ( | ) | const |
Get the upper joint axis limit (radians for revolute joints, meters for prismatic joints).
Not valid if joint that uses this axis is continuous. The default value is 1e16.
bool sdf::v8::JointAxis::UseParentModelFrame | ( | ) | const |
Get whether to interpret the axis xyz value in the parent model frame instead of joint frame.
The default value is false.
ignition::math::Vector3d sdf::v8::JointAxis::Xyz | ( | ) | const |
Get the x,y,z components of the axis unit vector.
The axis is expressed in the joint frame unless UseParentModelFrame is true. The vector should be normalized. The default value is ignition::math::Vector3d::UnitZ which equals (0, 0, 1).