Skip to content

Commit 564cdb2

Browse files
committed
pylint :(
1 parent d1d2970 commit 564cdb2

File tree

3 files changed

+12
-13
lines changed

3 files changed

+12
-13
lines changed

camera.py

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,11 @@
1919
########################################################################
2020

2121
import sys
22-
import pyzed.sl as sl
2322
from signal import signal, SIGINT
24-
import argparse
25-
import os
23+
import argparse
24+
25+
26+
import pyzed.sl as sl
2627

2728
cam = sl.Camera()
2829

@@ -35,15 +36,15 @@ def handler(signal_received, frame):
3536
signal(SIGINT, handler)
3637

3738
def main():
38-
39+
3940
init = sl.InitParameters()
4041
init.depth_mode = sl.DEPTH_MODE.NONE # Set configuration parameters for the ZED
4142

42-
status = cam.open(init)
43-
if status != sl.ERROR_CODE.SUCCESS:
43+
status = cam.open(init)
44+
if status != sl.ERROR_CODE.SUCCESS:
4445
print("Camera Open", status, "Exit program.")
4546
exit(1)
46-
47+
4748
recording_param = sl.RecordingParameters(opt.output_svo_file, sl.SVO_COMPRESSION_MODE.H264) # Enable recording with the filename specified in argument
4849
err = cam.enable_recording(recording_param)
4950
if err != sl.ERROR_CODE.SUCCESS:
@@ -58,12 +59,12 @@ def main():
5859
if cam.grab(runtime) == sl.ERROR_CODE.SUCCESS : # Check that a new image is successfully acquired
5960
frames_recorded += 1
6061
print("Frame count: " + str(frames_recorded), end="\r")
61-
62+
6263
if __name__ == "__main__":
6364
parser = argparse.ArgumentParser()
6465
parser.add_argument('--output_svo_file', type=str, help='Path to the SVO file that will be written', required= True)
6566
opt = parser.parse_args()
66-
if not opt.output_svo_file.endswith(".svo") and not opt.output_svo_file.endswith(".svo2"):
67+
if not opt.output_svo_file.endswith(".svo") and not opt.output_svo_file.endswith(".svo2"):
6768
print("--output_svo_file parameter should be a .svo file but is not : ",opt.output_svo_file,"Exit program.")
6869
exit()
6970
main()

rb_ws/src/buggy/scripts/auton/autonsystem.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,9 +111,7 @@ def __init__(self,
111111

112112
def change_utm_latlon(self, msg):
113113
new_msg = msg
114-
northing = msg.pose.pose.position.x
115-
easting = msg.pose.pose.position.y
116-
lat, lon, alt = navpy.ecef2lla([msg.pose.pose.position.x, msg.pose.pose.position.y, msg.pose.pose.position.z])
114+
lat, lon, _ = navpy.ecef2lla([msg.pose.pose.position.x, msg.pose.pose.position.y, msg.pose.pose.position.z])
117115
new_msg.pose.pose.position.x, new_msg.pose.pose.position.y = lon, lat
118116
self.latlonodom.publish(new_msg)
119117

rb_ws/src/buggy/scripts/auton/publish_rtk_err.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
from world import World
1212

1313

14-
#BROKEN BROKEN BROKEN BROKEN
14+
#BROKEN BROKEN BROKEN BROKEN
1515
class RTKErrPublisher():
1616

1717
"""

0 commit comments

Comments
 (0)