how to change the publishing rate of /fix topic in nmea_navsat_driver package
In nmea_navsat_driver package nmea_navsat-driver.
I have noticed that the publishing rate of /fix is about 1 Hz, but I want to make it faster than 1 Hz.
In its python code, it does not specify the rospy.Rate(), I want know how to change rate the /fix topic.
actually I have tried to add rate = rosy.Rate() for the while loop, but it did not work.
is there anybody who can help me!! thank u!!
GPS = serial.Serial(port=serial_port, baudrate=serial_baud, timeout=2) driver = libnmea_navsat_driver.driver.RosNMEADriver() while not rospy.is_shutdown(): data = GPS.readline().strip() try: driver.add_sentence(data, frame_id)