microstrain_inertial icon indicating copy to clipboard operation
microstrain_inertial copied to clipboard

Please check the time stamp of this new version ROS-MSCL

Open nonlinear1 opened this issue 4 years ago • 9 comments

I can run lio-sam with the 3DM-GX5-25 under the old version ROS-MSCL .But this newer version ROS-MSCL cann't work! I found the time stamp of the data of imu isn't correct! I think you have changed the time stamp format of your ROS-MSCL? if not, please check! Thank you very much!

nonlinear1 avatar Feb 28 '21 10:02 nonlinear1

I just pushed an update that should fix this for you. Please let me know if you are still having troubles.

nathanmillermicrostrain avatar Mar 01 '21 14:03 nathanmillermicrostrain

Hi nonlinear, did this fix your problem?

nathanmillermicrostrain avatar Mar 05 '21 14:03 nathanmillermicrostrain

Thank you very much! I have tested your new version of ROS-MSCL. This fix my problem!

nonlinear1 avatar Mar 06 '21 10:03 nonlinear1

May I ask which version of ros_mscl is it? I also encountered the same problem. thank you very much @nonlinear1 @nathanmillerparker

ycl-web avatar Dec 02 '22 11:12 ycl-web

@ycl-web May I ask what version of the driver you are using? The current ros and ros2 branches have undergone a change that may have changed how the data is timestamped.

Also please note that the way the data is timestamped is dependent on configuration. The default behavior of the launch file is to timestamp the data when it is collected. If the data is transmitted over USB at a high rate, this can result in data being batched up and the timestamps will reflect this.

If you configure the driver with use_device_timestamp: True, the data will be timestamped with the device timestamp.

If you configure the driver with use_ros_time: True the data will be timestamped with ROS time right before it is published, which would display similar behavior to the default, but could behave differently if running in simulation

robbiefish avatar Dec 02 '22 15:12 robbiefish

First of all thank you very much for answering my question. I am using ros. When using the previous version, the function package is still called ros_mscl, and the data collected at that time can run lio-sam. But I downloaded the latest version of the driver, but only modified the baud rate and imu_data_rate, which made lio-sam unable to run. Is the current driver default setting the same as before? Thanks again for your answer

ycl-web avatar Dec 02 '22 16:12 ycl-web

@robbiefish

ycl-web avatar Dec 02 '22 16:12 ycl-web

@ycl-web several things have changed since the package was called ros_mscl, can you please send me the output that the driver prints when you run it? That would help me to determine what version you are using.

How are you installing the driver? Are you installing it from the buildfarm using apt-get or are you building it from source?

robbiefish avatar Dec 05 '22 14:12 robbiefish

thanks for your help. First I built it from source, the driver output is in the image below. The part I modified in the source code is to put in the "param.yml" file: port : "/dev/ttyUSB0" baudrate: 460800 set_baud : True imu_data_rate : 500 Other settings are default settings. I have a few problems:

  1. I convert the quaternion of the imu/data message to roll, pitch, yaw. When I turn the imu, the yaw value will continuously increase or decrease to a value after the imu is turned to a fixed position, while the roll and pitch are displayed in real time. 2.device_setup: True use_device_timestamp : False use_ros_time : False These three settings are the default settings, do they need to be modified?
  2. When I run lio-sam with this version of the driver, the image built in rviz will float around, but it will not float around with the previous ros_mscl. My operating system is ubuntu18.04 The ros version is melodic The imu version is 3dm-gx5-25 Thanks again for your help. @robbiefish imu

ycl-web avatar Dec 09 '22 06:12 ycl-web

This issue is stale because it has been open for 2 weeks with no activity. If the issue is still not resolved, please leave a comment describing what is still not working

github-actions[bot] avatar Dec 25 '22 00:12 github-actions[bot]

This issue was closed because it has been inactive for 2 weeks since being marked as stale. If the issue is still not resolved, please reopen the issue, and leave a comment describing what is still not working

github-actions[bot] avatar Jan 08 '23 00:01 github-actions[bot]