Skip to content

Commit

Permalink
Fix jmavsim (#4)
Browse files Browse the repository at this point in the history
* Install jMAVSim dependencies

* Restore jMAVSim desktop shortcut

* Try running jmavsim on validation
  • Loading branch information
okalachev authored Sep 4, 2021
1 parent 45d5130 commit 7911373
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
10 changes: 10 additions & 0 deletions assets/desktop/jMAVSim.desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[Desktop Entry]
Version=1.0
Type=Application
Name=jMAVSim
Comment=A lightweight PX4 simulator
Exec=/bin/bash -c 'cd ~/PX4-Autopilot; make px4_sitl jmavsim'
Icon=openjdk-8
Path=
Terminal=true
StartupNotify=false
5 changes: 5 additions & 0 deletions scripts/install_software.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ git clone --recursive --depth 1 --branch v1.12.0 https://github.com/PX4/PX4-Auto
# PX4 v1.11.1 script will happily run sudo by itself
${HOME}/PX4-Autopilot/Tools/setup/ubuntu.sh
# Ubuntu 20.04 no longer sets assistive_technologies, thankfully
sudo -E sh -c 'apt-get install -y ant openjdk-11-jdk' # Additional packages for jMAVSim

echo "--- Prebuilding PX4 SITL configuration"
make -C ${HOME}/PX4-Autopilot px4_sitl
Expand Down Expand Up @@ -202,3 +203,7 @@ rosversion nodelet

echo "Trying running the Gazebo simulator, check the output"
timeout --preserve-status 30 roslaunch clover_simulation simulator.launch gui:=false --screen

echo "Trying running jMAVSim, check the output"
cd ~/PX4-Autopilot
HEADLESS=1 timeout --preserve-status 30 make px4_sitl jmavsim

0 comments on commit 7911373

Please sign in to comment.