-
Notifications
You must be signed in to change notification settings - Fork 0
/
SITL
62 lines (50 loc) · 2.26 KB
/
SITL
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
SITL map console
step 1 terminal 1
dronekit-sitl copter
step 2 terminal 2
mavproxy.py --master tcp:127.0.0.1:5760 --sitl 127.0.0.1:5501 --out 127.0.0.1:14550 --out 127.0.0.1:14551 --map
step 3 (optional) open Qgc to control plane
step 4 terminal 3
python (filename) --connect 127.0.0.1:14550
SITL GAZEBO
step 1 open gazebo runway world
gazebo --verbose ~/ardupilot_gazebo/worlds/iris_arducopter_runway.world
step 2 open console to connect gazebo
cd ~/ardupilot/ArduCopter/
sim_vehicle.py -v ArduCopter -f gazebo-iris --console
#cd /path/to/PX4-Autopilot
#make px4_sitl gazebo
#For the full list of build targets run make px4_sitl list_vmd_make_targets (and filter on those that start with gazebo_).
#LIST :
Quadrotor - make px4_sitl gazebo
Quadrotor with Optical Flow - make px4_sitl gazebo_iris_opt_flow
3DR Solo (Quadrotor) - make px4_sitl gazebo_solo
Typhoon H480 (Hexrotor) (supports video streaming) - make px4_sitl gazebo_typhoon_h480
Standard Plane - make px4_sitl gazebo_plane
Standard Plane (with catapult launch) - make px4_sitl gazebo_plane_catapult
Standard VTOL - make px4_sitl gazebo_standard_vtol
Tailsitter VTOL - make px4_sitl gazebo_tailsitter
Ackerman vehicle (UGV/Rover) - make px4_sitl gazebo_rover
HippoCampus TUHH (UUV: Unmanned Underwater Vehicle) - make px4_sitl gazebo_uuv_hippocampus
Boat (USV: Unmanned Surface Vehicle) - make px4_sitl gazebo_boat
Cloudship (Airship) - make px4_sitl gazebo_cloudship
step 3 (optional) open new terminal to give command
cd ~/ardupilot/ArduCopter
sim_vehicle.py -w
step 5 open new terminal and run the script
python (filename)
reference
https://github.com/punkypankaj/Installing-ArduPilot-directory/blob/main/docs.md
https://github.com/punkypankaj/Installing-Gazebo-and-ArduPilot-Plugin/blob/main/Docs.md
https://www.theconstructsim.com/how-to-install-ros-on-ubuntu/
https://docs.px4.io/master/en/simulation/gazebo.html
https://github.com/PX4/PX4-SITL_gazebo
http://gazebosim.org/tutorials?tut=install_other_linux&cat=install
http://gazebosim.org/tutorials?tut=install_ubuntu&cat=install
https://docs.px4.io/master/en/dev_setup/building_px4.html
https://docs.px4.io/master/en/dev_setup/dev_env_linux_ubuntu.html
MAP AND CONSOLE SIMULATION
step 1 terminal 1
sim_vehicle.py -v ArduCopter --map --console
step 2 terminal 2
pyhton (script.py)