forked from FieldRobotEvent/Virtual_Field_Robot_Event_21
-
Notifications
You must be signed in to change notification settings - Fork 0
/
install_requirements.sh
executable file
·47 lines (36 loc) · 1.65 KB
/
install_requirements.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#!/bin/bash
#
# This file configures the working environment for the Field Robot Event
#
# Author: Thijs Ruigrok
# email: [email protected]
echo "Please wait while your working environment is setup"
# Change the workspace_root to the root of you workspace
workspace_root="$HOME/catkin_ws"
# install git and configure git
apt-get -y install git
# install ROS melodic
# =======================================
# your computer must accept packages from ros
sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list'
apt-key adv --keyserver 'hkp://keyserver.ubuntu.com:80' --recv-key C1CF6E31E6BADE8868B172B4F42ED6FBAB17C654
apt-get update
# install ros melodic
apt-get -y install ros-melodic-desktop-full
apt-get update
apt-get -y upgrade
# needed for the jackal accessoires
sudo apt-get -y install ros-melodic-pointgrey-camera-description
sudo apt-get -y install ros-melodic-robot-localization
sudo apt-get -y install ros-melodic-twist-mux
sudo apt-get -y install ros-melodic-interactive-marker-twist-server
sudo apt-get -y install ros-melodic-hector-gazebo-plugins
# needed for the virtual maize field
sudo apt -y install python-pip python3-pip
sudo pip install -U pip && pip3 install -U pip
sudo pip install -U jinja2 rospkg
sudo pip3 install -U jinja2 rospkg opencv-python matplotlib shapely
# add ros to the bashrc
grep -q -F "source /opt/ros/melodic/setup.bash" ~/.bashrc || echo "source /opt/ros/melodic/setup.bash" >> ~/.bashrc
# automatically source the simple world workspace
grep -q -F "source $workspace_root/devel/setup.bash" ~/.bashrc || echo "source $workspace_root/devel/setup.bash" >> ~/.bashrc