From 7911373f74c47a0093be20ce4af9e028664cb6b2 Mon Sep 17 00:00:00 2001 From: Oleg Kalachev Date: Sat, 4 Sep 2021 03:07:28 +0300 Subject: [PATCH] Fix jmavsim (#4) * Install jMAVSim dependencies * Restore jMAVSim desktop shortcut * Try running jmavsim on validation --- assets/desktop/jMAVSim.desktop | 10 ++++++++++ scripts/install_software.sh | 5 +++++ 2 files changed, 15 insertions(+) create mode 100644 assets/desktop/jMAVSim.desktop diff --git a/assets/desktop/jMAVSim.desktop b/assets/desktop/jMAVSim.desktop new file mode 100644 index 0000000..ab45987 --- /dev/null +++ b/assets/desktop/jMAVSim.desktop @@ -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 diff --git a/scripts/install_software.sh b/scripts/install_software.sh index ff7117a..397a274 100644 --- a/scripts/install_software.sh +++ b/scripts/install_software.sh @@ -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 @@ -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