Skip to content

Commit c445573

Browse files
authored
Cleanup Style
1 parent 07f0fc8 commit c445573

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

cameraSensorModule.py

+10-4
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,20 @@
11
#!/usr/bin/env python3
22

3-
import os, sys
4-
import robomodules as rm
3+
import os
4+
import sys
5+
6+
import cv2
7+
import pickle
8+
59
from messages import *
6-
import cv2, pickle
10+
import robomodules as rm
711

8-
ADDRESS = os.environ.get("BIND_ADDRESS","localhost")
12+
ADDRESS = os.environ.get("BIND_ADDRESS", "localhost")
913
PORT = os.environ.get("BIND_PORT", 11297)
1014

1115
FREQUENCY = 4
1216

17+
1318
class CameraSensorModule(rm.ProtoModule):
1419
def __init__(self, addr, port, camera_port):
1520
super().__init__(addr, port, message_buffers, MsgType, FREQUENCY)
@@ -33,6 +38,7 @@ def tick(self):
3338
msg = msg.SerializeToString()
3439
self.write(msg, MsgType.CAMERA_FRAME_MSG)
3540

41+
3642
def main():
3743
port = 0
3844
if len(sys.argv) > 1:

0 commit comments

Comments
 (0)