我完成了快速启动指南 for Foxy。一切都很顺利。
我在WSL2 Windows 11上使用Ubuntu20.04。
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 20.04.5 LTS
Release: 20.04
Codename: focal$ printenv ROS_DISTRO
foxy$ gazebo -version
Gazebo multi-robot simulator, version 11.11.0
Copyright (C) 2012 Open Source Robotics Foundation.
Released under the Apache 2 License.
http://gazebosim.org
Gazebo multi-robot simulator, version 11.11.0
Copyright (C) 2012 Open Source Robotics Foundation.
Released under the Apache 2 License.
http://gazebosim.org但是,当尝试运行模拟时
$ export TURTLEBOT3_MODEL=burger
$ ros2 launch turtlebot3_gazebo empty_world.launch.py它的消息失败了
Package 'turtlebot3_gazebo' not found: "package 'turtlebot3_gazebo' not found, searching: ['/opt/ros/foxy']"怎么修呢?我在Reddit上找到了一个类似的线程,但没有多大帮助。
发布于 2022-11-04 04:48:35
正如@Bilal在评论中指出的,我通过运行
sudo apt-install ros-foxy-turtlebot3-gazebo然后,运行模拟:
set env export TURTLEBOT3_MODEL=burger
run ros2 launch turtlebot3_gazebo turtlebot3_world.launch.py结果:

https://stackoverflow.com/questions/74282723
复制相似问题