{"id":113928,"date":"2026-10-07T22:49:16","date_gmt":"2026-10-07T14:49:16","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/113928.html"},"modified":"2026-10-07T22:49:16","modified_gmt":"2026-10-07T14:49:16","slug":"ubuntu%e7%b3%bb%e7%bb%9f%e5%ae%89%e8%a3%85mavros%e5%b7%a8%e5%9d%91%e6%8a%a5%e9%94%99","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/113928.html","title":{"rendered":"Ubuntu\u7cfb\u7edf\u5b89\u88c5Mavros\u5de8\u5751\u62a5\u9519"},"content":{"rendered":"<p>\u7b80\u4ecb:\u7ee7\u7eed\u66f4\u65b0\u4e00\u4e9b\u62a5\u9519\u548cAI\u4f7f\u7528\u95ee\u9898&#xff08;\u5982\u679c\u6709\u5e2e\u52a9&#xff0c;\u8bb0\u5f97\u70b9\u8d5e\u5173\u6ce8\u6211&#xff0c;\u6211\u4f1a\u7ee7\u7eed\u66f4\u65b0\u96be\u89e3\u51b3\u7684\u62a5\u9519&#xff0c;\u5176\u4ed6\u5e16\u5b50\u4e5f\u6709\u4e00\u4e9b\u62a5\u9519\u89e3\u51b3\u548cAI\u4f7f\u7528\u6ce8\u610f\u4e8b\u9879&#xff09;<\/p>\n<p>\u76ee\u5f55&#xff1a;<br \/>\n1&#xff1a;\u62a5\u9519<br \/>\n2&#xff1a;ai\u95ee\u9898<br \/>\n3:\u5177\u4f53\u89e3\u51b3\u65b9\u6cd5<\/p>\n<p>\u4e00&#xff1a;\u62a5\u9519<\/p>\n<p>1\u3001<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261007144915-6ac65beb9c6c9.jpg\" alt=\"\u8bf7\u6dfb\u52a0\u56fe\u7247\u63cf\u8ff0\" width=\"900\" height=\"200\" \/><br \/>\n\u5b89\u88c5Mavros\u9014\u4e2d\u4f1a\u9047\u5230\u8be5\u62a5\u9519,\u5982\u679c\u4f60\u4f7f\u7528AI\u5e2e\u4f60\u89e3\u51b3\u95ee\u9898\u7684\u8bdd&#xff0c;\u4f1a\u4e00\u76f4\u65e0\u6cd5\u89e3\u51b3<\/p>\n<p>\u6839\u672c\u539f\u56e0:Ubuntu 22.04 &#043; Humble \u4e0a&#xff0c;sudo apt install ros-humble-mavros \u88c5\u4e0d\u4e86&#xff01;<br \/>\nMAVROS \u5b98\u65b9\u4ece Humble \u8d77\u4e0d\u518d\u53d1\u5e03 apt \u4e8c\u8fdb\u5236\u5305&#xff0c;ROS \u5b98\u65b9\u6e90\u91cc\u53ea\u5269 ros-humble-mavros-msgs&#xff08;\u6d88\u606f\u5b9a\u4e49\u5305&#xff09;&#xff0c;\u4e3b\u7a0b\u5e8f\u5fc5\u987b\u6e90\u7801\u7f16\u8bd1\u2014\u2014\u8fd9\u4e5f\u662f PX4 \u5b98\u65b9\u63a8\u8350\u7684\u65b9\u5f0f\u3002<br \/>\n\u5982\u679c\u4f7f\u7528AI\u3002\u8be2\u95ee\u4ed6\u4e3a\u4ec0\u4e48\u62a5\u9519&#xff0c;\u4ed6\u4f1a\u4e00\u76f4\u5728\u4e00\u4e2a\u6b7b\u5faa\u73af\u91cc\u9762\u6253\u8f6c<\/p>\n<p>\u4e8c&#xff1a;AI\u4f7f\u7528\u95ee\u9898<\/p>\n<p>\u4e00&#xff1a;\u53cd\u590d\u5e26\u6211\u53bb\u5c1d\u8bd5\u9519\u8bef\u7684\u8def&#xff0c;\u5728\u4e0d\u540c\u7684\u6b7b\u80e1\u540c\u91cc\u9762\u6253\u8f6c&#xff0c;\u770b\u4f3c\u627e\u4e86\u65b0\u7684\u65b9\u6cd5\u3002\u5b9e\u5219\u6ca1\u4ec0\u4e48\u7528<\/p>\n<p>\u89e3\u51b3\u65b9\u6cd5&#xff1a;**\u7ed9\u81ea\u5df1\u8bbe\u5b9a\u4e00\u4e2a\u65f6\u95f4\u9650\u5236&#xff0c;**\u4e00\u4e2a\u949f\u5934\u6216\u534a\u4e2a\u949f\u5934&#xff0c;\u5982\u679c\u5728\u4e00\u4e2a\u62a5\u9519\u4e2d\u5c1d\u8bd5\u8fc7\u957f\u65f6\u95f4&#xff0c;\u5c31\u53bb\u5bfb\u627e\u4e00\u4e0b\u5176\u4ed6\u7684\u8def\u5f84.<br \/>\n\u4f8b\u5982:\u53bb\u8be2\u95ee\u5176\u4ed6\u7684AI&#xff0c;\u53bb\u7ed9\u4f60\u7684AI\u66f4\u591a\u7684\u4fe1\u606f&#xff0c;\u53bbcsdn\u7b49\u7f51\u7ad9\u5bfb\u627e\u5408\u9002\u7684\u5e16\u5b50&#xff0c;\u53bb\u8be2\u95ee\u4f60\u7684\u5b66\u957f\u5b66\u59d0,\u6709\u7ecf\u9a8c\u7684\u4eba.<br \/>\n\u5728\u4f7f\u7528AI\u7684\u65f6\u5019&#xff0c;\u4e00\u5b9a\u8981\u770b\u4ed6\u5230\u5e95\u7ed9\u4f60\u505a\u4e86\u4ec0\u4e48\u4e8b&#xff0c;\u4f60\u8981\u5224\u65ad\u4ed6\u662f\u5426\u5728\u540c\u4e00\u4e2a\u5730\u65b9\u53cd\u590d\u5728\u6253\u8f6c.\u4ed6\u4f1a\u6253\u8f6c&#xff0c;\u4f60\u5fc5\u987b\u547d\u4ee4\u4ed6\u8df3\u51fa\u6765\u3002<\/p>\n<p>\u4e8c&#xff1a;AI\u4f1a\u5047\u88c5\u6536\u5230\u4e86\u4f60\u7ed9\u7684\u4fe1\u606f&#xff0c;\u5b9e\u5219\u5e76\u6ca1\u6709\u6839\u636e\u4f60\u7ed9\u7684\u4fe1\u606f\u8fdb\u884c\u8fd0\u7b97<\/p>\n<p>\u89e3\u51b3\u65b9\u6cd5&#xff1a;\u5728\u4f60\u7ed9\u51fa\u4fe1\u606f\u4e4b\u540e&#xff0c;AI\u6709\u53ef\u80fd\u4f1a\u5728\u5634\u4e0a\u627f\u8ba4&#xff0c;\u5b9e\u5219\u5e76\u6ca1\u6709\u6839\u636e\u4f60\u7ed9\u7684\u4fe1\u606f\u91cd\u65b0\u8fdb\u884c\u6392\u67e5<br \/>\n\u4e00&#xff1a;\u4f4e\u6548\u95ee\u6cd5&#xff1a;<br \/>\n\u201cUbuntu \u600e\u4e48\u88c5 MAVROS&#xff1f;\u201d<\/p>\n<p>\u9ad8\u6548\u95ee\u6cd5&#xff1a;<br \/>\n\u201cUbuntu 22.04 &#043; ROS2 Humble\u88c5 MAVROS\u3002<br \/>\n\u6000\u7591&#xff1a;Humble \u6e90\u91cc\u53ef\u80fd\u6ca1\u6709 ros-humble-mavros \u4e3b\u5305\u3002<br \/>\n\u8bf7\u5148\u786e\u8ba4\u8fd9\u4e2a\u5305\u5728\u6e90\u91cc\u662f\u5426\u5b58\u5728&#xff0c;\u518d\u7ed9\u65b9\u6848\u3002\u201d<br \/>\n&#096;\u5173\u952e**&#xff1a;\u5c06\u6240\u6709\u7684\u914d\u7f6e\u4fe1\u606f\u548c\u4f60\u6000\u7591\u7684\u70b9\u52a0\u5728\u5bf9\u8bdd\u91cc\u8be2\u95ee&#xff0c;\u4e0d\u8981\u5206\u522b\u7ed9&#xff0c;AI \u88ab&#034;\u70b9\u540d&#034;\u540e&#xff0c;\u5c31\u5f88\u96be\u7ed5\u8fc7\u53bb\u3002**<\/p>\n<p>\u4e8c\u3001\u53cd\u95ee AI \u4e09\u4e2a&#034;\u9a8c\u771f&#034;\u95ee\u9898<\/p>\n<p>\u4e0d\u7ba1\u5b83\u7ed9\u4ec0\u4e48\u65b9\u6848&#xff0c;\u5148\u8ffd\u95ee\u8fd9\u4e09\u53e5&#xff1a;<\/p>\n<table>\n<tr>\u8ffd\u95ee\u903c\u5b83\u505a\u4ec0\u4e48<\/tr>\n<tbody>\n<tr>\n<td>\u201c\u4f60\u786e\u5b9a\u8fd9\u6761\u547d\u4ee4\u5728 Humble \u4e0a\u6709\u6548\u5417&#xff1f;\u201d<\/td>\n<td>\u903c\u5b83\u533a\u5206 ROS1\/ROS2<\/td>\n<\/tr>\n<tr>\n<td>\u201c\u5982\u679c\u62a5 Unable to locate package&#xff0c;\u4f60\u7684\u4e0b\u4e00\u6b65\u662f\u4ec0\u4e48&#xff1f;\u201d<\/td>\n<td>\u903c\u5b83\u9884\u5148\u8003\u8651\u5931\u8d25\u5206\u652f<\/td>\n<\/tr>\n<tr>\n<td>\u201c\u6709\u6ca1\u6709\u53ef\u80fd\u8fd9\u4e2a\u5305\u6839\u672c\u4e0d\u5728\u6e90\u91cc&#xff1f;\u201d<\/td>\n<td>\u903c\u5b83\u8d28\u7591\u524d\u63d0<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>AI \u53ea\u6709\u5728\u88ab\u8ffd\u95ee\u65f6&#xff0c;\u624d\u4f1a\u542f\u52a8&#034;\u9a8c\u8bc1\u6a21\u5f0f&#034;\u2014\u2014\u8fd9\u662f\u5f88\u5b9e\u7528\u7684\u6280\u5de7\u3002<br \/>\n\u5173\u952e&#xff1a;\u9700\u8981\u4ed4\u7ec6\u7684\u8be2\u95ee\u4ed6\u8be5\u6b65\u9aa4\u4e3a\u4f55\u6709\u6548&#xff1f;\u8ffd\u95ee\u7ec6\u8282\u3002<\/p>\n<p>\u4e09&#xff1a;\u5efa\u7acb\u6700\u5c0f\u9a8c\u8bc1\u4e60\u60ef<br \/>\n\u67e5\u4ec0\u4e48&#xff0c;\u53d6\u51b3\u4e8e&#034;\u4f60\u8981\u5e72\u4ec0\u4e48&#034;<\/p>\n<p>\u547d\u4ee4 &#061; \u52a8\u4f5c &#043; \u5bf9\u8c61\u3002\u62c6\u5f00\u8fd9\u4e24\u4e2a&#xff0c;\u4f60\u5c31\u77e5\u9053\u8be5\u67e5\u4ec0\u4e48&#xff1a;<\/p>\n<table>\n<tr>\u52a8\u4f5c\u7c7b\u578b\u5bf9\u8c61\u8be5\u67e5\u4ec0\u4e48<\/tr>\n<tbody>\n<tr>\n<td>\u88c5&#xff08;install&#xff09;<\/td>\n<td>\u5305<\/td>\n<td>\u5305\u5b58\u5728\u5417&#xff1f;<\/td>\n<\/tr>\n<tr>\n<td>\u4e0b&#xff08;wget\/clone&#xff09;<\/td>\n<td>\u7f51\u5740\/\u4ed3\u5e93<\/td>\n<td>\u7f51\u5740\u901a\u5417&#xff1f;<\/td>\n<\/tr>\n<tr>\n<td>\u8dd1&#xff08;bash\/\u6267\u884c&#xff09;<\/td>\n<td>\u811a\u672c\/\u7a0b\u5e8f<\/td>\n<td>\u5b83\u5e72\u4ec0\u4e48&#xff1f;<\/td>\n<\/tr>\n<tr>\n<td>\u6539&#xff08;\u6539\u914d\u7f6e\/\u6587\u4ef6&#xff09;<\/td>\n<td>\u6587\u4ef6<\/td>\n<td>\u73b0\u5728\u662f\u4ec0\u4e48\u72b6\u6001&#xff1f;<\/td>\n<\/tr>\n<tr>\n<td>\u5220&#xff08;rm\/\u6e05\u7406&#xff09;<\/td>\n<td>\u6587\u4ef6\/\u76ee\u5f55<\/td>\n<td>\u91cc\u9762\u6709\u4ec0\u4e48&#xff1f;<\/td>\n<\/tr>\n<tr>\n<td>\u7f16\u8bd1&#xff08;build&#xff09;<\/td>\n<td>\u9879\u76ee<\/td>\n<td>\u6211\u8d44\u6e90\u591f\u5417&#xff1f;<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u89c4\u5f8b&#xff1a;\u52a8\u4f5c\u51b3\u5b9a&#034;\u8981\u4e0d\u8981\u67e5&#034;&#xff0c;\u5bf9\u8c61\u51b3\u5b9a&#034;\u67e5\u5177\u4f53\u4ec0\u4e48&#034;\u3002<\/p>\n<p>\u8fd9\u53e5\u8bdd\u662f\u6574\u5f20\u8868\u7684\u6838\u5fc3&#xff0c;\u62c6\u5f00\u7406\u89e3&#xff1a;<\/p>\n<ul>\n<li>\u52a8\u4f5c\u51b3\u5b9a&#034;\u8981\u4e0d\u8981\u67e5&#034;&#xff1a;\u5148\u770b\u4f60\u8981\u6267\u884c\u7684\u52a8\u4f5c\u662f\u4ec0\u4e48\u3002\u88c5\u5305\u3001\u4e0b\u8f7d\u3001\u8fd0\u884c\u3001\u6539\u914d\u7f6e\u3001\u5220\u9664\u3001\u7f16\u8bd1&#xff0c;\u6bcf\u4e2a\u52a8\u4f5c\u80cc\u540e\u90fd\u5bf9\u5e94\u4e00\u4e2a&#034;\u98ce\u9669\u70b9&#034;\u3002\u6bd4\u5982&#034;\u88c5&#034;\u7684\u98ce\u9669\u70b9\u662f&#034;\u5305\u5230\u5e95\u5b58\u4e0d\u5b58\u5728&#034;&#xff0c;\u201c\u8dd1&#034;\u7684\u98ce\u9669\u70b9\u662f&#034;\u8fd9\u4e2a\u811a\u672c\u5230\u5e95\u5e72\u4e86\u4ec0\u4e48\u201d\u3002\u52a8\u4f5c\u4e0d\u540c&#xff0c;\u98ce\u9669\u70b9\u5c31\u4e0d\u540c&#xff0c;\u6240\u4ee5\u8981\u4e0d\u8981\u67e5\u3001\u67e5\u4ec0\u4e48&#xff0c;\u7b2c\u4e00\u6b65\u7531\u52a8\u4f5c\u8bf4\u4e86\u7b97\u3002<\/li>\n<li>\u5bf9\u8c61\u51b3\u5b9a&#034;\u67e5\u5177\u4f53\u4ec0\u4e48&#034;&#xff1a;\u52a8\u4f5c\u53ea\u544a\u8bc9\u4f60&#034;\u8be5\u67e5\u4e86&#034;&#xff0c;\u4f46\u67e5\u7684\u5bf9\u8c61\u662f\u8c01&#xff0c;\u7531\u4f60\u64cd\u4f5c\u7684\u5bf9\u8c61\u51b3\u5b9a\u3002\u5bf9\u8c61\u662f&#034;\u5305&#034;&#xff0c;\u5c31\u53bb\u67e5\u5305\u662f\u5426\u5b58\u5728&#xff1b;\u5bf9\u8c61\u662f&#034;\u7f51\u5740&#034;&#xff0c;\u5c31\u53bb\u67e5\u7f51\u5740\u901a\u4e0d\u901a&#xff1b;\u5bf9\u8c61\u662f&#034;\u6587\u4ef6&#034;&#xff0c;\u5c31\u53bb\u67e5\u6587\u4ef6\u5f53\u524d\u5185\u5bb9\u3002\u5bf9\u8c61\u4e0d\u540c&#xff0c;\u67e5\u8be2\u7684\u547d\u4ee4\u548c\u65b9\u5411\u5b8c\u5168\u4e0d\u540c\u3002<\/li>\n<\/ul>\n<p>\u4e3e\u4e2a\u4f8b\u5b50&#xff1a;\u540c\u6837\u662f&#034;\u88c5&#034;\u8fd9\u4e2a\u52a8\u4f5c\u2014\u2014<\/p>\n<ul>\n<li>\u88c5\u4e00\u4e2a apt \u5305&#xff1a;\u67e5 apt-cache policy \u5305\u540d&#xff0c;\u770b\u5b83\u5230\u5e95\u5728\u4e0d\u5728\u6e90\u91cc&#xff1b;<\/li>\n<li>\u88c5\u4e00\u4e2a pip \u5305&#xff1a;\u67e5 pip index versions \u5305\u540d&#xff0c;\u770b PyPI \u4e0a\u6709\u6ca1\u6709\u8fd9\u4e2a\u7248\u672c&#xff1b;<\/li>\n<li>\u88c5\u4e00\u4e2a\u6e90\u7801\u5305&#xff1a;\u67e5\u4ed3\u5e93\u5206\u652f\u3001\u4f9d\u8d56\u6e05\u5355&#xff0c;\u770b\u7f16\u8bd1\u6761\u4ef6\u662f\u5426\u6ee1\u8db3\u3002<\/li>\n<\/ul>\n<p>\u52a8\u4f5c\u90fd\u662f&#034;\u88c5&#034;&#xff0c;\u4f46\u56e0\u4e3a\u5bf9\u8c61\u4e0d\u540c&#xff0c;\u67e5\u6cd5\u5b8c\u5168\u4e0d\u540c\u3002\u6240\u4ee5\u9047\u5230\u62a5\u9519\u65f6&#xff0c;\u5148\u522b\u6025\u7740\u590d\u5236\u547d\u4ee4&#xff0c;\u5148\u95ee\u81ea\u5df1\u4e00\u53e5&#xff1a;\u201c\u6211\u8fd9\u4e2a\u52a8\u4f5c&#xff0c;\u98ce\u9669\u70b9\u5728\u54ea&#xff1f;\u6211\u8fd9\u4e2a\u5bf9\u8c61&#xff0c;\u8be5\u7528\u4ec0\u4e48\u547d\u4ee4\u53bb\u67e5&#xff1f;\u201d \u60f3\u6e05\u695a\u8fd9\u4e24\u70b9&#xff0c;\u4f60\u5c31\u4e0d\u4f1a\u5728\u6b7b\u80e1\u540c\u91cc\u6253\u8f6c\u4e86\u3002\u51b3\u5b9a&#034;\u67e5\u5177\u4f53\u4ec0\u4e48&#034;\u3002**<\/p>\n<p>\u56db&#xff1a;\u60f3\u8ba9 AI \u9760\u8c31&#xff0c;\u5c31\u8ba9\u5b83\u4ea4\u51fa\u53ef\u6838\u5bf9\u7684\u4ea7\u7269&#xff0c;\u800c\u4e0d\u662f\u7d22\u8981\u4e00\u4e2a\u4fdd\u8bc1\u3002<br \/>\n\u8ba9\u5b83&#034;\u7ed9\u53ef\u6267\u884c\u7684\u9a8c\u8bc1\u547d\u4ee4&#034;&#xff0c;\u4f60\u81ea\u5df1\u8dd1*<\/p>\n<p>\u5b8c\u6574\u5b89\u88c5\u6b65\u9aa4<br \/>\n1. \u5b89\u88c5\u7f16\u8bd1\u5de5\u5177\u548c\u57fa\u7840\u4f9d\u8d56<\/p>\n<p>&#096;&#096;&#096;bash<br \/>\nsudo apt update<br \/>\nsudo apt install -y python3-vcstool python3-rosdep2 python3-colcon-common-extensions \\\\<br \/>\n  python3-pip git cmake build-essential libgeographic-dev libboost-system-dev<\/p>\n<li>\u521d\u59cb\u5316 rosdep<\/li>\n<p><span class=\"token function\">sudo<\/span> rosdep init<br \/>\nrosdep update<\/p>\n<p>\u5982\u679c rosdep init \u62a5 already exists&#xff0c;\u8bf4\u660e\u521d\u59cb\u5316\u8fc7&#xff0c;\u5ffd\u7565\u5373\u53ef\u3002<br \/>\n\u5982\u679c rosdep update \u7f51\u7edc\u5931\u8d25&#xff08;\u56fd\u5185\u5e38\u89c1\u95ee\u9898&#xff09;&#xff0c;\u53ef\u4ee5\u6362\u56fd\u5185\u7248&#xff1a;sudo pip3 install rosdepc &amp;&amp; sudo rosdepc init &amp;&amp; rosdepc update\u3002<\/p>\n<li>\u5efa\u5de5\u4f5c\u7a7a\u95f4&#xff0c;\u62c9\u53d6 mavros \u6e90\u7801&#xff08;\u9700\u4ee3\u7406&#xff09;<\/li>\n<p><span class=\"token function\">mkdir<\/span> <span class=\"token parameter variable\">-p<\/span> ~\/ros2_ws\/src <span class=\"token operator\">&amp;&amp;<\/span> <span class=\"token builtin class-name\">cd<\/span> ~\/ros2_ws<br \/>\n<span class=\"token function\">git<\/span> clone https:\/\/github.com\/mavlink\/mavros.git src\/mavros <span class=\"token parameter variable\">&#8211;branch<\/span> ros2 &#8211;recurse-submodules<\/p>\n<p>\u6ce8\u610f\u5206\u652f\u662f ros2&#xff0c;\u4e0d\u662f master\u3002\u8fd9\u4e00\u6b65\u8981\u8bbf\u95ee GitHub&#xff0c;\u56fd\u5185\u5fc5\u987b\u5f00\u4ee3\u7406<\/p>\n<li>rosdep \u81ea\u52a8\u5b89\u88c5\u4f9d\u8d56&#xff08;\u5173\u952e\u6b65\u9aa4&#xff09;<\/li>\n<p><span class=\"token builtin class-name\">cd<\/span> ~\/ros2_ws<br \/>\nrosdep <span class=\"token function\">install<\/span> &#8211;from-paths src &#8211;ignore-src <span class=\"token parameter variable\">-y<\/span> <span class=\"token parameter variable\">&#8211;rosdistro<\/span> humble<\/p>\n<p>\u8fd9\u4e00\u6b65\u4f1a\u81ea\u52a8\u89e3\u6790\u5e76\u5b89\u88c5 mavros \u9700\u8981\u7684\u5168\u90e8\u4f9d\u8d56&#xff08;mavlink\u3001geographic-msgs\u3001diagnostic-updater\u3001tf2 \u7b49&#xff09;&#xff0c;\u6bd4\u624b\u5de5\u88c5\u51c6\u5f97\u591a\u3002<\/p>\n<li>\u7f16\u8bd1&#xff08;8G \u5185\u5b58\u673a\u5668\u52a1\u5fc5\u9650\u6d41&#xff01;&#xff09;<\/li>\n<p><span class=\"token builtin class-name\">source<\/span> \/opt\/ros\/humble\/setup.bash<br \/>\n<span class=\"token builtin class-name\">cd<\/span> ~\/ros2_ws<br \/>\n<span class=\"token assign-left variable\">MAKEFLAGS<\/span><span class=\"token operator\">&#061;<\/span><span class=\"token string\">&#034;-j2&#034;<\/span> colcon build &#8211;symlink-install <span class=\"token parameter variable\">&#8211;executor<\/span> sequential<\/p>\n<p>16G \u4ee5\u4e0a\u5185\u5b58\u53ef\u4ee5\u76f4\u63a5 colcon build &#8211;symlink-install\u30028G \u5185\u5b58\u4e0d\u52a0\u9650\u6d41\u5fc5\u5361\u6b7b<\/p>\n<li>\u914d\u7f6e\u73af\u5883\u53d8\u91cf<\/li>\n<p><span class=\"token builtin class-name\">echo<\/span> <span class=\"token string\">&#034;source ~\/ros2_ws\/install\/setup.bash&#034;<\/span> <span class=\"token operator\">&gt;&gt;<\/span> ~\/.bashrc<br \/>\n<span class=\"token builtin class-name\">source<\/span> ~\/.bashrc<\/p>\n<li>\u5b89\u88c5 GeographicLib \u5730\u7406\u6570\u636e\u96c6<\/li>\n<p><span class=\"token builtin class-name\">export<\/span> <span class=\"token assign-left variable\">http_proxy<\/span><span class=\"token operator\">&#061;<\/span>http:\/\/127.0.0.1:7897<br \/>\n<span class=\"token builtin class-name\">export<\/span> <span class=\"token assign-left variable\">https_proxy<\/span><span class=\"token operator\">&#061;<\/span>http:\/\/127.0.0.1:7897<br \/>\n<span class=\"token function\">sudo<\/span> <span class=\"token parameter variable\">-E<\/span> ~\/ros2_ws\/src\/mavros\/mavros\/scripts\/install_geographiclib_datasets.sh<\/p>\n<p>\u6302\u68af\u5b50&#xff0c;\u7aef\u53e3\u6309\u81ea\u5df1\u4ee3\u7406\u8f6f\u4ef6\u7684\u5b9e\u9645\u7aef\u53e3\u6539\u3002-E \u4e0d\u80fd\u7701(\u4e0d\u4f1a\u95eeai)<br \/>\n&#xff08;\u6ca1\u6709\u68af\u5b50\u7684\u8bdd\u3002\u5c31\u81ea\u5df1\u53bb\u5c1d\u8bd5\u4e00\u4e0b\u56fd\u5185\u955c\u50cf&#xff0c;\u5982\u679c\u4e0d\u884c\u53ef\u4ee5\u5173\u6ce8\u6211\u627e\u6211\u8981\u8d44\u6e90\u5305&#xff09;<\/p>\n<li>\u9a8c\u8bc1\u5b89\u88c5<\/li>\n<p>ros2 pkg list <span class=\"token operator\">|<\/span> <span class=\"token function\">grep<\/span> mav<br \/>\n<span class=\"token function\">ls<\/span> \/usr\/share\/GeographicLib\/<\/p>\n<p>\u9884\u671f\u8f93\u51fa&#xff1a;<br \/>\nlibmavconn<br \/>\nmavros<br \/>\nmavros_extras<br \/>\nmavros_msgs<br \/>\n\u3010\u63d2\u5165\u622a\u56fe&#xff1a;\u6700\u7ec8\u9a8c\u8bc1&#xff0c;ros2 pkg list \u8f93\u51fa &#043; GeographicLib \u76ee\u5f55\u3011<br \/>\n\u770b\u5230 4 \u4e2a\u5305 &#043; \u5730\u7406\u6570\u636e\u76ee\u5f55\u91cc\u6709 geoids\/gravity\/magnetic&#xff0c;\u5b89\u88c5\u5b8c\u6210\u3002<\/p>\n<p>\u5982\u679c\u6709\u5e2e\u52a9&#xff0c;\u8bb0\u5f97\u70b9\u8d5e\u5173\u6ce8\u6211&#xff0c;\u6211\u4f1a\u7ee7\u7eed\u66f4\u65b0\u96be\u89e3\u51b3\u7684\u62a5\u9519<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u7b80\u4ecb:\u7ee7\u7eed\u66f4\u65b0\u4e00\u4e9b\u62a5\u9519\u548cAI\u4f7f\u7528\u95ee\u9898&#xff08;\u5982\u679c\u6709\u5e2e\u52a9&#xff0c;\u8bb0\u5f97\u70b9\u8d5e\u5173\u6ce8\u6211&#xff0c;\u6211\u4f1a\u7ee7\u7eed\u66f4\u65b0\u96be\u89e3\u51b3\u7684\u62a5\u9519&#xff0c;\u5176\u4ed6\u5e16\u5b50\u4e5f\u6709\u4e00\u4e9b\u62a5\u9519\u89e3\u51b3\u548cAI\u4f7f\u7528\u6ce8\u610f\u4e8b\u9879&#xff09;<br \/>\n\u76ee\u5f55&#xff1a;<br \/>\n1&#xff1a;\u62a5\u9519<br \/>\n2&#xff1a;ai\u95ee\u9898<br \/>\n3:\u5177\u4f53\u89e3\u51b3\u65b9\u6cd5<br \/>\n\u4e00&#xff1a;\u62a5\u9519<br \/>\n1\u3001<br \/>\n\u5b89\u88c5Mavros\u9014\u4e2d\u4f1a\u9047\u5230\u8be5\u62a5\u9519,\u5982\u679c\u4f60\u4f7f\u7528AI\u5e2e\u4f60\u89e3\u51b3\u95ee\u9898\u7684\u8bdd&#xff0c;\u4f1a\u4e00\u76f4\u65e0\u6cd5\u89e3\u51b3<br \/>\n\u6839\u672c\u539f\u56e0:Ubuntu 22.04  Humble \u4e0a<\/p>\n","protected":false},"author":2,"featured_media":113927,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[58,103,3267,44],"topic":[],"class_list":["post-113928","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-linux","tag-ubuntu","tag-3267","tag-44"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Ubuntu\u7cfb\u7edf\u5b89\u88c5Mavros\u5de8\u5751\u62a5\u9519 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/113928.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Ubuntu\u7cfb\u7edf\u5b89\u88c5Mavros\u5de8\u5751\u62a5\u9519 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u7b80\u4ecb:\u7ee7\u7eed\u66f4\u65b0\u4e00\u4e9b\u62a5\u9519\u548cAI\u4f7f\u7528\u95ee\u9898&#xff08;\u5982\u679c\u6709\u5e2e\u52a9&#xff0c;\u8bb0\u5f97\u70b9\u8d5e\u5173\u6ce8\u6211&#xff0c;\u6211\u4f1a\u7ee7\u7eed\u66f4\u65b0\u96be\u89e3\u51b3\u7684\u62a5\u9519&#xff0c;\u5176\u4ed6\u5e16\u5b50\u4e5f\u6709\u4e00\u4e9b\u62a5\u9519\u89e3\u51b3\u548cAI\u4f7f\u7528\u6ce8\u610f\u4e8b\u9879&#xff09; \u76ee\u5f55&#xff1a; 1&#xff1a;\u62a5\u9519 2&#xff1a;ai\u95ee\u9898 3:\u5177\u4f53\u89e3\u51b3\u65b9\u6cd5 \u4e00&#xff1a;\u62a5\u9519 1\u3001 \u5b89\u88c5Mavros\u9014\u4e2d\u4f1a\u9047\u5230\u8be5\u62a5\u9519,\u5982\u679c\u4f60\u4f7f\u7528AI\u5e2e\u4f60\u89e3\u51b3\u95ee\u9898\u7684\u8bdd&#xff0c;\u4f1a\u4e00\u76f4\u65e0\u6cd5\u89e3\u51b3 \u6839\u672c\u539f\u56e0:Ubuntu 22.04 Humble \u4e0a\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/113928.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-10-07T14:49:16+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261007144915-6ac65beb9c6c9.jpg\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/113928.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/113928.html\",\"name\":\"Ubuntu\u7cfb\u7edf\u5b89\u88c5Mavros\u5de8\u5751\u62a5\u9519 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-10-07T14:49:16+00:00\",\"dateModified\":\"2026-10-07T14:49:16+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/113928.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/113928.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/113928.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Ubuntu\u7cfb\u7edf\u5b89\u88c5Mavros\u5de8\u5751\u62a5\u9519\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Ubuntu\u7cfb\u7edf\u5b89\u88c5Mavros\u5de8\u5751\u62a5\u9519 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/113928.html","og_locale":"zh_CN","og_type":"article","og_title":"Ubuntu\u7cfb\u7edf\u5b89\u88c5Mavros\u5de8\u5751\u62a5\u9519 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u7b80\u4ecb:\u7ee7\u7eed\u66f4\u65b0\u4e00\u4e9b\u62a5\u9519\u548cAI\u4f7f\u7528\u95ee\u9898&#xff08;\u5982\u679c\u6709\u5e2e\u52a9&#xff0c;\u8bb0\u5f97\u70b9\u8d5e\u5173\u6ce8\u6211&#xff0c;\u6211\u4f1a\u7ee7\u7eed\u66f4\u65b0\u96be\u89e3\u51b3\u7684\u62a5\u9519&#xff0c;\u5176\u4ed6\u5e16\u5b50\u4e5f\u6709\u4e00\u4e9b\u62a5\u9519\u89e3\u51b3\u548cAI\u4f7f\u7528\u6ce8\u610f\u4e8b\u9879&#xff09; \u76ee\u5f55&#xff1a; 1&#xff1a;\u62a5\u9519 2&#xff1a;ai\u95ee\u9898 3:\u5177\u4f53\u89e3\u51b3\u65b9\u6cd5 \u4e00&#xff1a;\u62a5\u9519 1\u3001 \u5b89\u88c5Mavros\u9014\u4e2d\u4f1a\u9047\u5230\u8be5\u62a5\u9519,\u5982\u679c\u4f60\u4f7f\u7528AI\u5e2e\u4f60\u89e3\u51b3\u95ee\u9898\u7684\u8bdd&#xff0c;\u4f1a\u4e00\u76f4\u65e0\u6cd5\u89e3\u51b3 \u6839\u672c\u539f\u56e0:Ubuntu 22.04 Humble \u4e0a","og_url":"https:\/\/www.wsisp.com\/helps\/113928.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-10-07T14:49:16+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261007144915-6ac65beb9c6c9.jpg"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"2 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/113928.html","url":"https:\/\/www.wsisp.com\/helps\/113928.html","name":"Ubuntu\u7cfb\u7edf\u5b89\u88c5Mavros\u5de8\u5751\u62a5\u9519 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-10-07T14:49:16+00:00","dateModified":"2026-10-07T14:49:16+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/113928.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/113928.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/113928.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"Ubuntu\u7cfb\u7edf\u5b89\u88c5Mavros\u5de8\u5751\u62a5\u9519"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/113928","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=113928"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/113928\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/113927"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=113928"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=113928"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=113928"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=113928"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}