|
Momentum Scripting v1
|
#include <CylindricalJoint.h>
Public Types | |
| enum | DegreeOfFreedom { X , Y , Z } |
Protected Member Functions | |
| virtual int | getAgxRotationalDOF (Joint::DegreeOfFreedom dof) const |
| virtual int | getAgxTranslationalDOF (Joint::DegreeOfFreedom dof) const |
| agx::Real | getDampingInternal (int agxDOF) const |
| void | setDampingInternal (int agxDOF, double damping) |
The cylindrical joint class, a joint where the translational and rotational z-axis is unconstrained.
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
protectedvirtual |
Reimplemented from MOMENTUM_NAMESPACE::Joint.
|
protectedvirtual |
Reimplemented from MOMENTUM_NAMESPACE::Joint.
| double MOMENTUM_NAMESPACE::CylindricalJoint::getAngle | ( | ) | const |
Get the current rotation around the z-axis, in radians.
| std::shared_ptr< FrictionController > MOMENTUM_NAMESPACE::CylindricalJoint::getAngularFrictionController | ( | ) |
Since this friction controller is rotational the radius of the axle should be included in the friction coefficient for the comparisons with the normal force to be dimensionally correct.
I.e., friction_torque <= friction_coefficient * axle_radius * normal_force
| std::shared_ptr< AngularMotor > MOMENTUM_NAMESPACE::CylindricalJoint::getAngularMotor | ( | ) | const |
Get the motor of the rotational z-axis.
| std::shared_ptr< AngularRange > MOMENTUM_NAMESPACE::CylindricalJoint::getAngularRange | ( | ) | const |
Get the range of the rotational z-axis.
| std::shared_ptr< AngularSpring > MOMENTUM_NAMESPACE::CylindricalJoint::getAngularSpring | ( | ) | const |
Get the spring of the rotational z-axis.
|
inherited |
Return the body at position 0 or 1, 1 can be nullptr, if that is the case, it is attached to world.
| body | - 0 for first body, 1 for second |
|
inherited |
Get the force that the joint exerts on the specified body in the frame of the body, in newton.
| body | - 0 for first body, 1 for second |
|
inherited |
Get the torque that the joint exerts on the specified body in the frame of the body, in newton-meters.
| body | - 0 for first body, 1 for second |
| double MOMENTUM_NAMESPACE::CylindricalJoint::getCurrentAngularSpeed | ( | ) | const |
Get the current rotational speed around the z-axis in radians per second.
| double MOMENTUM_NAMESPACE::CylindricalJoint::getCurrentLinearSpeed | ( | ) | const |
Get the current speed along the z-axis in meters per second.
|
protectedinherited |
|
inherited |
Is the joint is enabled?
| std::shared_ptr< FrictionController > MOMENTUM_NAMESPACE::CylindricalJoint::getLinearFrictionController | ( | ) |
| std::shared_ptr< LinearMotor > MOMENTUM_NAMESPACE::CylindricalJoint::getLinearMotor | ( | ) | const |
Get the motor of the translational z-axis.
| std::shared_ptr< LinearRange > MOMENTUM_NAMESPACE::CylindricalJoint::getLinearRange | ( | ) | const |
Get the range of the translational z-axis.
| std::shared_ptr< LinearSpring > MOMENTUM_NAMESPACE::CylindricalJoint::getLinearSpring | ( | ) | const |
Get the spring of the translational z-axis.
|
inherited |
Get the name of the Joint.
| double MOMENTUM_NAMESPACE::CylindricalJoint::getPosition | ( | ) | const |
Get the current displacement along the z-axis, in meters.
|
inherited |
Get the rotational damping along the axis of the joint, in newton-meter-seconds per radian.
| dof | the degree of freedom to get the damping of |
|
inherited |
Get the rotational elasticity along the axis of the joint, in newton per radian.
| dof | the degree of freedom to get the elasticity of |
| std::shared_ptr< Screw1D > MOMENTUM_NAMESPACE::CylindricalJoint::getScrew1D | ( | ) | const |
Screw controller connects rotation and translation.
|
inherited |
Get the transformation in the world frame of the attachment of specified body.
| body | - 0 for first body, 1 for second |
|
inherited |
Get the translational damping along the axis of the joint, in newton-seconds per meter.
| dof | the degree of freedom to get the damping of |
|
inherited |
Get the translational elasticity along the axis of the joint.
It is returned in newton per meter.
| dof | - select which dof for which the elasticity will be returned |
|
inherited |
|
protectedinherited |
|
inherited |
Set to true if the joint should be enabled and should interact with the simulation.
| enabled | - if true the joint should interact with the simulation |
Only available in simulation mode
|
inherited |
Set the rotational damping along the axis of the joint, in newton-meter-seconds per radian.
| dof | the degree of freedom to set the damping of |
| damping | new the rotational damping |
Only available in simulation mode
|
inherited |
Set the rotational elasticity along the axis of the joint, in newton per radian.
| dof | the degree of freedom to set the elasticity of |
| elasticity | the new rotational elasticity |
Only available in simulation mode
|
inherited |
Set the attachment transformation in the world frame of the specified body.
| body | - 0 for first body, 1 for second |
| transform | - the new transformation of the attachment |
Only available in simulation mode
|
inherited |
Set the translational damping along the axis of the joint, in newton-seconds per meter.
| dof | the degree of freedom to set the damping of |
| damping | the new translational damping |
Only available in simulation mode
|
inherited |
Set the translational elasticity along the axis of the joint, in newton per meter.
| dof | the degree of freedom to set the elasticity of |
| elasticity | the new translational elasticity |
Only available in simulation mode