Skip to content
Snippets Groups Projects
Commit 919d7e9e authored by Recolic K's avatar Recolic K
Browse files

playground

parent b54b28a3
No related branches found
No related tags found
No related merge requests found
import torch
import torch.nn as nn
import torch.nn.functional as F
import torch.optim as optim
File added
File added
...@@ -38,12 +38,11 @@ def dataset_maintain_thread_main(): ...@@ -38,12 +38,11 @@ def dataset_maintain_thread_main():
while True: while True:
message = ws.recv() message = ws.recv()
# print("DEBUG: message=", message) # print("DEBUG: message=", message)
parsed = json.loads(message) if len(message) > 1000:
if 'a' in parsed.keys() and 'b' in parsed.keys():
# Is a depth snapshot update # Is a depth snapshot update
a = 1 a = 1
else: else:
print("ERROR: unexpected message (maybe ping message): ", message) print("D: ", message)
###### DEBUG ONLY ###### DEBUG ONLY
# if int(time.time()) % 60 == 0 and _debug_tmp != int(time.time()): # if int(time.time()) % 60 == 0 and _debug_tmp != int(time.time()):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment