Skip to content

Commit

Permalink
arch.sh: add gazebo installation
Browse files Browse the repository at this point in the history
  • Loading branch information
MaEtUgR committed Oct 12, 2019
1 parent 803a719 commit 7dd1be6
Showing 1 changed file with 28 additions and 1 deletion.
29 changes: 28 additions & 1 deletion Tools/setup/arch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,14 @@
## - Common dependencies and tools for nuttx, jMAVSim
## - NuttX toolchain (omit with arg: --no-nuttx)
## - jMAVSim simulator (omit with arg: --no-sim-tools)
## - Gazebo simulator (not by default, use --gazebo)
##
## Not Installs:
## - Gazebo simulation
## - FastRTPS and FastCDR

INSTALL_NUTTX="true"
INSTALL_SIM="true"
INSTALL_GAZEBO="false"

# Parse arguments
for arg in "$@"
Expand All @@ -26,6 +27,9 @@ do
INSTALL_SIM="false"
fi

if [[ $arg == "--gazebo" ]]; then
INSTALL_GAZEBO="true"
fi
done

# script directory
Expand Down Expand Up @@ -119,6 +123,29 @@ if [[ $INSTALL_SIM == "true" ]]; then
ant \
jdk8-openjdk \
;

# Simulation tools
if [[ $INSTALL_GAZEBO == "true" ]]; then
echo
echo "Installing gazebo and dependencies for PX4 simulation"

# java (jmavsim or fastrtps)
sudo pacman -S --noconfirm --needed \
eigen3 \
hdf5 \
opencv \
protobuf \
vtk \
yay \
;

yay -S gazebo --noconfirm

if sudo dmidecode -t system | grep -q "Manufacturer: VMware, Inc." ; then
# fix VMWare 3D graphics acceleration for gazebo
echo "export SVGA_VGPU10=0" >> ~/.profile
fi
fi
fi

if [[ $INSTALL_NUTTX == "true" ]]; then
Expand Down

0 comments on commit 7dd1be6

Please sign in to comment.