Closed bsb808 closed 3 years ago
It seems this can be solved by adding following dummy joint to fix urdf format defined inertia. Will try and update.
above base_link
<link name="dummy">
</link>
below base_link
<joint name="dummy_joint" type="fixed">
<parent link="dummy"/>
<child link="base_link"/>
</joint>
Besides, the inertial matrix definition is going to be recalculated by the glider dynamics plugin (which is being developed) with Fossen's theory at line where inertial matrix is calculated in the plugin.
@M1chaelM @bsb808 I would say this is an intermediate error issue and not to be included as 'should be resolved before 2.0 release'.
For issue being This suggests that the rigid body inertia of the vehicle may not be set.
, my answer is the inertial matrix definition is going to be recalculated by the glider dynamics plugin
which is being developed and will be merged with the glider vehicle models later.
Currently, the inertial definitions at urdf are required for UUV_Simulator's uuv_underwater_object_ros_plugin
. The same warning msg was shown for UUV Simultor's Rexrov model demo. Regrettably, the dummy root link solution is denied by the plugin too. Unless all the plugins and sensors are stripped off for glider models, a new plugin should be used. I am working on a later solution (glider dynamics/kinematics plugins) with better dynamics for gliders targeting release 3.0.
Re-summarizing this subject. Problem:
[ WARN] [1599576113.958181542]: The root link vehicle_name/base_link has an inertia specified in the URDF, but KDL does not support a root link with an inertia. As a workaround, you can add an extra dummy link to your URDF.
roslaunch uuv_gazebo rexrov_default.launch
Also at the Dave's Rexrov,
roslaunch uuv_dave uuv_dave.launch
Conclusion: It's complaining that the Gazebo may not understand vehicle inertial properties. But as long as the underwater object plugin of the UUV simulator is being used, the hydrodynamics properties including inertial properties are working in place. Therefore, the warning message can be and should be ignored for our cases.
Running this command
generates a warning...
This suggests that the rigid body inertia of the vehicle may not be set.
I believe the slocum and wave glider examples have the same warning: https://github.com/Field-Robotics-Lab/dave/wiki/Glider-Models