Gazebo无法加载World

命令行:ros2 launch learning_gazebo load_urdf_into_gazebo.launch.py

错误:[ERROR] [spawn_entity.py-4]: process has died [pid 3040, exit code 1, cmd ‘/opt/ros/galactic/lib/gazebo_ros/spawn_entity.py -entity waffle -file /opt/ros/galactic/share/turtlebot3_gazebo/models/turtlebot3_waffle/model.sdf -x -2.0 -y -0.5 -z 0.01 --ros-args’].

首先判断是否将启动文件加入路径。

source /home/joey/dev_ws/install/local_setup.sh

其次判断模型是否添加路径。

export GAZEBO_MODEL_PATH=$GAZEBO_MODEL_PATH:/home/joey/.gazebo/model/gazebo_models

你可能感兴趣的:(Robot,机器人,自动驾驶,人工智能,机器学习,后端,linux,ubuntu)