def __init__(self): self.pub = rospy.Publisher(cmd_vel,Twist,queue_size =1) self.subscriber = rospy.Subscriber(Imu_topic,Imu,self.callback)