Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Xsens MTI-G-700-2A5G4 Drifting largely even when stationary #41

Open
emil-jose opened this issue Sep 6, 2018 · 13 comments
Open

Xsens MTI-G-700-2A5G4 Drifting largely even when stationary #41

emil-jose opened this issue Sep 6, 2018 · 13 comments

Comments

@emil-jose
Copy link

Hi,
I am using Xsens MTI-G-700-2A5G4 to get imu data for a sensor fusion application and the imu measurements are observed to be drifting largely. I know the position estimation from IMU drift over time but the IMU data in my case makes me feel like the vehicle on which it is mounted is a high-speed train(I did the gravity compensation). I assumed Xsens MTI-G-700-2A5G4 is factory calibrated so this behavior is not expected I guess. Do I need to calibrate it? If yes could you point to some details on the same? Also, can I get raw GPS measurements from the sensor itself using the driver? I haven't tried it outdoors.

@Steven-GH
Copy link

Hello emil-jose,

I noticed that your questions are already being answered on Xsens' BASE forum. If you have any questions specifically regarding Xsens' MTi ROS node, feel free to post them here.

Raw GNSS Pvt messages are available via this driver as well. You can configure the MTi to output them by selecting output data mode 1 or 2 in the xsens.yaml configuration file. After running the node you can retrieve the data using:
rostopic echo /mti/sensor/gnssPvt

@emil-jose
Copy link
Author

I did set the mode to 1 and 2. It does not give me any GPS output. After trying it out, I wanted to switch to my previous ros driver (https://github.com/rpng/xsens_mti_ros_node), but it seems setting the mode did change something in the sensor itself. Now my previous driver does not seems to work properly.
Is there any way to reset it? and what could be the reason that 'rostopic echo' didn't show me any msg at all?

@Steven-GH
Copy link

Hello emil-jose,

Are you getting any warnings or errors after using rostopic echo, or before that when launching the rosnode? Even without a GNSS fix, rostopic echo should return a list of 0-valued parameters.

Upon startup the node takes the settings in the xsens.yaml file and uses them to configure the MTi. This means that its output configurations (output data mode/rate), filter profile and baudrate may change during the launch.

@emil-jose
Copy link
Author

emil-jose commented Sep 10, 2018

The rostopic echo display nothing and launching the node does not show any error. Even I tried outdoors and indoors. Its the same. I set the filter profile to 1 and changed the output data mode to 1 and 2 .
screenshot from 2018-09-10 10-37-48

@Steven-GH
Copy link

Have you updated your MTi to run the lastest firmware version (v1.8.2) using our Firmware Updater?

Also, are you using a direct USB connection or a serial to USB converter cable?

@emil-jose
Copy link
Author

emil-jose commented Sep 10, 2018

I am using direct USB connection and firmware version is 1.3.1

@Steven-GH
Copy link

In that case I highly recommend first updating the firmware of your device to 1.8.2. If that doesn't solve the problem, you might want to check out the solution here: #36
(note that you are using a 4th generation device, so the latest firmware version is 1.8.2, in contrast to the 5th generation MTi's which are currently at 1.7.4.)

@emil-jose
Copy link
Author

emil-jose commented Sep 10, 2018

I tried updating the firmware. It updated with message "unknown error while updating firmware". But anyway, now it seems to output the raw Raw GNSS Pvt messages and is working in my laptop. The current version it is showing is 1.8.2. When I plugged into the mobile platform, I got an error as in #36. I tried the solutions of adding myself to the group but doesn't make any difference. I also tried "sudo chmod 777 /dev/ttyUSB0". The last suggestion in #36 is to update the firmware again to beta version. Should I go for it? I would rather have a stable version. Is there any other fix to this problem.

@Steven-GH
Copy link

Are you still seeing "TypeError: ord() expected a character, but string of length 0 found" upon launching the node?

Your firmware version (1.8.2) is the latest available firmware version. There are no further beta firmwares available for your device.

@emil-jose
Copy link
Author

Yes, But only on my mobile platform(Segway). It works fine in my laptop.

@emil-jose
Copy link
Author

emil-jose commented Sep 10, 2018

I was looking into the code for better understanding. I see a free acceleration output. Is free acceleration equivalent to gravity compensated? How can I configure the node to output free acceleration instead of raw imu or both.

@Steven-GH
Copy link

The Free acceleration output is indeed the 3D acceleration with the effects of gravity removed. Note however the difference in output frames:

  • The regular Acceleration output is defined in the sensor (body-fixed) frame;
  • The Free Acceleration output is defined in the local frame (same as orientation/velocity output, ENU frame by default).

The ROS node does not yet have support for a Free acceleration output, but the code in xsens_driver/src can be modified to configure, receive and print it.

I have not yet been able to reproduce the error you are seeing on your mobile platform. We are still looking into this.

@wujiang
Copy link

wujiang commented Nov 18, 2018

You might have to do a magnetic field recalibration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants