src/main/cpp/Commands/SplineTests/SplineBounce.cpp
void SplineBounce::GenerateTrajectory()
{
  const frc::Pose2d start{0.0_ft,0.0_ft,frc::Rotation2d(0.0_deg)};
  const frc::Pose2d end{0.0_ft,0.0_ft,frc::Rotation2d(0.0_deg)};

  std::vector<frc::Translation2d> interiorWaypoints
  {
    frc::Translation2d{0.0_ft, 0.0_ft},
    frc::Translation2d{0.0_ft, 0.0_ft}
  };

  frc::TrajectoryConfig config{12_fps, 12_fps_sq};
  config.SetReversed(false);

  auto trajectory = frc::TrajectoryGenerator::GenerateTrajectory(start, interiorWaypoints, end, config);
}
// Generates a trajectory for the robot to follow
Generates a trajectory for the robot to follow
Generates a trajectory for the robot to follow
void SplineBounce::GenerateTrajectory()
{
  const frc::Pose2d start{0.0_ft,0.0_ft,frc::Rotation2d(0.0_deg)};
  const frc::Pose2d end{0.0_ft,0.0_ft,frc::Rotation2d(0.0_deg)};
  std::vector<frc::Translation2d> interiorWaypoints
  {
    frc::Translation2d{0.0_ft, 0.0_ft},
    frc::Translation2d{0.0_ft, 0.0_ft}
  };
  frc::TrajectoryConfig config{12_fps, 12_fps_sq};
  config.SetReversed(false);
  auto trajectory = frc::TrajectoryGenerator::GenerateTrajectory(start, interiorWaypoints, end, config);
}
void SplineBounce :: GenerateTrajectory ( ) { const frc :: Pose2d start { 0.0 _ft , 0.0 _ft , frc :: Rotation2d ( 0.0 _deg ) } ; const frc :: Pose2d end { 0.0 _ft , 0.0 _ft , frc :: Rotation2d ( 0.0 _deg ) } ; std :: vector < frc :: Translation2d > interiorWaypoints { frc :: Translation2d { 0.0 _ft , 0.0 _ft } , frc :: Translation2d { 0.0 _ft , 0.0 _ft } } ; frc :: TrajectoryConfig config { 12 _fps , 12 _fps_sq } ; config . SetReversed ( false ) ; auto trajectory = frc :: TrajectoryGenerator :: GenerateTrajectory ( start , interiorWaypoints , end , config ) ; }
Generates a trajectory for the robot to follow
Generates a trajectory for the robot to follow