import lcm
from exlcm import structure
import random
import warnings
warnings.filterwarnings("ignore", category=DeprecationWarning) 

lc = lcm.LCM()
a = True

while(a):
		msg = structure()
		msg.dist= int(random.randint(0,100))
		msg.pres= int(random.randint(0,100))
		lc.handle_timeout(1500)
		lc.publish("NIRMAAN", msg.encode())

