Skip to content

Commit

Permalink
pylint fixes yet again #2
Browse files Browse the repository at this point in the history
  • Loading branch information
Jackack committed Feb 3, 2024
1 parent ee77ccf commit 7415767
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions rb_ws/src/buggy/scripts/auton/model_predictive_controller.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
#!/usr/bin/env python3

import time
from threading import Lock

from numba import njit

import numpy as np
import osqp
import scipy
from scipy import sparse

import rospy
Expand All @@ -20,7 +20,6 @@
from controller import Controller
from world import World

from threading import Lock

import matplotlib.pyplot as plt

Expand Down Expand Up @@ -608,7 +607,7 @@ def compute_trajectory(self, current_pose: Pose, trajectory: Trajectory, current
return reference_trajectory

state_trajectory += reference_trajectory
steer_rate_trajectory = solution_trajectory[:, :self.N_CONTROLS]
# steer_rate_trajectory = solution_trajectory[:, :self.N_CONTROLS]

if self.TIME:
solve_time = 1000 * (time.time() - t)
Expand All @@ -624,7 +623,7 @@ def compute_trajectory(self, current_pose: Pose, trajectory: Trajectory, current

if self.PLOT:
# Plot the results
fig, [[ax1, ax2], [ax3, ax4]] = plt.subplots(2, 2)
_, [[ax1, ax2], [ax3, ax4]] = plt.subplots(2, 2)

# Extract the states
states = np.zeros((self.MPC_HORIZON, self.N_STATES))
Expand Down

0 comments on commit 7415767

Please sign in to comment.