-
Notifications
You must be signed in to change notification settings - Fork 18
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
waist_imu
providing the same message on ergocubSN000
#163
Comments
cc @isorrentino |
Today I started investigating the problem related to the xsens on ergocub waist. In particular, I tried to reproduce the error with the cable and the xsens on bench and trying to read from the port ( After that, in order to exclude that the problem could be the hardware, I downloaded the MT Software Suite: here, I plugged in the xsens to the ergocub-torso on bench using the USB cable @GiulioRomualdi gave me (the one that was used at the beginning to test the imu on ergocub by attaching it to the laptop) and I tried to read data from there with success: xsens.webmTo double-check, I tried to launch the yarprobotinterface with the same configuration file used by @SimoneMic (I only changed the serial port from /dev/ttyS0 to So, probably there's something wrong with how the measures from the imu are read and printed out by yarp or in the |
Hi @martinaxgloria , by any chance, have you tried to run the device with the config file written in https://github.com/robotology/yarp-device-xsensmt#via-multipleanalogsensorsserver <?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE robot PUBLIC "-//YARP//DTD yarprobotinterface 3.0//EN" "http://www.yarp.it/DTD/yarprobotinterfaceV3.0.dtd">
<robot name="realsense" build=0 portprefix="/xsens_imu">
<device type="xsensmt" name="xsens_imu">
<param name="xsensmt_period">0.01</param>
<param name="xsensmt_euler_period">0.005</param>
<param name="xsensmt_gyro_period">0.005</param>
<param name="xsensmt_acc_period">0.005</param>
<param name="xsensmt_mag_period">0.01</param>
</device>
<device type="multipleanalogsensorsserver" name="xsens_imu_wrapper">
<param name="period">5</param>
<param name="name">/xsens_imu</param>
<action phase="startup" level="5" type="attach">
<paramlist name="networks">
<elem name="imu">xsens_imu</elem>
</paramlist>
</action>
<action phase="shutdown" level="5" type="detach"/>
</device>
</robot> The only difference is how the xsensmt device is launched. In this case, we do not use sub-device |
Hi @GiulioRomualdi, today @Nicogene and I succeeded in reading from the waist imu yarp port: I'm going to open a PR with the changes that fix the problem |
That's great! Thank you!! |
Super, @martinaxgloria |
Hi @pattacini, |
This means that we introduced them only lately. |
Mmmh here there is something unclear to me.
I initially thought that this was the issue, a wrong default value of these periodic threads. But then I was not able to find any reference to them in the code.
|
The first issue we discovered was that the nws was attaching on itself. see: Moreover, there was both the attach and the subdevice, I don't know what happens if you do both, it surprised that Removing the |
Haaaaaa I was looking at another device: https://github.com/robotology/icub-main/tree/master/src/libraries/icubmod/xsensmtx
I do not know either! Good catch, I did not notice that! |
From what I recall the one w/ the x was the one used in the iCubGenova01 head (see https://github.com/robotology/robots-configuration/blob/master/robots-icebox/iCubGenova01/hardware/inertials/head-inertial.xml) I am not aware if it is used by other robots. In general, seems to be used by old robots: https://github.com/search?q=repo%3Arobotology%2Frobots-configuration%20xsensmtx&type=code Maybe @traversaro or @GiulioRomualdi can give more info on the difference between the two. In any case this problem has been fixed. Closing |
There are still robots that we maintain that are equipped with this device. Examples:
So, we ought to keep the device. |
Hello,
I started using the
waist_imu
onergocubSN000
with the actual configurations available onergocub-torso
inrobots-configuration
.The yarprobotinterface starts correctly and the device is found, however the measurements from the port
/ergocub/waist/inertials/measures:o
are always the same and don't change (same timestamp on all messages).Here's a sample of the message red from the console:
Here are the config files used:
ecub-imu.xml
And waist-inertials_wrapper.xml
cc. @randaz81 @Nicogene
The text was updated successfully, but these errors were encountered: