Class MechanismLigament2d

java.lang.Object
edu.wpi.first.wpilibj.smartdashboard.MechanismObject2d
edu.wpi.first.wpilibj.smartdashboard.MechanismLigament2d

public class MechanismLigament2d
extends MechanismObject2d
Ligament node on a Mechanism2d. A ligament can have its length changed (like an elevator) or angle changed, like an arm.
See Also:
Mechanism2d
  • Constructor Details

    • MechanismLigament2d

      public MechanismLigament2d​(String name, double length, double angle, double lineWidth, Color8Bit color)
      Create a new ligament.
      Parameters:
      name - The ligament name.
      length - The ligament length.
      angle - The ligament angle.
      lineWidth - The ligament's line width.
      color - The ligament's color.
    • MechanismLigament2d

      public MechanismLigament2d​(String name, double length, double angle)
      Create a new ligament with the default color (orange) and thickness (6).
      Parameters:
      name - The ligament's name.
      length - The ligament's length.
      angle - The ligament's angle relative to its parent.
  • Method Details