ubuntu20.04+ros noetic: 运行 roslaunch文件 Invalid <param> tag: Cannot load command parameter

对应的是重德智能的教程,运行roslaunch robot_sim_demo robot_spawn.launch 后的报错

出现的错误:

ubuntu20.04+ros noetic: 运行 roslaunch文件 Invalid <param> tag: Cannot load command parameter_第1张图片出现错误的文件路径(就是上图中红色前两行显示的路径):

/home/chester/catkin_ws/src/ROS-Academy-for-Beginners/robot_sim_demo/launch/include/xbot-u.launch.xml

 根据路径找到 xbot-u.launch.xml 文件并用文本编辑器打开,如下:



  
  
  
  

  
  

  
  
  
  

  

  
  

  
    


  
  
    
  

  
  

  
  

  
  
  
    
    
  


 找到与错误中对应的一行代码,本例如下:

 将其中的 xacro.py 的.py去掉后保存文档,如下:

 终端重新运行roslaunch文件即可。

参考:https://blog.csdn.net/qq_29710939/article/details/117035802

你可能感兴趣的:(ros,ubuntu)