ardupilot_gazebo

所属分类:虚拟/增强现实-VR/AR
开发工具:C++
文件大小:6071KB
下载次数:1
上传日期:2022-04-22 16:04:24
上 传 者sh-1993
说明:  ardupilot_gazebo,,
(ardupilot_gazebo,,)

文件列表:
CMakeLists.txt (6381, 2022-02-26)
LICENSE.md (35147, 2022-02-26)
cmake (0, 2022-02-26)
cmake\cmake_uninstall.cmake.in (953, 2022-02-26)
include (0, 2022-02-26)
include\ArduCopterIRLockPlugin.hh (2126, 2022-02-26)
include\ArduPilotPlugin.hh (3614, 2022-02-26)
include\GimbalSmall2dPlugin.hh (1480, 2022-02-26)
include\SelectionBuffer.hh (2420, 2022-02-26)
models (0, 2022-02-26)
models\iris_with_ardupilot (0, 2022-02-26)
models\iris_with_ardupilot\model.config (955, 2022-02-26)
models\iris_with_ardupilot\model.sdf (16733, 2022-02-26)
models\iris_with_standoffs (0, 2022-02-26)
models\iris_with_standoffs\meshes (0, 2022-02-26)
models\iris_with_standoffs\meshes\iris.dae (21644731, 2022-02-26)
models\iris_with_standoffs\meshes\iris_prop_ccw.dae (308284, 2022-02-26)
models\iris_with_standoffs\meshes\iris_prop_cw.dae (354209, 2022-02-26)
models\iris_with_standoffs\model.config (743, 2022-02-26)
models\iris_with_standoffs\model.sdf (13533, 2022-02-26)
src (0, 2022-02-26)
src\ArduCopterIRLockPlugin.cc (8828, 2022-02-26)
src\ArduPilotPlugin.cc (38734, 2022-02-26)
src\GimbalSmall2dPlugin.cc (4896, 2022-02-26)
worlds (0, 2022-02-26)
worlds\iris_arducopter_cmac.world (1291, 2022-02-26)
worlds\iris_arducopter_runway.world (2419, 2022-02-26)

# Ardupilot Gazebo plugin ## Requirements : Native Ubuntu able to run full 3D graphics. Gazebo version 8.x or greater The dev branch will works on gazebo >= 8.x For Gazebo 7 use branch gazebo7 ## Disclamer : This is a playground until I get some time to push the correct patch to gazebo master (I got hard time to work with mercurial..)! So you can expect things to not be up-to-date. This assume that your are using Ubuntu 16.04 or Ubuntu 18.04 ## Usage : I assume you already have Gazebo installed with ROS (or without). If you don't have it yet, install ROS with `sudo apt install ros-melodic-desktop-full` (follow instruction here http://wiki.ros.org/melodic/Installation/Ubuntu). Due to a bug in current gazebo release from ROS, please update gazebo with OSRF version from http://gazebosim.org/tutorials?tut=install_ubuntu libgazeboX-dev must be installed, X be your gazebo version (9 on ROS melodic). For Gazebo X ```` sudo apt-get install libgazeboX-dev ```` ```` git clone https://github.com/khancyr/ardupilot_gazebo cd ardupilot_gazebo mkdir build cd build cmake .. make -j4 sudo make install ```` ```` echo 'source /usr/share/gazebo/setup.sh' >> ~/.bashrc ```` Set Path of Gazebo Models (Adapt the path to where to clone the repo) ```` echo 'export GAZEBO_MODEL_PATH=~/ardupilot_gazebo/models' >> ~/.bashrc ```` Set Path of Gazebo Worlds (Adapt the path to where to clone the repo) ```` echo 'export GAZEBO_RESOURCE_PATH=~/ardupilot_gazebo/worlds:${GAZEBO_RESOURCE_PATH}' >> ~/.bashrc ```` ```` source ~/.bashrc ```` DONE ! Now launch a world file with a copter/rover/plane and ardupilot plugin, and it should work! (I will try to add some world file and model later) ## HELP How to Launch : Launch Ardupilot Software In the Loop Simulation for each vehicle. On new terminal, launch Gazebo with basic demo world. #####ROVER (no model provided for now) On 1st Terminal (Launch Ardupilot SITL) ```` sim_vehicle.py -v APMrover2 -f gazebo-rover --map --console ```` On 2nd Terminal (Launch Gazebo with demo Rover model) ```` gazebo --verbose worlds/ (Please Add if there is one.) ```` ##### COPTER On 1st Terminal (Launch Ardupilot SITL) ```` sim_vehicle.py -v ArduCopter -f gazebo-iris --map --console ```` On 2nd Terminal (Launch Gazebo with demo 3DR Iris model) ```` gazebo --verbose worlds/iris_arducopter_runway.world ```` ##### PLANE On 1st Terminal (Launch Ardupilot SITL) ```` sim_vehicle.py -v ArduPlane -f gazebo-zephyr --map --console ```` On 2nd Terminal (Launch Gazebo with demo Zephyr flying wing model) ```` gazebo --verbose worlds/zephyr_ardupilot_demo.world ```` In addition, you can use any GCS of Ardupilot locally or remotely (will require connection setup). If MAVProxy Developer GCS is uncomportable. Omit --map --console arguments out of SITL launch and use APMPlanner 2 or QGroundControl instead. Local connection with APMPlanner2/QGroundControl is automatic, and recommended. ## Troubleshooting ### Missing libArduPilotPlugin.so... etc In case you see this message when you launch gazebo with demo worlds, check you have no error after sudo make install. If no error use "ls" on the install path given to see if the plugin is really here. If this is correct, check with `cat /usr/share/gazebo/setup.sh` the variable `GAZEBO_PLUGIN_PATH`. It should be the same as the install path. If not use `cp` to copy the lib to right path. For Example ```` sudo cp -a /usr/lib/x86_***-linux-gnu/gazebo-7.0/plugins/ /usr/lib/x86_***-linux-gnu/gazebo-7/ ```` path mismatch is confirmed as ROS's glitch. It will be fixed. ### Future(not activated yet) To use Gazebo gps, you must offset the heading of +90° as gazebo gps is NWU and ardupilot is NED (I don't use GPS altitude for now) example : for SITL default location ```` EARTH_WGS84 -35.363261 149.165230 584 87 ```` Rangefinder

近期下载者

相关文件


收藏者