Closed bobbyshashin closed 6 years ago
have you found a solution to this? For rate of update_rate=80 I get 60Hz and if I set update_rate>80 I get buffer overflow, something like: [ WARN] [1517616760.842450021]: Serial read buffer is 455, now flushing in an attempt to catch up. [ WARN] [1517616760.910278452]: Discarded 10 junk byte(s) preceeding packet.
@cynosure4sure Haven't yet :( I never encounter your overflow issue though. However, I am using a very old um7 IMU (probably bought 2~3 years ago), and I cannot flush its firmware due to some serial connection error while using the serial interface provided by the manufacturer.
I suspect that the firmware inside is some old version that does not work perfectly together with the ROS driver here, which causes my publish rate issue. I just ordered two new um7, and will update on this issue when they arrive.
Update:
@cynosure4sure Finally I found a solution to this. The publishing rate is limited by the baud rate of the serial interface. The baud rate can be configured through the following way:
Select 230400 or higher (to get ~100Hz publishing rate, make sure your computer's port support that baud rate).
Then click "RAM" and then "FLASH".
To double-check, disconnect UM7 from your computer, then plug it back in. Go through step 1 to 3 to ensure that the default baud rate is indeed changed, since there is an confusing issue described here.
Thank you for the reply. I had actually done this previously. I set the baud rate to 921600 and I can connect to the IMU but it gives buffer overflow problem. I am also running an old firmware U71C but from the pictures you posted it looks like you are running the latest version of firmware i.e. U72A. A workaround solution to my problem is to go back to kernel number 4.4.0.62 and it works at 200Hz. Any kernel version above it doesn't work for me unfortunately.
Hi,
I ran into an issue that the publishing rate of imu data was somehow limited to around 44.
I tried set the private param
update_rate
to 50, 100, 200, 254, and did arostopic hz /imu/data
to check the update frequency.When the
update_rate
was set to 50, the actual rate was around 33. And it seems to be limited around 44 when theupdate_rate
was set to higher than 100.Attached is the terminal output: