def callback(data):
    x = data.pose.position.x
    y = data.pose.position.y
    z = data.pose.position.z
    qx = data.pose.orientation.x
    qy = data.pose.orientation.y
    qz = data.pose.orientation.z
    qw = data.pose.orientation.w
    timestamp = data.header.seq
    MESSAGE = struct.pack('ddddddd', x, y, z, qx, qy, qz, qw)
    sock.sendto(MESSAGE, (UDP_IP, UDP_PORT))
def callback(data):
    x = data.pose.position.x
    y = data.pose.position.y
    z = data.pose.position.z
    qx = data.pose.orientation.x
    qy = data.pose.orientation.y
    qz = data.pose.orientation.z
    qw = data.pose.orientation.w
    timestamp = data.header.seq
    MESSAGE = struct.pack('ddddddd', x, y, z, qx, qy, qz, qw)
    sock.sendto(MESSAGE, (UDP_IP, UDP_PORT))