Class TightRope

java.lang.Object
com.marswars.geometry.TightRope

public class TightRope extends Object
  • Field Details

    • pose_a_

      public Pose2d pose_a_
    • pose_b_

      public Pose2d pose_b_
  • Constructor Details

    • TightRope

      public TightRope(Pose2d pose_a, Pose2d pose_b, String name)
      Create a TightRope between two poses
      Parameters:
      pose_a - Pose2d of one end of the tightrope
      pose_b - Pose2d of the other end of the tightrope
      name - Name of the tightrope for logging
  • Method Details

    • logPoints

      public void logPoints()
      Log the two endpoints of the tightrope. These can be visualized using AdvantageScope to confirm that the tightropes are properly defined.
    • getName

      public String getName()
      Get the name of the tightrope
      Returns:
      the name of the tightrope