Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Andeshog committed Apr 14, 2024
1 parent c1efa5b commit 07ca0bb
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def control_law(self, state: Odometry, reference: HybridpathReference) -> np.nda
return tau

@staticmethod
def calculate_coriolis_matrix(nu):
def calculate_coriolis_matrix(nu: np.ndarray) -> np.ndarray:
"""
Returns the Coriolis matrix times the velocity vector nu.
"""
Expand Down Expand Up @@ -123,4 +123,5 @@ def odom_to_state(msg: Odometry) -> np.ndarray:
r = msg.twist.twist.angular.z

state = np.array([x, y, yaw, u, v, r])

return state

0 comments on commit 07ca0bb

Please sign in to comment.