-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathcomandos.sh
34 lines (32 loc) · 1.39 KB
/
comandos.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
blue='\e[0;34m'
NC='\e[0m' # No Color
#font colors:
#Black 0;30 Dark Gray 1;30
#Blue 0;34 Light Blue 1;34
#Green 0;32 Light Green 1;32
#Cyan 0;36 Light Cyan 1;36
#Red 0;31 Light Red 1;31
#Purple 0;35 Light Purple 1;35
#Brown/Orange 0;33 Yellow 1;33
#Light Gray 0;37 White 1;37
echo -e "${blue} Instalação do ROS2...${NC}"
apt-cache policy | grep universe
sudo apt update && sudo apt install curl gnupg lsb-release
sudo curl -sSL https://raw.githubusercontent.com/ros/rosdistro/master/ros.key -o /usr/share/keyrings/ros-archive-keyring.gpg
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/ros-archive-keyring.gpg] http://packages.ros.org/ros2/ubuntu $(source /etc/os-release && echo $UBUNTU_CODENAME) main" | sudo tee /etc/apt/sources.list.d/ros2.list > /dev/null
sudo apt update
sudo apt upgrade
sudo apt install ros-humble-desktop
echo "source /opt/ros/humble/setup.bash" >> ~/.bashrc
sudo apt install python3-colcon-common-extensions
echo -e "${blue} Instalação das bibliotecas necessárias...${NC}"
sudo apt install python3-pip
sudo pip install construct
sudo pip3 install opencv-python
sudo pip3 install pandas
sudo pip install imutils
sudo pip3 install tensorflow
pip install MarkupSafe
pip install markupsafe==2.0.1
sudo apt-get install python3-matplotlib
pip install pygame