-
Notifications
You must be signed in to change notification settings - Fork 33
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
iCub >= V2.6 urdfs have the imu frame oriented as the V2.5 #230
Comments
Today I tried to export the urdf without the V2_5 <gazebo reference="head">
<sensor name="head_imu_0" type="imu">
<always_on>1</always_on>
<update_rate>100</update_rate>
<pose>0.009500000190735 0.133444 0.009299999999999996 -1.5707963267948963 1.5707963267948963 0.0</pose>
<plugin name="iCub_yarp_gazebo_plugin_IMU" filename="libgazebo_yarp_imu.so">
<yarpConfigurationFile>model://iCub/conf/gazebo_icub_inertial.ini</yarpConfigurationFile>
</plugin>
</sensor>
</gazebo>
<sensor name="head_imu_0" type="accelerometer">
<parent link="head"/>
<origin rpy="-1.5707963267948963 1.5707963267948963 0.0" xyz="0.009500000190735 0.133444 0.009299999999999996"/>
</sensor> V2_7 <gazebo reference="head">
<sensor name="head_imu_0" type="imu">
<always_on>1</always_on>
<update_rate>100</update_rate>
<pose>0.023453700190734995 0.20544400000000002 -0.023077900000000023 1.5707963267948997 -3.4914813388431334e-15 0.0</pose>
<plugin name="iCub_yarp_gazebo_plugin_IMU" filename="libgazebo_yarp_imu.so">
<yarpConfigurationFile>model://iCub/conf/gazebo_icub_inertial.ini</yarpConfigurationFile>
</plugin>
</sensor>
</gazebo>
<sensor name="head_imu_0" type="accelerometer">
<parent link="head"/>
<origin rpy="1.5707963267948997 -3.4914813388431334e-15 0.0" xyz="0.023453700190734995 0.20544400000000002 -0.023077900000000023"/>
</sensor> So probably it is the |
This PR fixes this problem: Unfortunately the On the other hand, |
So, the frame name for the imu in the urdf is still cc @Nicogene |
Exaclty V2_5 <link name="head_imu_0"/>
<joint name="head_imu_0_fixed_joint" type="fixed">
<origin xyz="0.009500000190735 0.133444 0.009299999999999996" rpy="-1.5707963267948961 1.570796326794896 0"/>
<parent link="head"/>
<child link="head_imu_0"/>
<dynamics damping="0.1"/>
</joint> V2_7 <link name="head_imu_0"/>
<joint name="head_imu_0_fixed_joint" type="fixed">
<origin xyz="0.023453700190734995 0.20544400000000002 -0.023077900000000023" rpy="1.5707963267948997 0 0"/>
<parent link="head"/>
<child link="head_imu_0"/>
<dynamics damping="0.1"/>
</joint> |
Great, thank you! |
Closing since now V2_5 and V2_6/7 have the frames oriented differently |
Today @martinaxgloria and I noticed that the
imu_frame
disappeared when I made the PR inicub-models-generator
that exports the sensors frames:head_imu_0
took its place, but the problem is that this frame does not incorporate theadditionalTransformation
from the old imu frame (iCub v2.5) to the frame of the rfe.You can see that in iCub 2.5 and 2.7 they have the same orientation.
icub-models/iCub/robots/iCubGazeboV2_5/model.urdf
Lines 986 to 992 in 453d9ed
icub-models/iCub/robots/iCubGazeboV2_5/model.urdf
Line 2684 in 453d9ed
icub-models/iCub/robots/iCubGazeboV2_7/model.urdf
Lines 986 to 992 in 453d9ed
icub-models/iCub/robots/iCubGazeboV2_7/model.urdf
Line 2700 in 453d9ed
If we read from the real imu and compare what we read in simulation we should notice this discrepancy
cc @traversaro @pattacini
The text was updated successfully, but these errors were encountered: