添加callback_args参数,比如:
rospy.Subscriber(self.ROV_name+topicx, msg_type, callback, callback_args=topicx, queue_size=queue_size)
添加callback_args参数,比如:
rospy.Subscriber(self.ROV_name+topicx, msg_type, callback, callback_args=topicx, queue_size=queue_size)