Skip to content

Commit 68d2877

Browse files
author
Murilo Marinho
committed
Fixing rosdep issue
1 parent 66dac27 commit 68d2877

File tree

2 files changed

+21
-5
lines changed

2 files changed

+21
-5
lines changed

.devel/build_ros2.sh

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,24 @@ pkg_array=(
5656
"sas_robot_kinematics"
5757
)
5858

59+
####################################################################
60+
# Update rosdep only once
61+
####################################################################
62+
63+
if [ ! -f "$HOME/rosdep_ros2.yaml" ]; then
64+
# Create link
65+
ln -s "£PWD/rosdep_ros2.yaml" "$HOME/rosdep_ros2.yaml"
66+
67+
# Update rosdep
68+
cd ~ || exit 1
69+
echo "$HOME/rosdep_ros2.yaml" | sudo tee -a /etc/ros/rosdep/sources.list.d/20-default.list
70+
71+
# Rosdep
72+
sudo rosdep init
73+
rosdep update
74+
fi
75+
76+
5977
####################################################################
6078
# Create tmp folder
6179
####################################################################

.devel/prebuild_ros2.sh

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
#!/bin/bash
22
# Copyright (c) Murilo M. Marinho (www.murilomarinho.info)
3-
sudo rosdep init
4-
rosdep update
5-
sudo apt-get install python3-bloom
6-
sudo apt-get install dh-make
7-
sudo apt-get install qt5-qmake libqt5gui5 qtbase5-dev
3+
4+
# Pre-requisites
5+
sudo apt install dh-make dh-python python3-bloom doxygen

0 commit comments

Comments
 (0)