Invalid

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Invalid相关的知识,希望对你有一定的参考价值。

问题
root@cc701cdd4bef:~/ankobot_catkin_ws# roslaunch turtlebot3_gazebo turtlebot3_house.launch 
... logging to /root/.ros/log/1454582a-7ee6-11ea-aae8-0242ac110003/roslaunch-cc701cdd4bef-12661.log
Checking log directory for disk usage. This may take awhile.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1GB.

No such file or directory: /root/ankobot_catkin_ws/src/turtlebot3/turtlebot3_description/urdf/turtlebot3_.urdf.xacro None None
Invalid <param> tag: Cannot load command parameter [robot_description]: command [/opt/ros/kinetic/lib/xacro/xacro --inorder /root/ankobot_catkin_ws/src/turtlebot3/turtlebot3_description/urdf/turtlebot3_.urdf.xacro] returned with code [2]. 

Param xml is <param command="$(find xacro)/xacro --inorder $(find turtlebot3_description)/urdf/turtlebot3_$(arg model).urdf.xacro" name="robot_description"/>
The traceback for the exception was written to the log file

原因

Invalid <param> tag: Cannot load command parameter [robot_description]:...

再看 /root/.ros/log/1454582a-7ee6-11ea-aae8-0242ac110003/roslaunch-cc701cdd4bef-12661.log 文件
[roslaunch.config][INFO] 2020-04-16 07:16:01,925: loading config file /root/ankobot_catkin_ws/src/turtlebot3_simulations/turtlebot3_gazebo/launch/turtlebot3_house.launch
[roslaunch][INFO] 2020-04-16 07:16:02,099: Added node of type [gazebo_ros/gzserver] in namespace [/]
[roslaunch][INFO] 2020-04-16 07:16:02,100: Added node of type [gazebo_ros/gzclient] in namespace [/]
[roslaunch][ERROR] 2020-04-16 07:16:02,679: Invalid <param> tag: Cannot load command parameter [robot_description]: command [/opt/ros/kinetic/lib/xacro/xacro --inorder /root/ankobot_catkin_ws/src/turtlebot3/turtlebot3_description/urdf/turtlebot3_.urdf.xacro] returned with code [2].

Param xml is <param command="$(find xacro)/xacro --inorder $(find turtlebot3_description)/urdf/turtlebot3_$(arg model).urdf.xacro" name="robot_description"/>
[roslaunch][ERROR] 2020-04-16 07:16:02,682: The traceback for the exception was written to the log file
[roslaunch][ERROR] 2020-04-16 07:16:02,683: Traceback (most recent call last):
  File "/opt/ros/kinetic/lib/python2.7/dist-packages/roslaunch/__init__.py", line 306, in main
    p.start()
  File "/opt/ros/kinetic/lib/python2.7/dist-packages/roslaunch/parent.py", line 268, in start
    self._start_infrastructure()
  File "/opt/ros/kinetic/lib/python2.7/dist-packages/roslaunch/parent.py", line 217, in _start_infrastructure
    self._load_config()
  File "/opt/ros/kinetic/lib/python2.7/dist-packages/roslaunch/parent.py", line 132, in _load_config
    roslaunch_strs=self.roslaunch_strs, verbose=self.verbose)
  File "/opt/ros/kinetic/lib/python2.7/dist-packages/roslaunch/config.py", line 453, in load_config_default
    raise RLException(e)
RLException: Invalid <param> tag: Cannot load command parameter [robot_description]: command [/opt/ros/kinetic/lib/xacro/xacro --inorder /root/ankobot_catkin_ws/src/turtlebot3/turtlebot3_description/urdf/turtlebot3_.urdf.xacro] returned with code [2].

Param xml is <param command="$(find xacro)/xacro --inorder $(find turtlebot3_description)/urdf/turtlebot3_$(arg model).urdf.xacro" name="robot_description"/>

[rospy.core][INFO] 2020-04-16 07:16:02,684: signal_shutdown [atexit]
原因就在这里
Invalid <param> tag: Cannot load command parameter [robot_description]: command [/opt/ros/kinetic/lib/xacro/xacro --inorder /root/ankobot_catkin_ws/src/turtlebot3/turtlebot3_description/urdf/turtlebot3_.urdf.xacro] returned with code [2].

没有识别出来 TURTLEBOT3_MODEL 变量值

~/ankobot_catkin_ws/src/turtlebot3_simulations/turtlebot3_gazebo/launch/turtlebot3_house.launch

技术图片

解决

执行如下赋值命令:
export TURTLEBOT3_MODEL=waffle_pi

提示

  1. 记得仔细看 log
  2. 记得仔细看 log
  3. 记得仔细看 log
  4. 不仔细看 log 的工程师不是一个好的文档工程师

参考:
Invalid <param> tag: Cannot load command parameter [robot_description]

以上是关于Invalid的主要内容,如果未能解决你的问题,请参考以下文章

如何在伪造查看器中将自定义材质添加到片段

使用 RelayRouter 导航 relay.js 应用程序抛出 Invalid State Change 错误

错误代码:“STATUS_INVALID_IMAGE_HASH”

错误代码:“STATUS_INVALID_IMAGE_HASH”

IBM MobileFirst 8 - 推送通知错误代码:invalid_client

SUN 基准代码 Invalid .mex 文件错误