我使用的是macosm1。我安装了Python,我创建了一个envoirement的ROS。我安装了ROS,而且gazebo是安装了ROS的。所以我没有做任何事情来安装gazebo。因为在ros安装gazebo之后就准备好了。我想使用ardupilot_我看了这个网站https://ardupilot.org/dev/docs/sitl-with-gazebo.html .第一步是安装SITL.我已经安装了SITL.它可以运行.运行后SITL它们是自动连接的。我想把gazebo连接到SITL。我安装了ardupilot_gazebo pulgins。我尝试了这个步骤:
cd ardupilot_gazebo
mkdir build && cd build
字符串
是不存在问题的
然而当我尝试
cmake .. -DCMAKE_BUILD_TYPE=RelWithDebInfo
型
我把这个错误:
CMake Error at CMakeLists.txt:19 (find_package):
By not providing "Findgz-cmake3.cmake" in CMAKE_MODULE_PATH this project
has asked CMake to find a package configuration file provided by
"gz-cmake3", but CMake did not find one.
Could not find a package configuration file provided by "gz-cmake3" with
any of the following names:
gz-cmake3Config.cmake
gz-cmake3-config.cmake
Add the installation prefix of "gz-cmake3" to CMAKE_PREFIX_PATH or set
"gz-cmake3_DIR" to a directory containing one of the above files. If
"gz-cmake3" provides a separate development package or SDK, be sure it has
been installed.
型
我想在我的mac里没有在ROS环境里的凉亭。但是我在ROS环境里的终端里写凉亭,凉亭是打开的。我看到这个代码gz sim -v4 -r shapes.sdf
在网站里检查凉亭。然后我写到ROS。然后我看到
(ROS) halitsen@halit-MacBook-Air build % gz sim -v4 -r shapes.sdf
Invalid arguments
(ROS) halitsen@halit-MacBook-Air build %
的
但是ROS里面有凉亭,我想是有凉亭的,但是我是用ROS安装的,cmake在找凉亭连接SITL的时候,因为凉亭是用ROS安装的,所以找不到凉亭。
我该如何才能解决这个问题?
我试着在macbook air m1芯片中连接gazebo和SITL以及Qgroundcontrol与Python环境。
1条答案
按热度按时间c6ubokkw1#
要检查露台,您可以尝试
gazebo /usr/share/gazebo/worlds/shapes.world
命令可能看起来像:
gazebo full/path/to/the/shapes.world