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
If download of the geographiclib datasets fails for any reason (like it hangs downloading or can't reach), it leaves empty subdirectories of /usr/share/GeographicLib. The bash script only checks for existence of these directories, not of the datasets within so any subsequent runs of the script do nothing even if the datasets are not present.
Instead, it should check for the actual files. Change:
if [[ -d "/usr/share/GeographicLib/$dir" or -d "/usr/local/share/GeographicLib/$dir" ]]; then
return
fi
to (eg.)
files=$(shopt -s nullglob dotglob; echo /usr/share/GeographicLib/$dir/$model* /usr/local/share/GeographicLib/$dir/$model*)
if (( ${#files} )); then
return
fi
Issue details
If download of the geographiclib datasets fails for any reason (like it hangs downloading or can't reach), it leaves empty subdirectories of /usr/share/GeographicLib. The bash script only checks for existence of these directories, not of the datasets within so any subsequent runs of the script do nothing even if the datasets are not present.
Instead, it should check for the actual files. Change:
to (eg.)
MAVROS version and platform
Mavros: master
ROS: Lunar
Ubuntu: Debian 9 / Ubuntu 16.04
The text was updated successfully, but these errors were encountered: