You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -106,14 +112,16 @@ if [[ $branch == "develop" || $branch == "main" ]]; then
106
112
fi
107
113
touch $path/COLCON_IGNORE
108
114
i_dash=$(echo $i| tr '_''-')
109
-
packages="$packages ros-$ROS_NAME-$i_dash"
115
+
pkg_name="ros-$ROS_NAME-$i_dash"
116
+
# check if dbgsym package exists
117
+
sudo apt-cache madison "$pkg_name-dbgsym"
118
+
119
+
if sudo apt-cache madison "$pkg_name-dbgsym"| grep -vqz "Unable to locate package";then
120
+
echo"Adding debug package $pkg_name-dbgsym"
121
+
packages="$packages$pkg_name-dbgsym"
122
+
fi
123
+
packages="$packages$pkg_name"
110
124
done
111
-
if [[ $branch=="develop" ]];then
112
-
arch="${arch}_develop"
113
-
fi
114
-
echo"deb [trusted=yes] $github_url/raw/ros_mirte_${ROS_NAME}_${ubuntu_version}_${arch}/ ./"| sudo tee /etc/apt/sources.list.d/mirte-ros-packages.list
115
-
echo"yaml $github_url/raw/ros_mirte_${ROS_NAME}_${ubuntu_version}_${arch}/local.yaml ${ROS_NAME}"| sudo tee /etc/ros/rosdep/sources.list.d/mirte-ros-packages.list
116
-
sudo apt update
117
125
sudo apt install -y -m $packages|| fallback=false # TODO: disabled fallback for now as mirte-arm doesn't compile.
118
126
fi
119
127
@@ -167,8 +175,6 @@ sudo adduser mirte dialout
167
175
# Some nice extra packages: clean can clean workspaces and packages. No need to do it by hand. lint can check for errors in the cmake/package code.
168
176
sudo pip3 install colcon-clean colcon-lint
169
177
170
-
# Add colcon top level workspace, this makes it possible to run colcon build from any folder, it will find the workspace and build it. Otherwise it will create a new workspace in the subdirectory.
171
-
172
178
if [[ $MIRTE_TYPE=="mirte-master" ]];then
173
179
# TODO: need to check and edit the next part:
174
180
sudo apt install ros-$ROS_NAME-slam-toolbox -y
@@ -207,12 +213,9 @@ if [[ $MIRTE_TYPE == "mirte-master" ]]; then
# Add colcon top level workspace, this makes it possible to run colcon build from any folder, it will find the workspace and build it. Otherwise it will create a new workspace in the subdirectory.
0 commit comments