-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.sh
62 lines (51 loc) · 1.59 KB
/
install.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
#!/bin/bash
if [ `whoami` != 'root' ]
then
echo "install.sh needs to be run with sudo!"
exit
fi
echo "installing auro environment..."
# prerequisites:
sudo apt -y install python3-pip
Create your catkin workspace:
cd ~
mkdir -p ~/catkin_ws/src
cd ~/catkin_ws
catkin init
cd src
# install ros noetic
sudo apt -y install ros-noetic-desktop-full
sudo apt -y install ros-noetic-lms1xx
sudo apt -y install ros-noetic-velodyne-description
sudo apt -y install ros-noetic-twist-mus
sudo apt -y install ros-noetic-interactive-marker-twist-server
sudo apt -y install ros-noetic-robot-localization
sudo apt -y install ros-noetic-joy
sudo apt -y install ros-noetic-teleop-twist-joy
# install toolchain
sudo apt -y install python3-catkin-tools
python3 -m pip install osrf-pycommon
sudo apt -y install python3-vcstool
# initialize catkin workspace
source /opt/ros/noetic/setup.bash
vcs import ../ < auro.repos
catkin build
source ../../devel/setup.bash
# prepare husky environment
# TODO: export not working yet! husky_gazebo not found!
#export HUSKY_GAZEBO_DESCRIPTION=$(rospack find husky_gazebo)/urdf/description.gazebo.xacro
echo -e '# function with stuff for ros1 and this lecture\n
auro() {\n
source /opt/ros/noetic/setup.bash}\n
source ~/catkin_ws/devel/setup.bash\n
export HUSKY_GAZEBO_DESCRIPTION=$(rospack find husky_gazebo)/urdf/description.gazebo.xacro\n
}\n
\n
# create alias\n
alias auro="auro"\n
\n
# calling alias\n
auro' >> ~/.bashrc
echo "done"
echo "Please add the required export and the sourcing of your catkin_ws manually to your .bashrc.\n"
echo "Read the manual (README.md) for the next steps."