Skip to content

Commit

Permalink
Change wheelbase variable based on buggy_name
Browse files Browse the repository at this point in the history
  • Loading branch information
PatXue committed Mar 25, 2024
1 parent 0c715fc commit e554b13
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion rb_ws/src/buggy/scripts/auton/controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,15 @@ class Controller(ABC):

NAND_WHEELBASE = 1.3
SC_WHEELBASE = 1.104
WHEELBASE = SC_WHEELBASE
current_traj_index = 0

def __init__(self, start_index, buggy_name) -> None:
self.buggy_name = buggy_name
if buggy_name.upper() == 'NAND':
Controller.WHEELBASE = self.NAND_WHEELBASE
else:
Controller.WHEELBASE = self.SC_WHEELBASE

# self.trajectory_forward_1 = rospy.Publisher(
# buggy_name + "/auton/debug/forward1_navsat", NavSatFix, queue_size=1
# )
Expand Down

0 comments on commit e554b13

Please sign in to comment.