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. */ 010public class PoseWithCurvature { 011 /** Represents the pose. */ 012 public Pose2d pose; 013 014 /** Represents the curvature in radians per meter. */ 015 public double curvature; 016 017 /** 018 * Constructs a PoseWithCurvature. 019 * 020 * @param pose The pose. 021 * @param curvature The curvature in radians per meter. 022 */ 023 public PoseWithCurvature(Pose2d pose, double curvature) { 024 this.pose = pose; 025 this.curvature = curvature; 026 } 027 028 /** Constructs a PoseWithCurvature with default values. */ 029 public PoseWithCurvature() { 030 pose = Pose2d.kZero; 031 } 032}