MAVROS MAVLINK Error while installing GeographicLib gravity egm96
问题描述
在执行install_geographiclib_datasets.sh安装数据集时报错:
Installing GeographicLib geoids egm96-5
Error while installing GeographicLib geoids egm96-5
Installing GeographicLib gravity egm96
Error while installing GeographicLib gravity egm96
Installing GeographicLib magnetic emm2015
Error while installing GeographicLib magnetic emm2015
#解决
执行:
sudo geographiclib-get-magnetic emm2015
报错如下:
download emm2015.tar.bz2 …
–2022-08-07 16:37:47-- https://downloads.sourceforge.net/project/geographiclib/magnetic-distrib/emm2015.tar.bz2?use_mirror=autoselect
Resolving downloads.sourceforge.net (downloads.sourceforge.net)… 204.68.111.105
Connecting to downloads.sourceforge.net (downloads.sourceforge.net)|204.68.111.105|:443… connected.
Unable to establish SSL connection.
按住Ctrl点击下列网址,会自动下载“emm2015”压缩包:
https://downloads.sourceforge.net/project/geographiclib/magnetic-distrib/emm2015.tar.bz2?use_mirror=autoselect
将其解压,并拷贝到 /usr/share/GeographicLib 目录下
sudo cp -r ~/Downloads/emm2015/magnetic /usr/share/GeographicLib
egm96下载:
https://downloads.sourceforge.net/project/geographiclib/gravity-distrib/egm96.tar.bz2?use_mirror=autoselect
egm96-5下载:
http://downloads.sourceforge.net/project/geographiclib/geoids-distrib/egm96-5.tar.bz2?use_mirror=autoselect
再次执行该脚本文件,显示数据集均已存在:
/opt/ros/noetic/share/mavros$ sudo bash ./install_geographiclib_datasets.sh
GeographicLib geoids dataset egm96-5 already exists, skipping
GeographicLib gravity dataset egm96 already exists, skipping
GeographicLib magnetic dataset emm2015 already exists, skipping