Package frc.robot.shared.config
Class AbstractConfig.ComponentPoseConfig
java.lang.Object
frc.robot.shared.config.AbstractConfig.ComponentPoseConfig
- Enclosing class:
- AbstractConfig
Describes the 3D pivot offset for an articulated component in AdvantageScope.
Embed an instance in any mechanism config that has a corresponding model component in the robot's AdvantageScope asset. The pivot values represent the component's origin relative to the robot's floor-level origin in meters.
-
Field Summary
FieldsModifier and TypeFieldDescriptiondoubleForward/backward offset in meters (positive = forward).doubleLeft/right offset in meters (positive = left).doubleVertical offset in meters (positive = up). -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionedu.wpi.first.math.geometry.Translation3dConverts the configured pivot offsets to a WPILib Translation3d.
-
Field Details
-
componentPivotX
public double componentPivotXForward/backward offset in meters (positive = forward). -
componentPivotY
public double componentPivotYLeft/right offset in meters (positive = left). -
componentPivotZ
public double componentPivotZVertical offset in meters (positive = up).
-
-
Constructor Details
-
ComponentPoseConfig
public ComponentPoseConfig()
-
-
Method Details
-
toTranslation3d
public edu.wpi.first.math.geometry.Translation3d toTranslation3d()Converts the configured pivot offsets to a WPILib Translation3d.- Returns:
- translation representing the component pivot in meters
-