Skip to content

Commit

Permalink
Complete rebase.
Browse files Browse the repository at this point in the history
  • Loading branch information
sidharthmrao committed Feb 4, 2023
1 parent 848e133 commit da60665
Show file tree
Hide file tree
Showing 10 changed files with 2,657 additions and 10,594 deletions.
Original file line number Diff line number Diff line change
@@ -1,18 +1,14 @@
import math
import json
import tempfile

from commands2 import SequentialCommandGroup, InstantCommand, WaitCommand
from wpimath.geometry import Pose2d, Translation2d
from wpimath.trajectory import TrajectoryGenerator, TrajectoryConfig, TrajectoryUtil
from wpimath.geometry import Pose2d

import constants
from autonomous.auto_routine import AutoRoutine
from autonomous.custom_pathing import FollowPathCustom
from autonomous.utils.custom_pathing import FollowPathCustom
from autonomous.utils.path_planner import combine_trajectory_json, get_trajectories
from robot_systems import Robot

from autonomous.trajectory import combine_trajectory_json, get_trajectories

# combines all trajectories in each routine into one auto_routine.json file
routines = ["routine_1", "routine_2"]
combine_trajectory_json(routines)
Expand All @@ -23,14 +19,12 @@
path_1 = FollowPathCustom(
Robot.drivetrain,
trajectories["trajectory_1"],
math.radians(0),
constants.period,
)

path_2 = FollowPathCustom(
Robot.drivetrain,
trajectories["trajectory_2"],
math.radians(0),
constants.period,
)

Expand Down
Loading

0 comments on commit da60665

Please sign in to comment.