Skip to content

Commit

Permalink
pylint fixes round 1
Browse files Browse the repository at this point in the history
  • Loading branch information
mehulgoel873 committed Jun 26, 2024
1 parent 4dbd5b0 commit 00ae181
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion rb_ws/src/buggy/scripts/auton/autonsystem.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ def update_other_odom(self, msg):
def update_other_steering_angle(self, msg):
with self.lock:
self.other_steering = msg.data

def update_traj(self, msg):
with self.lock:
# print("New Trajectory:")
Expand Down
9 changes: 5 additions & 4 deletions rb_ws/src/buggy/scripts/auton/trajectory.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
import json
import time
import uuid
import matplotlib.pyplot as plt
import numpy as np

from scipy.interpolate import Akima1DInterpolator, CubicSpline
from buggy.msg import TrajectoryMsg
import time

import numpy as np
from scipy.interpolate import Akima1DInterpolator, CubicSpline

from world import World

Expand Down Expand Up @@ -355,7 +356,7 @@ def pack(self) -> TrajectoryMsg:
traj.northing = self.positions[:, 1]
traj.time = time.time()
return traj

def unpack(trajMsg : TrajectoryMsg) -> Trajectory:
pos = np.array([trajMsg.easting, trajMsg.northing]).transpose(1, 0)
return Trajectory(positions=pos)
Expand Down

0 comments on commit 00ae181

Please sign in to comment.