1.urdf中的关节无法加载到gazebo
[error]:This robot has a joint named “joint_1” which is not in the gazebo model.
原因:urdf的link标签下的惯性设置问题
2.urdf的标签缺少hardware_interface/
[ WARN] [1592977254.131172803, 0.157000000]: Deprecated syntax, please prepend ‘hardware_interface/’ to ‘PositionJointInterface’ within the tag in joint ‘shoulder_pan_joint’.
已解决。
提示已经很明显了,把下面的标签
<hardwareInterface>PositionJointInterface</hardwareInterface>
换成这个:
<hardwareInterface>hardware_interface/PositionJointInterface</hardwareInterface>
3.没有指定pid
No p gain specified for pid
2.http://www.dtmao.cc/news_show_494301.shtml
3.https://www.pianshen.com/article/44461332312/
虽然3个都差不多但还是建议都打开看看
4.urdf文件和python编码冲突导致无法加载参数服务器
UnicodeEncodeError: ‘ascii’ codec can’t encode characters in position 0-1: ordinal not in range
urdf采用UTF-8的编码方式,而python默认采用ascll码
已解决
参考(一个是原因,一个是解决办法):
https://www.cnblogs.com/excellentlhw/p/10916953.html
https://blog.csdn.net/weixin_39221360/article/details/79525341
解决方法有三种: