-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathinstall.bash
More file actions
executable file
·39 lines (33 loc) · 1.44 KB
/
install.bash
File metadata and controls
executable file
·39 lines (33 loc) · 1.44 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
#!/bin/bash
YELLOW='\033[0;33m'
BYELLOW='\033[1;33m'
NC='\033[0m'
# Add Aliases / Shortcuts
##################################################################
#alias sr 2>/dev/null >/dev/null && echo "foo is set as an alias"
if [ "$(grep '^alias sr=' ~/.bash* ~/.bash_aliases ~/.profile /etc/bash* /etc/profile)" ]
then
echo -e "${BYELLOW}[INFO] ${YELLOW}'sr' is already set as an alias${NC}"
else
echo -e "${BYELLOW}[INFO] ${YELLOW}Setting 'sr' as an alias for 'source ~/.bashrc'${NC}"
echo -e "alias sr='source ~/.bashrc'" >> ~/.bash_aliases
fi
if [ "$(grep '^alias sw=' ~/.bash* ~/.bash_aliases ~/.profile /etc/bash* /etc/profile)" ]
then
echo -e "${BYELLOW}[INFO] ${YELLOW}'sw' is already set as an alias${NC}"
else
echo -e "${BYELLOW}[INFO] ${YELLOW}Setting 'sw' as an alias for 'source ./devel/setup.bash'${NC}"
echo -e "alias sw='source ./devel/setup.bash'" >> ~/.bash_aliases
fi
# Add ROSSERIAL deps
##################################################################
echo -e "${BYELLOW}[INFO] ${YELLOW}Installing rosserial dependencies${NC}"
apt install ros-melodic-rosserial
apt install ros-melodic-rosserial-arduino
apt install ros-melodic-rosserial-msgs
apt install ros-melodic-rosserial-python
# Add Teleop deps
#################################################################
echo -e "${BYELLOW}[INFO] ${YELLOW}Installing teleop-twist dependencies${NC}"
apt install ros-melodic-teleop-twist-joy
apt install ros-melodic-teleop-twist-keyboard