-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathros-melodic-setup.sh
More file actions
executable file
·54 lines (33 loc) · 2.22 KB
/
ros-melodic-setup.sh
File metadata and controls
executable file
·54 lines (33 loc) · 2.22 KB
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
#!/bin/sh
echo -e "\n \e[33;41m------- ROS-MELODICのインストールを開始します --------\e[m \n"
sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list' ;
echo -e "\n \e[33;41m---------- ros-source.listの設定完了 ----------\e[m \n"
sudo apt -y install curl ;
echo -e "\n \e[33;41m---------- curlのインストール完了 ----------\e[m \n"
curl -s https://raw.githubusercontent.com/ros/rosdistro/master/ros.asc | sudo apt-key add -
echo -e "\n \e[33;41m------------- 鍵の設定完了 -------------\e[m \n"
sudo apt update;
echo -e "\n \e[33;41m------------- apt update 完了 -------------\e[m \n"
sudo apt -y install ros-melodic-desktop-full;
echo -e "\n \e[33;41m------- ROS-MELODICのインストール完了🙌 ---------\e[m \n"
echo "source /opt/ros/melodic/setup.bash" >> ~/.bashrc ;
echo -e "\n \e[33;41m------- rosコマンドのパス記述完了 ---------\e[m \n"
sudo apt -y install python-rosinstall python-rosinstall-generator python-wstool build-essential ;
echo -e "\n \e[33;41m----- パッケージ構築のための依存ツールのセットアップ完了 ------\e[m \n"
sudo apt-get -y install python-rosdep;
sudo rosdep init;
rosdep update;
echo -e "\n \e[33;41m----- rosdepのインストール~初期化~アプデまで完了 ------\e[m \n"
mkdir -p ~/catkin_ws/src
echo -e "\n \e[33;41m------- ~/catkin_ws/src の作成完了 --------\e[m \n"
echo "1. sourceコマンドを実行してください⌨️"
echo -e "\e[36m$ source ~/.bashrc\e[m \n\n"
echo "2. ~/catkin_ws/src 直下で以下を実行してください⌨️"
echo -e "\e[36m$ catkin_init_workspace\e[m \n\n"
echo "3. ~/catkin_ws 直下で、以下を順次実行してください⌨️"
echo -e "\e[36m$ catkin_make\e[m \n"
echo -e "\e[36m$ source devel/setup.bash\e[m \n\n"
echo "4. 以下を順次実行してください⌨️"
echo -e '\e[36m$ echo "source /home/ユーザ名/catkin_ws/devel/setup.bash" >> ~/.bashrc \e[m \n'
echo -e "\e[36m$ source ~/.bashrc\e[m \n\n"
echo -e "\e[37;7mお疲れ様でした🍺 以上で全ての手順は完了です🙌 \n~/catkin_ws/src 直下にパッケージをダウンロードし、catkin_makeしてみましょう。\e[m"