-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.bash
executable file
·66 lines (51 loc) · 3.14 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
#!/usr/bin/env bash
set_cpu_governor_to_performance=${1:-"false"}
install_logic_ml300_nuc_drivers=${2:-"true"}
ros_version=${3:-"hydro"}
default_branch_name=${4:-"hydro-devel"}
default_arm_branch_name=${5:-"hydro_dev"}
user_name=${6:-"$USER"}
catkin_folder=${7:-"/home/${user_name}/catkin_ws"}
script_dir="$(dirname "$(readlink -e "${BASH_SOURCE[0]}")" && echo X)" && script_dir="${script_dir%$'\nX'}"
echo -e "\n\n"
echo "****************************************************************************************************"
echo "***** Setting up development apps and ROS"
echo "****************************************************************************************************"
${script_dir}/1_initial_setup/a1_apps.sh
${script_dir}/1_initial_setup/b1_insesc_account.sh
${script_dir}/1_initial_setup/b2_git_configs.sh
if [ "${set_cpu_governor_to_performance}" = true ]; then
${script_dir}/1_initial_setup/b3_cpu_scaling_performance.sh
fi
${script_dir}/1_initial_setup/c1_ros.bash ${ros_version} ${user_name}
${script_dir}/1_initial_setup/c2_catkin_workspace.bash ${ros_version} ${catkin_folder} ${user_name}
echo -e "\n\n"
echo "****************************************************************************************************"
echo "***** Finished setting up development apps and ROS"
echo "****************************************************************************************************"
echo -e "\n\n"
echo "****************************************************************************************************"
echo "***** Setting up guardian configuration files"
echo "****************************************************************************************************"
${script_dir}/2_configuration_files/setup_configuration_files.bash ${user_name} ${ros_version} ${catkin_folder}
echo -e "\n\n"
echo "****************************************************************************************************"
echo "***** Finished setting up guardian configuration files"
echo "****************************************************************************************************"
echo -e "\n\n"
echo "****************************************************************************************************"
echo "***** Setting up guardian software"
echo "****************************************************************************************************"
${script_dir}/3_guardian_setup/a1_guardian_dependencies.sh ${ros_version}
${script_dir}/3_guardian_setup/a2_guardian_sw.bash ${ros_version} ${default_branch_name} ${default_arm_branch_name} ${catkin_folder}
${script_dir}/3_guardian_setup/a3_nfs_server.sh
${script_dir}/3_guardian_setup/a4_remote_desktop.sh
${script_dir}/3_guardian_setup/a5_clock_syncronization.sh
if [ "${install_logic_ml300_nuc_drivers}" = true ]; then
${script_dir}/3_guardian_setup/a6_logic_ml300_nuc_drivers.sh
fi
${script_dir}/3_guardian_setup/a7_joy_stick_pairing.bash ${ros_version}
echo -e "\n\n"
echo "****************************************************************************************************"
echo "***** Finished setting up guardian software"
echo "****************************************************************************************************"