「Linux 调试错误」Invalid tag: environment variable 'TURTLEBOT_GAZEBO_WORLD_FILE' is not set.

1.问题描述

在安装 turtlebot_gazebo仿真器时,出现如下错误:

~$ roslaunch turtlebot_gazebo turtlebot_world.launch
... logging to /home/anan/.ros/log/7ead04ea-63e6-11e9-94c2-9cf387dafe8c/roslaunch-ubuntu-31541.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.

Invalid <arg> tag: environment variable 'TURTLEBOT_GAZEBO_WORLD_FILE' is not set. 

Arg xml is <arg default="$(env TURTLEBOT_GAZEBO_WORLD_FILE)" name="world_file"/>
The traceback for the exception was written to the log file

2.错误原因

在安装过程中,本有选择文件环境位置的选项,但是因为没经验,在填写路径的地方未作任何输入,敲了个回车。

3.解决方法

重新配置环境

(1)初始化rosdep

$sudo rosdep init
$rosdep update

(2)环境设置

$echo "source /opt/ros/kinetic/setup.bash" >> ~/.bashrc
$source ~/.bashrc

×亲测有效

猜你喜欢

转载自blog.csdn.net/Robot_Starscream/article/details/89430473