Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add ubuntu 22.04 openrave installation #30

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ Supported distros:
* Ubuntu 16.04
* Ubuntu 18.04
* Ubuntu 20.04
* Ubuntu 22.04

## Travis - Continuous Integration

Expand Down
6 changes: 3 additions & 3 deletions install-dependencies.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
# Check ubuntu version
UBUNTU_VER=$(lsb_release -sr)
if [ ${UBUNTU_VER} != '14.04' ] && [ ${UBUNTU_VER} != '16.04' ] && [ ${UBUNTU_VER} != '18.04' ] \
&& [ ${UBUNTU_VER} != '20.04' ]; then
&& [ ${UBUNTU_VER} != '20.04' ] && [ ${UBUNTU_VER} != '22.04' ]; then
echo "ERROR: Unsupported Ubuntu version: ${UBUNTU_VER}"
echo " Supported versions are: 14.04, 16.04, 18.04, and 20.04"
echo " Supported versions are: 14.04, 16.04, 18.04, 20.04 and 22.04"
exit 1
fi

Expand Down Expand Up @@ -72,7 +72,7 @@ fi
# Install boost
sudo apt-get install -y --no-install-recommends libboost-all-dev libboost-python-dev

if [ ${UBUNTU_VER} = '18.04' ] || [ ${UBUNTU_VER} = '20.04' ]; then
if [ ${UBUNTU_VER} = '18.04' ] || [ ${UBUNTU_VER} = '20.04' ] || [ ${UBUNTU_VER} = '22.04' ]; then
# Install opengl
pip install pyopengl

Expand Down
4 changes: 2 additions & 2 deletions install-fcl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
# Check ubuntu version
UBUNTU_VER=$(lsb_release -sr)
if [ ${UBUNTU_VER} != '14.04' ] && [ ${UBUNTU_VER} != '16.04' ] && [ ${UBUNTU_VER} != '18.04' ] \
&& [ ${UBUNTU_VER} != '20.04' ]; then
&& [ ${UBUNTU_VER} != '20.04' ] && [ ${UBUNTU_VER} != '22.04' ]; then
echo "ERROR: Unsupported Ubuntu version: ${UBUNTU_VER}"
echo " Supported versions are: 14.04, 16.04, 18.04, and 20.04"
echo " Supported versions are: 14.04, 16.04, 18.04, 20.04, and 22.04"
exit 1
fi

Expand Down
32 changes: 25 additions & 7 deletions install-openrave.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,23 @@
# Check ubuntu version
UBUNTU_VER=$(lsb_release -sr)
if [ ${UBUNTU_VER} != '14.04' ] && [ ${UBUNTU_VER} != '16.04' ] && [ ${UBUNTU_VER} != '18.04' ] \
&& [ ${UBUNTU_VER} != '20.04' ]; then
&& [ ${UBUNTU_VER} != '20.04' ] && [ ${UBUNTU_VER} != '22.04' ]; then
echo "ERROR: Unsupported Ubuntu version: ${UBUNTU_VER}"
echo " Supported versions are: 14.04, 16.04, 18.04, and 20.04"
echo " Supported versions are: 14.04, 16.04, 18.04, 20.04, and 22.04"
exit 1
fi

# Sympy version 0.7.1
echo ""
echo "Downgrading sympy to version 0.7.1..."
echo ""
pip install --upgrade --user sympy==0.7.1
# Install Sympy
# OpenRAVE
if [ ${UBUNTU_VER} = '22.04' ]; then
pip install sympy
else
# Sympy version 0.7.1
echo ""
echo "Downgrading sympy to version 0.7.1..."
echo ""
pip install --upgrade --user sympy==0.7.1
fi

# OpenRAVE
if [ ${UBUNTU_VER} = '14.04' ] || [ ${UBUNTU_VER} = '16.04' ]; then
Expand All @@ -36,7 +42,15 @@ elif [ ${UBUNTU_VER} = '18.04' ] || [ ${UBUNTU_VER} = '20.04' ]; then
echo ""
mkdir -p ~/git; cd ~/git
git clone -b production https://github.com/rdiankov/openrave.git
elif [ ${UBUNTU_VER} = '22.04' ]; then
RAVE_COMMIT=a982f0ac0b757787ab4c9a9af94f69795e8281cb
echo ""
echo "Installing OpenRAVE main (10th Feb 2023) from source (Commit ${RAVE_COMMIT})..."
echo ""
mkdir -p ~/git; cd ~/git
git clone -b production https://github.com/rdiankov/openrave.git
fi

cd openrave; git reset --hard ${RAVE_COMMIT}
mkdir build; cd build
if [ ${UBUNTU_VER} = '14.04' ] || [ ${UBUNTU_VER} = '16.04' ]; then
Expand All @@ -45,6 +59,10 @@ elif [ ${UBUNTU_VER} = '18.04' ] || [ ${UBUNTU_VER} = '20.04' ]; then
cmake -DODE_USE_MULTITHREAD=ON -DOSG_DIR=/usr/local/lib64/ \
-DUSE_PYBIND11_PYTHON_BINDINGS:BOOL=TRUE \
-DBoost_NO_BOOST_CMAKE=1 ..
elif [ ${UBUNTU_VER} = '22.04' ]; then
cmake -DODE_USE_MULTITHREAD=ON -DOSG_DIR=/usr/local/lib64/ \
-DUSE_PYBIND11_PYTHON_BINDINGS:BOOL=TRUE \
-DBoost_NO_BOOST_CMAKE=1 -DCMAKE_CXX_STANDARD=17 ..
fi
make -j `nproc`
sudo make install
7 changes: 4 additions & 3 deletions install-osg.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
# Check ubuntu version
UBUNTU_VER=$(lsb_release -sr)
if [ ${UBUNTU_VER} != '14.04' ] && [ ${UBUNTU_VER} != '16.04' ] && [ ${UBUNTU_VER} != '18.04' ] \
&& [ ${UBUNTU_VER} != '20.04' ]; then
&& [ ${UBUNTU_VER} != '20.04' ] && [ ${UBUNTU_VER} != '22.04' ]; then
echo "ERROR: Unsupported Ubuntu version: ${UBUNTU_VER}"
echo " Supported versions are: 14.04, 16.04, 18.04, and 20.04"
echo " Supported versions are: 14.04, 16.04, 18.04, 20.04, and 22.04"
exit 1
fi

Expand All @@ -28,7 +28,8 @@ mkdir build; cd build

if [ ${UBUNTU_VER} = '14.04' ]; then
cmake ..
elif [ ${UBUNTU_VER} = '16.04' ] || [ ${UBUNTU_VER} = '18.04' ] || [ ${UBUNTU_VER} = '20.04' ]; then
elif [ ${UBUNTU_VER} = '16.04' ] || [ ${UBUNTU_VER} = '18.04' ] || [ ${UBUNTU_VER} = '20.04' ] \
|| [ ${UBUNTU_VER} = '22.04' ]; then
cmake -DDESIRED_QT_VERSION=4 ..
fi
make -j `nproc`
Expand Down