ur机械臂利用moveit在gazebo在运行中遇到错误No matching hardware interface found 解决办法

根据连接https://github.com/ros-industrial/universal_robot下载UR机械臂模型,并尝试在gazebo中运行

 

按照各种教程,运行roslaunch ur_gazebo ur5.launch limited:=true,即可在gazebo中运行其模型,但本人在运行过程中显示如下错误:No matching hardware interface found for 'hardware_interface/PositionJointInterface

ur机械臂利用moveit在gazebo在运行中遇到错误No matching hardware interface found 解决办法

google了很多人的答案,对我都无效办法,偶然发现是路径问题

执行以下指令

source /opt/ros/indigo/setup.bash (ubuntu14.04+ros indigo版本)

再执行roslaunch ur_gazebo ur5.launch limited:=true指令,问题解决