forked from carlosmccosta/dynamic_robot_localization
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.bash
executable file
·50 lines (32 loc) · 1.6 KB
/
install.bash
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
#!/usr/bin/env bash
catkin_ws=${1:-"$HOME/catkin_ws"}
ros_version=${2:-"$(rosversion -d)"}
script_dir="$(dirname "$(readlink -e "${BASH_SOURCE[0]}")" && echo X)" && script_dir="${script_dir%$'\nX'}"
source "/opt/ros/${ros_version}/setup.bash"
source "${catkin_ws}/devel/setup.bash"
"${script_dir}/a_dependencies.sh" ${ros_version}
"${script_dir}/b_repositories.bash" "${catkin_ws}"
echo -e "\n\n"
echo "--------------------------------------------------------------------"
echo "--- Installing remaining dependencies"
cd "${catkin_ws}"
rosdep update
rosdep check --from-paths src --ignore-src --rosdistro=${ros_version}
rosdep install --from-paths src --ignore-src --rosdistro=${ros_version}
echo -e "\n\n"
echo "--------------------------------------------------------------------"
echo "--- Dependencies that must be manually checked"
rosdep check --from-paths src --ignore-src --rosdistro=${ros_version}
echo -e "\n\n"
echo "####################################################################################################"
echo "##### Building catkin workspace"
echo "####################################################################################################"
cd "${catkin_ws}"
find ./src -name "*.bash" -exec chmod +x {} \;
find ./src -name "*.cfg" -exec chmod +x {} \;
find ./src -name "*.sh" -exec chmod +x {} \;
catkin_make
echo -e "\n\n"
echo "----------------------------------------------------------------------------------------------------"
echo ">>>>> Finished building catkin workspace"
echo "----------------------------------------------------------------------------------------------------"