- All Implemented Interfaces:
Serializable,Comparable<PxD6DriveEnum>,Constable
Each drive is an implicit force-limited damped spring:
force = spring * (target position - position) + damping * (targetVelocity - velocity)
Alternatively, the spring may be configured to generate a specified acceleration instead of a force.
A linear axis is affected by drive only if the corresponding drive flag is set. There are two possible models for angular drive: swing/twist, which may be used to drive one or more angular degrees of freedom, or slerp, which may only be used to drive all three angular degrees simultaneously. Please use #PxD6AngularDriveConfig to configure the angular drive model.
See also: PxD6Joint PxD6AngularDriveConfig
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic PxD6DriveEnumforValue(int value) static PxD6DriveEnumReturns the enum constant of this class with the specified name.static PxD6DriveEnum[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
eX
drive along the X-axis -
eY
drive along the Y-axis -
eZ
drive along the Z-axis -
eSWING
-
eTWIST
rotational drive around the X-axisNote: Only allowed if the angular drive configuration is set to PxD6AngularDriveConfig::eLEGACY or PxD6AngularDriveConfig::eSWING_TWIST.
-
eSLERP
drive of all three angular degrees along a SLERP-pathNote: Only allowed if the angular drive configuration is set to PxD6AngularDriveConfig::eSLERP or PxD6AngularDriveConfig::eLEGACY.
Note: If the angular drive configuration is set to PxD6AngularDriveConfig::eLEGACY, then eSLERP takes precedence over eSWING/eTWIST
-
-
Field Details
-
value
public final int value
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
forValue
-