Được TopGit lập chỉ mục từ metadata GitHub: ArduPilot/ardupilot_gazebo có 241 sao, viết chủ yếu bằng C++. Plugins and models for vehicle simulation in Gazebo Sim with ArduPilot SITL controllers
Tóm tắt dựng từ metadata GitHub của chính dự án — chưa có bài review TopGit. Trang sẽ tự động cập nhật khi bài review đầy đủ được xuất bản.
VÌ SAO CHƯA CÓ REVIEW
TopGit viết bài đầy đủ cho repo có nhiều sao nhất và được yêu cầu nhiều nhất. Trang này là snapshot trong thời gian chờ — xem README gốc ở tab READ ME.
This is the official ArduPilot plugin for Gazebo.
It replaces the previous
ardupilot_gazebo
plugin and provides support for the recent releases of the Gazebo simulator:
Gazebo Garden, Gazebo Harmonic (LTS), Gazebo Ionic and Gazebo Jetty (LTS).
It also adds the following features:
More flexible data exchange between SITL and Gazebo using JSON.
Additional sensors supported.
True simulation lockstepping. It is now possible to use GDB to stop
the Gazebo time for debugging.
Improved 3D rendering using the ogre2 rendering engine.
The project comprises a Gazebo plugin to connect to ArduPilot SITL
(Software In The Loop) and some example models and worlds.
Prerequisites
Gazebo Garden or Harmonic is supported on Ubuntu 22.04 (Jammy).
Harmonic is recommended.
If you are running Ubuntu as a virtual machine you will need at least
Ubuntu 20.04 in order to have the OpenGL support required for the
ogre2 render engine. Gazebo and ArduPilot SITL will also run on macOS
(Big Sur, Monterey and Venturua; Intel and M1 devices).
Follow the instructions for a binary install of
Gazebo Garden or Gazebo Harmonic or Gazebo Ionic
and verify that Gazebo is running correctly.
Set up an ArduPilot development environment.
In the following it is assumed that you are able to run ArduPilot SITL using
the MAVProxy GCS.
Set GZ_VERSION=jetty when building, Harmonic is the default.
Rosdep
Use rosdep with
osrf's rosdep rules
to manage all dependencies. This is driven off of the environment variable GZ_VERSION.
export GZ_VERSION=harmonic # or garden or ionic
sudo bash -c 'wget https://raw.githubusercontent.com/osrf/osrf-rosdep/master/gz/00-gazebo.list -O /etc/ros/rosdep/sources.list.d/00-gazebo.list'
rosdep update
rosdep resolve gz-harmonic # or gz-garden or gz-ionic
# Navigate to your ROS workspace before the next command.
rosdep install --from-paths src --ignore-src -y
Ensure the GZ_VERSION environment variable is set to either
garden, harmonic, ionic or jetty.
Clone the repo and build:
git clone https://github.com/ArduPilot/ardupilot_gazebo
cd ardupilot_gazebo
mkdir build && cd build
cmake .. -DCMAKE_BUILD_TYPE=RelWithDebInfo
make -j4
Configure
Set the Gazebo environment variables in your .bashrc or .zshrc or in
the terminal used to run Gazebo.
Terminal
Assuming that you have cloned the repository to $HOME/ardupilot_gazebo:
Reload your terminal with source ~/.bashrc (or source ~/.zshrc on macOS).
Usage
1. Iris quad-copter
Run Gazebo
gz sim -v4 -r iris_runway.sdf
The -v4 parameter is not mandatory, it shows additional information and is
useful for troubleshooting.
Run ArduPilot SITL
To run an ArduPilot simulation with Gazebo, the frame should have gazebo-
in it and have JSON as model. Other commandline parameters are the same
as usual on SITL.
To see the effect of the speed-up set the param SIM_SPEEDUP to a value
greater than one:
MANUAL> param set SIM_SPEEDUP 10
3. Streaming camera video
Images from camera sensors may be streamed with GStreamer using
the GstCameraPlugin sensor plugin. The example gimbal models include the
plugin element:
Video is encoded in H.264 with nvh264enc when <use_cuda> is true.
Otherwise, when <use_vaapi> is true (the default), the plugin uses the
VA-API hardware encoder vah264enc (Intel and AMD GPUs, from
gstreamer1.0-plugins-bad with a VA driver such as mesa-va-drivers or
intel-media-va-driver) when one is available, and falls back to the software
encoder x264enc from gstreamer1.0-plugins-ugly.
The <image_topic> and <enable_topic> parameters are deduced from the
topic name for the camera sensor, but may be overriden if required.
The gimbal.sdf world includes a 3 degrees of freedom gimbal with a
zoomable camera. To start streaming:
In addition to the Iris and Zephyr models included here, a selection
of models configured use the ArduPilot Gazebo plugin is available in
ArduPilot/SITL_Models.
Click on the images to see further details.
Development
The checks run in CI can be run locally with pre-commit:
pipx install pre-commit
pre-commit install # run the checks on every commit
pre-commit run --all-files # run all checks now
The cppcheck and check-sdf hooks need cppcheck and Gazebo installed,
skip them with SKIP=cppcheck,check-sdf otherwise. The SDF files can also be
checked directly with scripts/check_sdf.sh [file.sdf ...].
Troubleshooting
For issues concerning installing and running Gazebo on your platform please
consult the Gazebo documentation for troubleshooting frequent issues.
ArduPilot/ardupilot_gazebo có 241 sao GitHub — tải lại trang để xem số mới nhất, hoặc xem trực tiếp github.com/ArduPilot/ardupilot_gazebo. TopGit phản chiếu số sao của GitHub nhưng không cam kết đến từng phút.
ArduPilot/ardupilot_gazebo có phải mã nguồn mở không?
Có — ArduPilot/ardupilot_gazebo phát hành theo license LGPL-3.0, nghĩa là mã nguồn mở để đọc, fork và (tùy license) tái sử dụng. Mã: github.com/ArduPilot/ardupilot_gazebo.
ArduPilot/ardupilot_gazebo có website riêng không?
TopGit chưa ghi nhận URL trang chủ cho ArduPilot/ardupilot_gazebo. Phần README ở tab phía trên thường có link demo, hoặc xem mô tả GitHub của repo.
ArduPilot/ardupilot_gazebo là gì?
ArduPilot/ardupilot_gazebo (ArduPilot/ardupilot_gazebo) là dự án C++ trên GitHub. Theo mô tả gốc: Plugins and models for vehicle simulation in Gazebo Sim with ArduPilot SITL controllers
Đọc thêm về ArduPilot/ardupilot_gazebo ở đâu?
Trang TopGit này là một snapshot — tab "Readme" hiển thị nguyên văn README của repo (đã bỏ link, giữ ảnh). Repo GitHub ở github.com/ArduPilot/ardupilot_gazebo là nguồn chính thức.
Đọc đầy đủ README ở tab phía trên.
Chưa chắc ardupilot_gazebo có hợp với bạn?
Để ChatGPT, Claude hoặc Perplexity tìm hiểu giúp — bấm bên dưới và xem AI nói gì về ardupilot_gazebo.