2 import pyrealsense2
as rs
12 print(
'Number of arguments:', len(sys.argv),
'arguments.')
13 print(
'Argument List:',
str(sys.argv))
14 mc_ip_address =
'224.0.0.1' 15 local_ip_address =
'192.168.0.1' 26 asyncore.dispatcher.__init__(self, server)
54 imdata = pickle.loads(self.
buffer)
55 bigDepth = cv2.resize(imdata, (0,0), fx=2, fy=2, interpolation=cv2.INTER_NEAREST)
56 cv2.putText(bigDepth,
str(self.
timestamp), (10, 30), cv2.FONT_HERSHEY_SIMPLEX, 0.8, (65536), 2, cv2.LINE_AA)
67 asyncore.dispatcher.__init__(self)
70 self.create_socket(socket.AF_INET, socket.SOCK_STREAM)
71 self.socket.settimeout(5)
83 print(
"connection recvied")
90 print (
'Incoming connection from %s' % repr(addr))
96 multicast_group = (ip_address, port)
97 sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
101 print(
'sending "%s"' % message +
str(multicast_group))
102 sent = sock.sendto(message.encode(), multicast_group)
110 except socket.timeout:
111 print(
'timed out, no more responses')
113 print(sys.stderr,
'closing socket')
116 if __name__ ==
'__main__':
def multi_cast_message(ip_address, port, message)
static std::string print(const transformation &tf)
def __init__(self, server, source)