ethzasl_xsens_driver icon indicating copy to clipboard operation
ethzasl_xsens_driver copied to clipboard

Driver Node publish topics at different Interval

Open zhouzhiqian opened this issue 5 years ago • 6 comments

When I use MTI300 on Ubunty 16.04 + ROS kinetic, the intervals between every two topics don't keep 5ms (its frequency is 200 Hz).
Just like this figure: 16 04

But when I use it on Ubunty 14.04 + ROS indigo, it shows a totally different result. mti300

)

zhouzhiqian avatar May 29 '19 08:05 zhouzhiqian

That's a new issue for me. Does it happen consistently or just sometimes (and if so, in which condition)? I assume you checked it was not a CPU performance issue and only run the mtnode to reduce outside influences. Is it the same system with two different installs or are there differences in the CPU/USB bus?

fcolas avatar Aug 25 '19 15:08 fcolas

I experienced this issue on a similar configuration and in our case, it was caused by the latency settings of the Ubuntu driver for FTDI. The solution was to set the low_latency mode of the driver and thus prevent it from accumulating multiple measurements.

The command to execute after the device was plugged in: setserial /dev/<tty_name> low_latency

The setting resets once the device is disconnected but udev rules can be used to make it permanent.

MichalNowicki avatar Sep 17 '19 06:09 MichalNowicki

@MichalNowicki Thank you very much. I will try your solution quickly.

zhouzhiqian avatar Sep 17 '19 06:09 zhouzhiqian

Hi, I am having the same issue of publisjing with different interval partially:

image

While trying to setserial /dev/ttyUSB0 low_latency, I get: Cannot get serial info: Inappropriate ioctl for device

artemiialessandrini avatar Oct 08 '19 03:10 artemiialessandrini

@zhouzhiqian was it a solution for you?

artemiialessandrini avatar Oct 08 '19 03:10 artemiialessandrini

Apparently, rosbag_validate displays the same ERROR: E1008 14:32:31.060365 31665 rosbag_validate_main.cc:389] IMU data (frame_id: "imu_link") has a large gap, largest is 0.660078 s, recommended is [0.0005, 0.005] s with no jitter.

artemiialessandrini avatar Oct 08 '19 06:10 artemiialessandrini