001// Copyright (c) FIRST and other WPILib contributors.
002// Open Source Software; you can modify and/or share it under the terms of
003// the WPILib BSD license file in the root directory of this project.
004
005package edu.wpi.first.math.spline;
006
007import edu.wpi.first.math.geometry.Pose2d;
008
009/** Represents a pair of a pose and a curvature. */
010@SuppressWarnings("MemberName")
011public class PoseWithCurvature {
012  // Represents the pose.
013  public Pose2d poseMeters;
014
015  // Represents the curvature.
016  public double curvatureRadPerMeter;
017
018  /**
019   * Constructs a PoseWithCurvature.
020   *
021   * @param poseMeters The pose.
022   * @param curvatureRadPerMeter The curvature.
023   */
024  public PoseWithCurvature(Pose2d poseMeters, double curvatureRadPerMeter) {
025    this.poseMeters = poseMeters;
026    this.curvatureRadPerMeter = curvatureRadPerMeter;
027  }
028
029  /** Constructs a PoseWithCurvature with default values. */
030  public PoseWithCurvature() {
031    poseMeters = new Pose2d();
032  }
033}