Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
wolf_scripts
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mobile_robotics
wolf_projects
wolf_scripts
Commits
c352b357
Commit
c352b357
authored
3 years ago
by
Joan Vallvé Navarro
Browse files
Options
Downloads
Patches
Plain Diff
removed all sudo
parent
26db663b
No related branches found
No related tags found
No related merge requests found
Pipeline
#8473
canceled
3 years ago
Stage: install
Stage: test
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
README.md
+5
-0
5 additions, 0 deletions
README.md
install_wolf.sh
+21
-23
21 additions, 23 deletions
install_wolf.sh
with
26 additions
and
23 deletions
README.md
+
5
−
0
View file @
c352b357
# wolf_installer
This repository has an script to install the wolf library (core and plugins) along with its dependencies.
This project is not meant to be cloned but to download the script (
``install_wolf.sh``
).
The
``expect``
script
``auto_script_wolf``
is used by the continuous integration to test the installation script in different ubuntu distributions.
\ No newline at end of file
This diff is collapsed.
Click to expand it.
install_wolf.sh
+
21
−
23
View file @
c352b357
...
...
@@ -53,9 +53,7 @@ fi
if
[
$VERBOSE
==
"true"
]
;
then
echo
"Installing dependencies via apt install..."
fi
sudo
apt
install
-y
git wget unzip dh-autoreconf cmake build-essential libgoogle-glog-dev libgflags-dev libatlas-base-dev libsuitesparse-dev git libboost-all-dev libyaml-cpp-dev wget unzip
apt
install
-y
git wget unzip dh-autoreconf cmake build-essential libgoogle-glog-dev libgflags-dev libatlas-base-dev libsuitesparse-dev git libboost-all-dev libyaml-cpp-dev wget unzip
# Eigen
# Ubuntu 16.04 - Eigen 3.3.7 required
...
...
@@ -71,12 +69,12 @@ if [ $UBUNTU_DISTRO == "16.04" ]; then
mkdir
build
cd
build
cmake ..
sudo
make
install
make
install
else
if
[
$VERBOSE
==
"true"
]
;
then
echo
"Installing Eigen 3 via apt install"
fi
sudo
apt
install
-y
libeigen3-dev
apt
install
-y
libeigen3-dev
fi
# ceres
...
...
@@ -92,7 +90,7 @@ mkdir -p build && cd build
cmake
-DCMAKE_BUILD_TYPE
=
Release ..
make
-j
$CORES
make
test
sudo
make
install
make
install
# spdlog
if
[
$VERBOSE
==
"true"
]
;
then
...
...
@@ -106,7 +104,7 @@ git pull
mkdir
-p
build
&&
cd
build
cmake
-DCMAKE_BUILD_TYPE
=
Release
-DCMAKE_CXX_FLAGS
=
"
${
CMAKE_CXX_FLAGS
}
-fPIC"
..
make
-j
$CORES
sudo
make
install
make
install
# WOLF #####################################################
...
...
@@ -145,7 +143,7 @@ make -j$CORES
if
[
$VERBOSE
==
"true"
]
;
then
echo
"Installing wolf core..."
fi
sudo
make
install
make
install
if
[
$VERBOSE
==
"true"
]
;
then
echo
"Testing wolf core..."
...
...
@@ -177,7 +175,7 @@ if [ $INSTALL_IMU == "y" ]; then
if
[
$VERBOSE
==
"true"
]
;
then
echo
"Installing plugin imu..."
fi
sudo
make
install
make
install
if
[
$VERBOSE
==
"true"
]
;
then
echo
"Testing plugin imu..."
...
...
@@ -205,7 +203,7 @@ if [ $INSTALL_GNSS == "y" ]; then
cmake
-DCMAKE_BUILD_TYPE
=
Release
-DBUILD_DEMOS
=
ON
-DBUILD_TESTS
=
ON ..
make
-j
$CORES
ctest
-j
$CORES
sudo
make
install
make
install
if
[
$VERBOSE
==
"true"
]
;
then
echo
"Cloning plugin gnss..."
...
...
@@ -226,7 +224,7 @@ if [ $INSTALL_GNSS == "y" ]; then
if
[
$VERBOSE
==
"true"
]
;
then
echo
"Installing plugin gnss..."
fi
sudo
make
install
make
install
if
[
$VERBOSE
==
"true"
]
;
then
echo
"Testing plugin gnss..."
...
...
@@ -258,7 +256,7 @@ if [ $INSTALL_LASER == "y" ]; then
mkdir
-p
build
&&
cd
build
cmake
-DCMAKE_BUILD_TYPE
=
Release ..
make
-j
$CORES
sudo
make
install
make
install
else
if
[
$VERBOSE
==
"true"
]
;
then
echo
"Skipping CSM."
...
...
@@ -275,7 +273,7 @@ if [ $INSTALL_LASER == "y" ]; then
mkdir
-p
build
&&
cd
build
cmake
-DCMAKE_BUILD_TYPE
=
Release ..
make
-j
$CORES
sudo
make
install
make
install
else
if
[
$VERBOSE
==
"true"
]
;
then
echo
"Skipping Falko."
...
...
@@ -287,21 +285,21 @@ if [ $INSTALL_LASER == "y" ]; then
echo
"Installing laser_scan_utils (required)..."
fi
cd
$DEPS_PATH
sudo
ldconfig
ldconfig
git clone https://gitlab.iri.upc.edu/labrobotica/algorithms/laser_scan_utils.git
cd
laser_scan_utils
mkdir
-p
build
&&
cd
build
cmake
-DCMAKE_BUILD_TYPE
=
Release ..
make
-j
$CORES
ctest
-j
$CORES
sudo
make
install
make
install
# PLUGIN
if
[
$VERBOSE
==
"true"
]
;
then
echo
"Cloning plugin laser..."
fi
cd
$WOLF_PATH
sudo
ldconfig
ldconfig
git clone https://gitlab.iri.upc.edu/mobile_robotics/wolf_projects/wolf_lib/plugins/laser.git
cd
laser
git pull
...
...
@@ -317,12 +315,12 @@ if [ $INSTALL_LASER == "y" ]; then
if
[
$VERBOSE
==
"true"
]
;
then
echo
"Installing plugin laser..."
fi
sudo
make
install
make
install
if
[
$VERBOSE
==
"true"
]
;
then
echo
"Testing plugin laser..."
fi
sudo
ldconfig
ldconfig
ctest
-j
$CORES
else
if
[
$VERBOSE
==
"true"
]
;
then
...
...
@@ -353,7 +351,7 @@ if [ $INSTALL_VISION == "y" ]; then
cd
build
cmake
-D
CMAKE_BUILD_TYPE
=
Release
-D
CMAKE_INSTALL_PREFIX
=
/usr/local
-D
CMAKE_CXX_FLAGS
=
"-fPIC -std=c++14"
-D
OPENCV_EXTRA_MODULES_PATH
=
../opencv_contrib/modules ..
make
-j8
sudo
make
install
make
install
if
[
$VERBOSE
==
"true"
]
;
then
echo
"Cloning plugin vision..."
...
...
@@ -374,7 +372,7 @@ if [ $INSTALL_VISION == "y" ]; then
if
[
$VERBOSE
==
"true"
]
;
then
echo
"Installing plugin vision..."
fi
sudo
make
install
make
install
if
[
$VERBOSE
==
"true"
]
;
then
echo
"Testing plugin vision..."
...
...
@@ -402,7 +400,7 @@ if [ $INSTALL_VISION == "y" ]; then
cmake
-DCMAKE_BUILD_TYPE
=
Release ..
make
-j
$CORES
ctest
-j
$CORES
sudo
make
install
make
install
if
[
$VERBOSE
==
"true"
]
;
then
echo
"Cloning plugin apriltag..."
...
...
@@ -423,7 +421,7 @@ if [ $INSTALL_VISION == "y" ]; then
if
[
$VERBOSE
==
"true"
]
;
then
echo
"Installing plugin apriltag..."
fi
sudo
make
install
make
install
if
[
$VERBOSE
==
"true"
]
;
then
echo
"Testing plugin apriltag..."
...
...
@@ -465,7 +463,7 @@ if [ $INSTALL_IMU == "y" ]; then
if
[
$VERBOSE
==
"true"
]
;
then
echo
"Installing plugin bodydynamics..."
fi
sudo
make
install
make
install
if
[
$VERBOSE
==
"true"
]
;
then
echo
"Testing plugin bodydynamics..."
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment