use of edu.wpi.first.math.trajectory.Trajectory in project Entropy2022 by Team138Entropy.
the class TrajectoryLibrary method get_Tarmac1_B2_trajectory.
public Trajectory get_Tarmac1_B2_trajectory() {
Trajectory traj = null;
String fileName = "Tarmac1_B2.wpilib.json";
try {
Path trajectoryPath = getTrajectoryPath(fileName);
traj = TrajectoryUtil.fromPathweaverJson(trajectoryPath);
} catch (IOException ex) {
System.out.println("Unable to open trajectory: " + fileName);
}
return traj;
}
use of edu.wpi.first.math.trajectory.Trajectory in project Entropy2022 by Team138Entropy.
the class TrajectoryLibrary method get_New_B3_B2.
public Trajectory get_New_B3_B2() {
Trajectory traj = null;
String fileName = "New-B3_B2.wpilib.json";
try {
Path trajectoryPath = getTrajectoryPath(fileName);
traj = TrajectoryUtil.fromPathweaverJson(trajectoryPath);
} catch (IOException ex) {
System.out.println("Unable to open trajectory: " + fileName);
}
return traj;
}
use of edu.wpi.first.math.trajectory.Trajectory in project Entropy2022 by Team138Entropy.
the class TrajectoryLibrary method get_New_B3_T2.
public Trajectory get_New_B3_T2() {
Trajectory traj = null;
String fileName = "B3_T2.wpilib.json";
try {
Path trajectoryPath = getTrajectoryPath(fileName);
traj = TrajectoryUtil.fromPathweaverJson(trajectoryPath);
} catch (IOException ex) {
System.out.println("Unable to open trajectory: " + fileName);
}
return traj;
}
use of edu.wpi.first.math.trajectory.Trajectory in project Entropy2022 by Team138Entropy.
the class TrajectoryLibrary method getBasicTrajectory.
public Trajectory getBasicTrajectory() {
Trajectory traj = null;
String fileName = "hardbolt2.wpilib.json";
try {
Path trajectoryPath = getTrajectoryPath(fileName);
traj = TrajectoryUtil.fromPathweaverJson(trajectoryPath);
} catch (IOException ex) {
System.out.println("Unable to open trajectory: " + fileName);
}
return traj;
}
use of edu.wpi.first.math.trajectory.Trajectory in project Entropy2022 by Team138Entropy.
the class TrajectoryLibrary method get_B2_setup_B3.
public Trajectory get_B2_setup_B3() {
Trajectory traj = null;
String fileName = "B2_setup_B3.wpilib.json";
try {
Path trajectoryPath = getTrajectoryPath(fileName);
traj = TrajectoryUtil.fromPathweaverJson(trajectoryPath);
} catch (IOException ex) {
System.out.println("Unable to open trajectory: " + fileName);
}
return traj;
}
Aggregations