Skip to content

Commit 6508ccc

Browse files
author
NewtonCrosby
committed
Bug Fix: Added addRequirements call to constructors.
1 parent 0efaf1d commit 6508ccc

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Diff for: commands2/swervecontrollercommand.py

+4
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ def __init__(
9191
)
9292
self._desiredRotation = desiredRotation
9393
self._timer = Timer()
94+
self.addRequirements(requirements)
9495

9596
@overload
9697
def __init__(
@@ -148,6 +149,7 @@ def __init__(
148149
)
149150
self._desiredRotation = self._trajectory.states()[-1].pose.rotation
150151
self._timer = Timer()
152+
self.addRequirements(requirements)
151153

152154
@overload
153155
def __init__(
@@ -195,6 +197,7 @@ def __init__(
195197
self._controller = controller
196198
self._desiredRotation = desiredRotation
197199
self._timer = Timer()
200+
self.addRequirements(requirements)
198201

199202
@overload
200203
def __init__(
@@ -244,6 +247,7 @@ def __init__(
244247
self._controller = controller
245248
self._desiredRotation = self._trajectory.states()[-1].pose.rotation
246249
self._timer = Timer()
250+
self.addRequirements(requirements)
247251

248252
@overtake(runtime_type_checker="beartype")
249253
def __init__(

0 commit comments

Comments
 (0)