Closed plumewind closed 3 years ago
Hello, when converting the URDF to SDF, fixed joints will be removed from the model. The attached links will instead be added to the parent link and, therefore, won't exist when trying to add the plugin. Links without inertia are ignored altogether. To fix your problem, you have to redesign your urdf and attach the sensor to a link, that won't be removed. Alternatively, you can preserve the joint with
<gazebo reference="JOINT_NAME_HERE">
<preserveFixedJoint>true</preserveFixedJoint>
</gazebo>
Thanks, I will have a try !
Thanks a lot.
I fixed it !
cool !
`
</gazebo>`
And I find a warning:
[ WARN] [1597752408.295953452]: The root link 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.
The root link with an inertia, the robot can be saw in gazebo. But if I wrote:
<link name="base_link"/>
There is no robot in gazebo.
Does it is same to this?
The root link will never be removed. An inertia tag is not required and, apparently, not supported by KDL. You can move the inertia tag to a chassis link and connect it with a fixed link.
Thanks, I fixed it.
hello,
When I use the plugin(gps, imu,etc are tested), I can not get the link of sensor, it report:link is not exist.
As a exmaple, a imu plugin, I put it on a robot, I wrote the urdf.xacro(a block):
` ......