Skip to content

Commit 82c5030

Browse files
committed
melodic branch
1 parent 685b5d4 commit 82c5030

File tree

8 files changed

+48
-23
lines changed

8 files changed

+48
-23
lines changed

.vscode/c_cpp_properties.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"configurations": [
3+
{
4+
"browse": {
5+
"databaseFilename": "",
6+
"limitSymbolsToIncludedHeaders": true
7+
},
8+
"includePath": [
9+
"/opt/ros/melodic/include/**",
10+
"/usr/include/**"
11+
],
12+
"name": "ROS"
13+
}
14+
]
15+
}

.vscode/settings.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"python.autoComplete.extraPaths": [
3+
"/opt/ros/melodic/lib/python2.7/dist-packages"
4+
]
5+
}

install

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
set_colors
77

8-
echo -e "${BLUE}This is ROS setup sript${NOCOLOR}"
8+
echo -e "${BLUE}This is ROS Melodic setup sript${NOCOLOR}"
99
read -p "Do you wish to start the installtion? [Y/n]" -n 1 -s ans && echo
1010
[ "${ans}" != "n" ] || exit 0
1111

@@ -14,14 +14,14 @@ sudo apt update && sudo apt upgrade -y
1414
[ $? -eq 0 ] || error "Failed to update apt-get, aborting..."
1515
echo -e "${GREEN}System update done${NOCOLOR}"
1616

17-
echo -e "${BLUE}Installing ROS dependencies${NOCOLOR}"
17+
echo -e "${BLUE}Installing ROS Melodic dependencies${NOCOLOR}"
1818
install_rosdeps
19-
[ $? -eq 0 ] || error "Failed to install ROS dependencies, aborting..."
19+
[ $? -eq 0 ] || error "Failed to install ROS Melodic dependencies, aborting..."
2020
echo -e "${GREEN}ROS dependencies installation done${NOCOLOR}"
2121

22-
echo -e "${BLUE}Installing ROS${NOCOLOR}"
22+
echo -e "${BLUE}Installing ROS Melodic${NOCOLOR}"
2323
install_ros
24-
[ $? -eq 0 ] || error "Failed to install ROS, aborting..."
24+
[ $? -eq 0 ] || error "Failed to install ROS Melodic, aborting..."
2525
echo -e "${GREEN}ROS installation done${NOCOLOR}"
2626

2727
echo -e "${BLUE}Installing pip modules${NOCOLOR}"
@@ -30,9 +30,9 @@ python3 -m pip install -r requirements.txt
3030
[ $? -eq 0 ] || echo "${RED}Failed install pip modules, continuing...${NOCLOR}"
3131
echo -e "${GREEN}Pip modules installaion done${NOCOLOR}"
3232

33-
read -p "Do you wish to install simulator (Gazebo) [Y/n]" -n 1 -s ans && echo
34-
[ "${ans}" != "n" ] && install_gazebo
35-
echo -e "${GREEN}Gazebo installation done${NOCOLOR}"
33+
# read -p "Do you wish to install simulator (Gazebo) [Y/n]" -n 1 -s ans && echo
34+
# [ "${ans}" != "n" ] && install_gazebo
35+
# echo -e "${GREEN}Gazebo installation done${NOCOLOR}"
3636

3737
read -p "Do you wish to install desktop environment (xfce4) [Y/n]" -n 1 -s ans \
3838
&& echo

pkglist-gazebo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
ros-dashing-gazebo-ros-pkgs
1+

pkglist-ros

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
ros-dashing-ros-base
2-
ros-dashing-desktop
3-
ros-dashing-geometry*
4-
ros-dashing-rqt*
1+
ros-melodic-desktop-full
2+
ros-melodic-ros-control
3+
ros-melodic-ros-controllers

pkglist-rosdeps

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
curl
21
git
3-
gnupg2
4-
lsb-release
5-
python3-argcomplete
6-
python3-pip
2+
python-rosdep
3+
python-rosinstall
4+
python-rosinstall-generator
5+
python-wstool
6+
build-essential
7+
catkin_tools

scripts/ros_setup.sh

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,19 @@ function install_rosdeps
66

77
function install_ros
88
{
9-
ROS_KEY_URL=https://raw.githubusercontent.com/ros/rosdistro/master/ros.asc
9+
sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list'
1010

11-
curl -s $ROS_KEY_URL | sudo apt-key add -
12-
sudo sh -c 'echo "deb http://packages.ros.org/ros2/ubuntu \
13-
`lsb_release -cs` main" > /etc/apt/sources.list.d/ros2-latest.list'
11+
sudo apt-key adv --keyserver 'hkp://keyserver.ubuntu.com:80' --recv-key C1CF6E31E6BADE8868B172B4F42ED6FBAB17C654z
12+
curl -sSL 'http://keyserver.ubuntu.com/pks/lookup?op=get&search=0xC1CF6E31E6BADE8868B172B4F42ED6FBAB17C654' | sudo apt-key add -
1413

1514
sudo apt update
1615
sudo apt -y install --no-install-recommends `cat pkglist-ros`
16+
17+
echo "source /opt/ros/melodic/setup.bash" >> ~/.bashrc
18+
source ~/.bashrc
19+
20+
sudo rosdep init
21+
rosdep update
1722
}
1823

1924
function install_gazebo

scripts/user_setup.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
function setup_user
22
{
3-
SOURCE_ROS="source /opt/ros/dashing/setup.bash"
3+
SOURCE_ROS="source /opt/ros/melodic/setup.bash"
44
grep "${SOURCE_ROS}" ${HOME}/.bashrc 2> /dev/null || \
55
echo "${SOURCE_ROS}" >> ${HOME}/.bashrc
66
}

0 commit comments

Comments
 (0)