mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-21 09:22:18 +00:00
arch.sh: add gazebo installation
This commit is contained in:
@@ -7,13 +7,14 @@
|
|||||||
## - Common dependencies and tools for nuttx, jMAVSim
|
## - Common dependencies and tools for nuttx, jMAVSim
|
||||||
## - NuttX toolchain (omit with arg: --no-nuttx)
|
## - NuttX toolchain (omit with arg: --no-nuttx)
|
||||||
## - jMAVSim simulator (omit with arg: --no-sim-tools)
|
## - jMAVSim simulator (omit with arg: --no-sim-tools)
|
||||||
|
## - Gazebo simulator (not by default, use --gazebo)
|
||||||
##
|
##
|
||||||
## Not Installs:
|
## Not Installs:
|
||||||
## - Gazebo simulation
|
|
||||||
## - FastRTPS and FastCDR
|
## - FastRTPS and FastCDR
|
||||||
|
|
||||||
INSTALL_NUTTX="true"
|
INSTALL_NUTTX="true"
|
||||||
INSTALL_SIM="true"
|
INSTALL_SIM="true"
|
||||||
|
INSTALL_GAZEBO="false"
|
||||||
|
|
||||||
# Parse arguments
|
# Parse arguments
|
||||||
for arg in "$@"
|
for arg in "$@"
|
||||||
@@ -26,6 +27,9 @@ do
|
|||||||
INSTALL_SIM="false"
|
INSTALL_SIM="false"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [[ $arg == "--gazebo" ]]; then
|
||||||
|
INSTALL_GAZEBO="true"
|
||||||
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
# script directory
|
# script directory
|
||||||
@@ -119,6 +123,29 @@ if [[ $INSTALL_SIM == "true" ]]; then
|
|||||||
ant \
|
ant \
|
||||||
jdk8-openjdk \
|
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
|
fi
|
||||||
|
|
||||||
if [[ $INSTALL_NUTTX == "true" ]]; then
|
if [[ $INSTALL_NUTTX == "true" ]]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user