mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-31 02:16:53 +08:00
Tools/setup/ubuntu.sh: fix for Ubuntu 20.04 - use gazebo11
This commit is contained in:
committed by
GitHub
parent
0a985638e3
commit
8350fa702b
@@ -176,10 +176,13 @@ if [[ $INSTALL_SIM == "true" ]]; then
|
|||||||
|
|
||||||
if [[ "${UBUNTU_RELEASE}" == "18.04" ]]; then
|
if [[ "${UBUNTU_RELEASE}" == "18.04" ]]; then
|
||||||
java_version=11
|
java_version=11
|
||||||
|
gazebo_version=9
|
||||||
elif [[ "${UBUNTU_RELEASE}" == "20.04" ]]; then
|
elif [[ "${UBUNTU_RELEASE}" == "20.04" ]]; then
|
||||||
java_version=14
|
java_version=14
|
||||||
|
gazebo_version=11
|
||||||
else
|
else
|
||||||
java_version=14
|
java_version=14
|
||||||
|
gazebo_version=11
|
||||||
fi
|
fi
|
||||||
# Java (jmavsim or fastrtps)
|
# Java (jmavsim or fastrtps)
|
||||||
sudo DEBIAN_FRONTEND=noninteractive apt-get -y --quiet --no-install-recommends install \
|
sudo DEBIAN_FRONTEND=noninteractive apt-get -y --quiet --no-install-recommends install \
|
||||||
@@ -197,14 +200,14 @@ if [[ $INSTALL_SIM == "true" ]]; then
|
|||||||
wget http://packages.osrfoundation.org/gazebo.key -O - | sudo apt-key add -
|
wget http://packages.osrfoundation.org/gazebo.key -O - | sudo apt-key add -
|
||||||
sudo DEBIAN_FRONTEND=noninteractive apt-get -y --quiet --no-install-recommends install \
|
sudo DEBIAN_FRONTEND=noninteractive apt-get -y --quiet --no-install-recommends install \
|
||||||
dmidecode \
|
dmidecode \
|
||||||
gazebo9 \
|
gazebo$gazebo_version \
|
||||||
gstreamer1.0-plugins-bad \
|
gstreamer1.0-plugins-bad \
|
||||||
gstreamer1.0-plugins-base \
|
gstreamer1.0-plugins-base \
|
||||||
gstreamer1.0-plugins-good \
|
gstreamer1.0-plugins-good \
|
||||||
gstreamer1.0-plugins-ugly \
|
gstreamer1.0-plugins-ugly \
|
||||||
gstreamer1.0-libav \
|
gstreamer1.0-libav \
|
||||||
libeigen3-dev \
|
libeigen3-dev \
|
||||||
libgazebo9-dev \
|
libgazebo$gazebo_version-dev \
|
||||||
libgstreamer-plugins-base1.0-dev \
|
libgstreamer-plugins-base1.0-dev \
|
||||||
libimage-exiftool-perl \
|
libimage-exiftool-perl \
|
||||||
libopencv-dev \
|
libopencv-dev \
|
||||||
|
|||||||
Reference in New Issue
Block a user