{"id":61341,"date":"2026-01-17T12:49:29","date_gmt":"2026-01-17T04:49:29","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/61341.html"},"modified":"2026-01-17T12:49:29","modified_gmt":"2026-01-17T04:49:29","slug":"linux%ef%bc%9a%e7%89%a9%e7%90%86%e4%bb%bf%e7%9c%9f%e4%b8%8e-gazebo-%e4%b8%96%e7%95%8c","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/61341.html","title":{"rendered":"Linux\uff1a\u7269\u7406\u4eff\u771f\u4e0e Gazebo \u4e16\u754c"},"content":{"rendered":"<p>\u4eca\u5929\u7684\u4e3b\u9898\u662f&#xff1a;\u7ed9\u673a\u5668\u4eba\u8d4b\u4e88\u201c\u7269\u7406\u8089\u4f53\u201d\u3002<\/p>\n<p>\u5728 Rviz \u91cc&#xff0c;\u4f60\u7684\u673a\u5668\u4eba\u53ea\u662f\u4e2a\u201c\u5168\u606f\u6295\u5f71\u201d&#xff0c;\u597d\u770b\u4f46\u4e0d\u80fd\u6253\u3002<\/p>\n<p>\u4e3a\u4e86\u8ba9\u5b83\u80fd\u8fdb Gazebo&#xff08;\u90a3\u4e2a\u6709\u91cd\u529b\u3001\u6709\u78b0\u649e\u7684\u771f\u5b9e\u4e16\u754c&#xff09;&#xff0c;\u6211\u4eec\u5fc5\u987b\u7ed9\u5b83\u52a0\u4e0a\u4e24\u6837\u4e1c\u897f&#xff1a;<\/p>\n<li>\n<p>\u78b0\u649e\u4f53\u79ef (Collision)&#xff1a;\u7a7f\u4e0a\u201c\u9632\u5f39\u8863\u201d&#xff0c;\u8ba9\u5b83\u80fd\u649e\u5230\u4e1c\u897f&#xff0c;\u800c\u4e0d\u662f\u7a7f\u5899\u800c\u8fc7\u3002<\/p>\n<\/li>\n<li>\n<p>\u60ef\u6027\u77e9\u9635 (Inertial)&#xff1a;\u544a\u8bc9\u7535\u8111\u5b83\u6709\u591a\u91cd (Mass) \u4ee5\u53ca\u91cd\u5fc3\u5728\u54ea\u3002<\/p>\n<\/li>\n<hr \/>\n<h4>\u7b2c\u4e00\u6b65&#xff1a;\u51c6\u5907\u201c\u6570\u5b66\u516c\u5f0f\u201d (Inertial Macros)<\/h4>\n<p>(\u65e5\u5e38\u63d0\u9192\u8981\u5728\u5b58\u653eLinux\u7684\u5730\u76d8&#xff08;cd ~\/ros2_ws)&#xff09;<\/p>\n<p>\u7ed9\u673a\u5668\u4eba\u7b97\u60ef\u6027\u77e9\u9635\u662f\u5f88\u75db\u82e6\u7684<\/p>\n<p>\u4f5c\u4e3a\u61d2\u4eba\u5de5\u7a0b\u5e08&#xff0c;\u6211\u4eec\u5f53\u7136\u8981\u7528 Xacro \u5b8f \u6765\u81ea\u52a8\u7b97&#xff01;<\/p>\n<p>\u8bf7\u6253\u5f00\u4f60\u7684 Xacro \u6587\u4ef6&#xff1a;<\/p>\n<p>Bash<\/p>\n<p>nano src\/my_robot_description\/urdf\/my_robot.urdf.xacro<\/p>\n<p>\u64cd\u4f5c\u4efb\u52a1&#xff1a;<\/p>\n<p>\u8bf7\u628a\u4e0b\u9762\u8fd9\u6bb5\u201c\u4e07\u80fd\u516c\u5f0f\u201d\u590d\u5236\u7c98\u8d34\u5230 \u53d8\u91cf\u5b9a\u4e49 (property) \u7684\u4e0b\u9762&#xff0c;\u4f46\u5728 base_link \u7684\u4e0a\u9762\u3002<\/p>\n<p>(\u8fd9\u6bb5\u4ee3\u7801\u5b9a\u4e49\u4e86\u7403\u4f53\u3001\u65b9\u5757\u3001\u5706\u67f1\u4f53\u7684\u60ef\u6027\u8ba1\u7b97\u516c\u5f0f&#xff0c;\u4ee5\u540e\u76f4\u63a5\u8c03\u7528\u5c31\u884c)<\/p>\n<p>XML<\/p>\n<p>    &lt;xacro:macro name&#061;&#034;inertial_sphere&#034; params&#061;&#034;mass radius&#034;&gt;<br \/>\n        &lt;inertial&gt;<br \/>\n            &lt;mass value&#061;&#034;${mass}&#034;\/&gt;<br \/>\n            &lt;inertia ixx&#061;&#034;${(2\/5) * mass * (radius*radius)}&#034; ixy&#061;&#034;0.0&#034; ixz&#061;&#034;0.0&#034;<br \/>\n                     iyy&#061;&#034;${(2\/5) * mass * (radius*radius)}&#034; iyz&#061;&#034;0.0&#034;<br \/>\n                     izz&#061;&#034;${(2\/5) * mass * (radius*radius)}&#034;\/&gt;<br \/>\n        &lt;\/inertial&gt;<br \/>\n    &lt;\/xacro:macro&gt;<\/p>\n<p>    &lt;xacro:macro name&#061;&#034;inertial_box&#034; params&#061;&#034;mass x y z&#034;&gt;<br \/>\n        &lt;inertial&gt;<br \/>\n            &lt;mass value&#061;&#034;${mass}&#034;\/&gt;<br \/>\n            &lt;inertia ixx&#061;&#034;${(1\/12) * mass * (y*y&#043;z*z)}&#034; ixy&#061;&#034;0.0&#034; ixz&#061;&#034;0.0&#034;<br \/>\n                     iyy&#061;&#034;${(1\/12) * mass * (x*x&#043;z*z)}&#034; iyz&#061;&#034;0.0&#034;<br \/>\n                     izz&#061;&#034;${(1\/12) * mass * (x*x&#043;y*y)}&#034;\/&gt;<br \/>\n        &lt;\/inertial&gt;<br \/>\n    &lt;\/xacro:macro&gt;<\/p>\n<p>    &lt;xacro:macro name&#061;&#034;inertial_cylinder&#034; params&#061;&#034;mass length radius&#034;&gt;<br \/>\n        &lt;inertial&gt;<br \/>\n            &lt;mass value&#061;&#034;${mass}&#034;\/&gt;<br \/>\n            &lt;inertia ixx&#061;&#034;${(1\/12) * mass * (3*radius*radius &#043; length*length)}&#034; ixy&#061;&#034;0.0&#034; ixz&#061;&#034;0.0&#034;<br \/>\n                     iyy&#061;&#034;${(1\/12) * mass * (3*radius*radius &#043; length*length)}&#034; iyz&#061;&#034;0.0&#034;<br \/>\n                     izz&#061;&#034;${(1\/2) * mass * (radius*radius)}&#034;\/&gt;<br \/>\n        &lt;\/inertial&gt;<br \/>\n    &lt;\/xacro:macro&gt;<br \/>\n    &#096;&#096;&#096;<\/p>\n<p>\u7c98\u8d34\u597d\u540e&#xff0c;\u4fdd\u5b58\u9000\u51fa&#xff0c;\u786e\u4fdd\u6ca1\u6709\u62a5\u9519\u3002<\/p>\n<p>&#8212;<\/p>\n<p>### \u7b2c\u4e8c\u6b65&#xff1a;\u6539\u9020\u8eab\u4f53 (&#096;base_link&#096;)<\/p>\n<p>\u73b0\u5728\u6211\u4eec\u8981\u7ed9\u84dd\u8272\u7684\u8f66\u8eab\u52a0\u4e0a\u201c\u9632\u5f39\u8863\u201d\u548c\u201c\u4f53\u91cd\u201d\u3002<\/p>\n<p>\u518d\u6b21\u6253\u5f00\u6587\u4ef6&#xff0c;\u627e\u5230 &#096;&lt;link name&#061;&#034;base_link&#034;&gt;&#096; \u90e8\u5206\u3002<\/p>\n<p>\u4f60\u9700\u8981\u505a\u4e24\u4ef6\u4e8b&#xff1a;<br \/>\n1.  **\u52a0 Collision (\u9632\u5f39\u8863)**&#xff1a;\u901a\u5e38\u5f62\u72b6\u548c Visual (\u5916\u89c2) \u4e00\u6837\u3002<br \/>\n2.  **\u52a0 Inertial (\u4f53\u91cd)**&#xff1a;\u8c03\u7528\u521a\u624d\u5199\u7684\u5b8f\u3002<\/p>\n<p>**\u8bf7\u628a\u4f60\u7684 &#096;base_link&#096; \u4fee\u6539\u6210\u4e0b\u9762\u8fd9\u6837&#xff08;\u6ce8\u610f\u770b\u65b0\u589e\u7684\u90e8\u5206&#xff09;&#xff1a;**<\/p>\n<p>&#096;&#096;&#096;xml<br \/>\n    &lt;link name&#061;&#034;base_link&#034;&gt;<br \/>\n        &lt;visual&gt;<br \/>\n            &lt;geometry&gt;<br \/>\n                &lt;box size&#061;&#034;${base_length} ${base_width} ${base_height}&#034;\/&gt;<br \/>\n            &lt;\/geometry&gt;<br \/>\n            &lt;material name&#061;&#034;blue&#034;&gt;<br \/>\n                &lt;color rgba&#061;&#034;0 0 1 1&#034;\/&gt;<br \/>\n            &lt;\/material&gt;<br \/>\n        &lt;\/visual&gt;<\/p>\n<p>        &lt;collision&gt;<br \/>\n            &lt;geometry&gt;<br \/>\n                &lt;box size&#061;&#034;${base_length} ${base_width} ${base_height}&#034;\/&gt;<br \/>\n            &lt;\/geometry&gt;<br \/>\n        &lt;\/collision&gt;<\/p>\n<p>        &lt;xacro:inertial_box mass&#061;&#034;1.0&#034; x&#061;&#034;${base_length}&#034; y&#061;&#034;${base_width}&#034; z&#061;&#034;${base_height}&#034;\/&gt;<br \/>\n    &lt;\/link&gt;<\/p>\n<hr \/>\n<h4>\u7b2c\u4e09\u6b65&#xff1a;\u6539\u9020\u8f6e\u5b50 (setup_wheel \u5b8f)<\/h4>\n<p>\u8f6e\u5b50\u4e5f\u8981\u6709\u7269\u7406\u5c5e\u6027&#xff0c;\u4e0d\u7136\u5b83\u652f\u6491\u4e0d\u4f4f\u8f66\u8eab\u3002<\/p>\n<p>\u627e\u5230\u4f60\u7684 setup_wheel \u5b8f\u5b9a\u4e49&#xff0c;\u5728 &lt;link name&#061;&#034;${prefix}_wheel_link&#034;&gt; \u91cc\u9762\u4fee\u6539\u3002<\/p>\n<p>\u4fee\u6539\u540e\u7684\u5b8f\u5e94\u8be5\u662f\u8fd9\u6837\u7684&#xff1a;<\/p>\n<p>XML<\/p>\n<p>    &lt;xacro:macro name&#061;&#034;setup_wheel&#034; params&#061;&#034;prefix y_reflect&#034;&gt;<br \/>\n        &lt;xacro:property name&#061;&#034;z_offset&#034; value&#061;&#034;-0.05&#034;\/&gt;<br \/>\n        &lt;link name&#061;&#034;${prefix}_wheel_link&#034;&gt;<br \/>\n            &lt;visual&gt;<br \/>\n                &lt;geometry&gt;<br \/>\n                    &lt;cylinder radius&#061;&#034;${wheel_radius}&#034; length&#061;&#034;${wheel_length}&#034;\/&gt;<br \/>\n                &lt;\/geometry&gt;<br \/>\n                &lt;material name&#061;&#034;grey&#034;&gt;<br \/>\n                    &lt;color rgba&#061;&#034;0.5 0.5 0.5 1&#034;\/&gt;<br \/>\n                &lt;\/material&gt;<br \/>\n            &lt;\/visual&gt;<\/p>\n<p>            &lt;collision&gt;<br \/>\n                &lt;geometry&gt;<br \/>\n                    &lt;cylinder radius&#061;&#034;${wheel_radius}&#034; length&#061;&#034;${wheel_length}&#034;\/&gt;<br \/>\n                &lt;\/geometry&gt;<br \/>\n            &lt;\/collision&gt;<\/p>\n<p>            &lt;xacro:inertial_cylinder mass&#061;&#034;0.1&#034; length&#061;&#034;${wheel_length}&#034; radius&#061;&#034;${wheel_radius}&#034;\/&gt;<br \/>\n        &lt;\/link&gt;<\/p>\n<p>        &lt;joint name&#061;&#034;base_to_${prefix}_wheel&#034; type&#061;&#034;continuous&#034;&gt;<br \/>\n           &#8230; (\u4fdd\u6301\u539f\u6837) &#8230;<br \/>\n        &lt;\/joint&gt;<br \/>\n    &lt;\/xacro:macro&gt;<\/p>\n<hr \/>\n<h4>\u7b2c\u56db\u6b65&#xff1a;\u6539\u9020\u4e07\u5411\u8f6e (caster_wheel_link)<\/h4>\n<p>\u6700\u540e\u662f\u90a3\u4e2a\u5c0f\u767d\u7403\u3002<\/p>\n<p>\u627e\u5230 caster_wheel_link&#xff0c;\u4fee\u6539\u5982\u4e0b&#xff1a;<\/p>\n<p>XML<\/p>\n<p>    &lt;link name&#061;&#034;caster_wheel_link&#034;&gt;<br \/>\n        &lt;visual&gt;<br \/>\n            &lt;geometry&gt;<br \/>\n                &lt;sphere radius&#061;&#034;0.05&#034;\/&gt;<br \/>\n            &lt;\/geometry&gt;<br \/>\n            &lt;material name&#061;&#034;white&#034;&gt;<br \/>\n                &lt;color rgba&#061;&#034;1 1 1 1&#034;\/&gt;<br \/>\n            &lt;\/material&gt;<br \/>\n        &lt;\/visual&gt;<\/p>\n<p>        &lt;collision&gt;<br \/>\n            &lt;geometry&gt;<br \/>\n                &lt;sphere radius&#061;&#034;0.05&#034;\/&gt;<br \/>\n            &lt;\/geometry&gt;<br \/>\n        &lt;\/collision&gt;<\/p>\n<p>        &lt;xacro:inertial_sphere mass&#061;&#034;0.1&#034; radius&#061;&#034;0.05&#034;\/&gt;<br \/>\n    &lt;\/link&gt;<\/p>\n<hr \/>\n<h4>&#x1f9ea; \u9636\u6bb5\u6027\u68c0\u67e5<\/h4>\n<p>\u6539\u4e86\u8fd9\u4e48\u591a\u5730\u65b9&#xff0c;\u4e00\u5b9a\u8981\u68c0\u67e5\u4e00\u4e0b\u8bed\u6cd5\u6709\u6ca1\u6709\u5199\u9519&#xff08;\u6bd4\u5982\u6807\u7b7e\u6ca1\u95ed\u5408&#xff09;\u3002<\/p>\n<li>\n<p>\u7ffb\u8bd1\u4e00\u4e0b&#xff1a;<\/p>\n<p>Bash<\/p>\n<p>xacro src\/my_robot_description\/urdf\/my_robot.urdf.xacro &gt; check.urdf<\/p>\n<p>(\u5982\u679c\u6ca1\u6709\u62a5\u9519&#xff0c;\u8bf4\u660e Xacro \u8bed\u6cd5\u901a\u8fc7&#xff01;)<\/p>\n<\/li>\n<li>\n<p>\u5982\u679c\u62a5\u9519\u4f8b\u5982\u62a5\u9519\u572858\u884c&#xff1a;\u00a0 \u00a0 \u600e\u4e48\u5feb\u901f\u5b9a\u4f4d\u7b2c 58 \u884c&#xff1f;<\/p>\n<\/li>\n<li>\n<p>\u5728 Nano \u7f16\u8f91\u5668\u91cc&#xff1a; 1. \u6309 **&#096;Ctrl &#043; _&#096;** (\u6709\u7684\u952e\u76d8\u662f &#096;Ctrl &#043; Shift &#043; -&#096;&#xff0c;\u5c31\u662f\u4e0b\u5212\u7ebf\u90a3\u4e2a\u952e)\u3002 2. \u5c4f\u5e55\u4e0b\u65b9\u4f1a\u63d0\u793a &#096;Enter line number, column number:&#096;\u3002 3. \u8f93\u5165 **&#096;58&#096;** \u7136\u540e\u56de\u8f66\u3002 4. \u5149\u6807\u4f1a\u76f4\u63a5\u8df3\u5230\u62a5\u9519\u7684\u5730\u65b9\u3002**\u770b\u770b\u5149\u6807\u4e0a\u9762\u662f\u4e0d\u662f\u5c11\u4e86\u4e00\u4e2a\u7ed3\u675f\u6807\u7b7e &#096;&lt;\/&#8230;&gt;&#096;&#xff1f;**<\/p>\n<\/li>\n<li>\n<p>\u770b\u4e00\u773c Rviz&#xff08;\u786e\u4fdd\u5916\u89c2\u6ca1\u53d8&#xff09;&#xff1a;<\/p>\n<p>Bash<\/p>\n<p>ros2 launch urdf_tutorial display.launch.py model:&#061;$(pwd)\/check.urdf<\/p>\n<p>(\u8fd9\u4e00\u6b65 Rviz \u91cc\u770b\u8d77\u6765\u5e94\u8be5\u5b8c\u5168\u6ca1\u6709\u53d8\u5316\u3002\u5982\u679c\u4f60\u80fd\u5728 Rviz \u91cc\u770b\u5230 &#034;Collision Enabled&#034; \u7684\u9009\u9879\u52fe\u9009\u4e0a\u540e\u51fa\u73b0\u4e86\u534a\u900f\u660e\u7684\u5916\u58f3&#xff0c;\u90a3\u5c31\u66f4\u597d\u4e86&#xff0c;\u4e0d\u8fc7\u901a\u5e38\u53ea\u8981\u8f66\u8fd8\u5728\u5c31\u884c)<\/p>\n<\/li>\n<p>\u6253\u5f00Collision Enabled \u5728 Rviz \u5de6\u4fa7\u7684\u663e\u793a\u9762\u677f&#xff08;Displays&#xff09;\u91cc&#xff1a;<\/p>\n<li>\n<p>\u627e\u5230 RobotModel \u8fd9\u4e00\u9879\u3002<\/p>\n<\/li>\n<li>\n<p>\u70b9\u51fb\u5b83\u524d\u9762\u7684\u5c0f\u4e09\u89d2 \u25b6 \u628a\u5b83\u5c55\u5f00\u3002<\/p>\n<\/li>\n<li>\n<p>\u5728\u5c55\u5f00\u7684\u5217\u8868\u91cc&#xff0c;\u627e\u4e00\u4e2a\u53eb Collision Enabled \u7684\u590d\u9009\u6846\u3002<\/p>\n<\/li>\n<li>\n<p>\u6253\u52fe \u3002<\/p>\n<\/li>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/01\/20260117044928-696b14d895a52.png\" \/><\/p>\n<p>\u00a0<\/p>\n<p>\u00a0<\/p>\n<p>\u00a0<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4eca\u5929\u7684\u4e3b\u9898\u662f&#xff1a;\u7ed9\u673a\u5668\u4eba\u8d4b\u4e88\u201c\u7269\u7406\u8089\u4f53\u201d\u3002\u5728 Rviz \u91cc&#xff0c;\u4f60\u7684\u673a\u5668\u4eba\u53ea\u662f\u4e2a\u201c\u5168\u606f\u6295\u5f71\u201d&#xff0c;\u597d\u770b\u4f46\u4e0d\u80fd\u6253\u3002\u4e3a\u4e86\u8ba9\u5b83\u80fd\u8fdb Gazebo&#xff08;\u90a3\u4e2a\u6709\u91cd\u529b\u3001\u6709\u78b0\u649e\u7684\u771f\u5b9e\u4e16\u754c&#xff09;&#xff0c;\u6211\u4eec\u5fc5\u987b\u7ed9\u5b83\u52a0\u4e0a\u4e24\u6837\u4e1c\u897f&#xff1a;\u78b0\u649e\u4f53\u79ef (Collision)&#xff1a;\u7a7f\u4e0a\u201c\u9632\u5f39\u8863\u201d&#xff0c;\u8ba9\u5b83\u80fd\u649e\u5230\u4e1c\u897f&#xff0c;\u800c\u4e0d\u662f\u7a7f\u5899\u800c\u8fc7\u3002\u60ef\u6027\u77e9\u9635 (Inertial)&#xff1a;\u544a\u8bc9\u7535\u8111\u5b83\u6709\u591a\u91cd (Ma<\/p>\n","protected":false},"author":2,"featured_media":61340,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[6484,58,2968,103,384],"topic":[],"class_list":["post-61341","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-gazebo","tag-linux","tag-ros2","tag-ubuntu","tag-384"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Linux\uff1a\u7269\u7406\u4eff\u771f\u4e0e Gazebo \u4e16\u754c - \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\/61341.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Linux\uff1a\u7269\u7406\u4eff\u771f\u4e0e Gazebo \u4e16\u754c - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u4eca\u5929\u7684\u4e3b\u9898\u662f&#xff1a;\u7ed9\u673a\u5668\u4eba\u8d4b\u4e88\u201c\u7269\u7406\u8089\u4f53\u201d\u3002\u5728 Rviz \u91cc&#xff0c;\u4f60\u7684\u673a\u5668\u4eba\u53ea\u662f\u4e2a\u201c\u5168\u606f\u6295\u5f71\u201d&#xff0c;\u597d\u770b\u4f46\u4e0d\u80fd\u6253\u3002\u4e3a\u4e86\u8ba9\u5b83\u80fd\u8fdb Gazebo&#xff08;\u90a3\u4e2a\u6709\u91cd\u529b\u3001\u6709\u78b0\u649e\u7684\u771f\u5b9e\u4e16\u754c&#xff09;&#xff0c;\u6211\u4eec\u5fc5\u987b\u7ed9\u5b83\u52a0\u4e0a\u4e24\u6837\u4e1c\u897f&#xff1a;\u78b0\u649e\u4f53\u79ef (Collision)&#xff1a;\u7a7f\u4e0a\u201c\u9632\u5f39\u8863\u201d&#xff0c;\u8ba9\u5b83\u80fd\u649e\u5230\u4e1c\u897f&#xff0c;\u800c\u4e0d\u662f\u7a7f\u5899\u800c\u8fc7\u3002\u60ef\u6027\u77e9\u9635 (Inertial)&#xff1a;\u544a\u8bc9\u7535\u8111\u5b83\u6709\u591a\u91cd (Ma\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/61341.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-01-17T04:49:29+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/01\/20260117044928-696b14d895a52.png\" \/>\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=\"3 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/61341.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/61341.html\",\"name\":\"Linux\uff1a\u7269\u7406\u4eff\u771f\u4e0e Gazebo \u4e16\u754c - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-01-17T04:49:29+00:00\",\"dateModified\":\"2026-01-17T04:49:29+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/61341.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/61341.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/61341.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Linux\uff1a\u7269\u7406\u4eff\u771f\u4e0e Gazebo \u4e16\u754c\"}]},{\"@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":"Linux\uff1a\u7269\u7406\u4eff\u771f\u4e0e Gazebo \u4e16\u754c - \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\/61341.html","og_locale":"zh_CN","og_type":"article","og_title":"Linux\uff1a\u7269\u7406\u4eff\u771f\u4e0e Gazebo \u4e16\u754c - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u4eca\u5929\u7684\u4e3b\u9898\u662f&#xff1a;\u7ed9\u673a\u5668\u4eba\u8d4b\u4e88\u201c\u7269\u7406\u8089\u4f53\u201d\u3002\u5728 Rviz \u91cc&#xff0c;\u4f60\u7684\u673a\u5668\u4eba\u53ea\u662f\u4e2a\u201c\u5168\u606f\u6295\u5f71\u201d&#xff0c;\u597d\u770b\u4f46\u4e0d\u80fd\u6253\u3002\u4e3a\u4e86\u8ba9\u5b83\u80fd\u8fdb Gazebo&#xff08;\u90a3\u4e2a\u6709\u91cd\u529b\u3001\u6709\u78b0\u649e\u7684\u771f\u5b9e\u4e16\u754c&#xff09;&#xff0c;\u6211\u4eec\u5fc5\u987b\u7ed9\u5b83\u52a0\u4e0a\u4e24\u6837\u4e1c\u897f&#xff1a;\u78b0\u649e\u4f53\u79ef (Collision)&#xff1a;\u7a7f\u4e0a\u201c\u9632\u5f39\u8863\u201d&#xff0c;\u8ba9\u5b83\u80fd\u649e\u5230\u4e1c\u897f&#xff0c;\u800c\u4e0d\u662f\u7a7f\u5899\u800c\u8fc7\u3002\u60ef\u6027\u77e9\u9635 (Inertial)&#xff1a;\u544a\u8bc9\u7535\u8111\u5b83\u6709\u591a\u91cd (Ma","og_url":"https:\/\/www.wsisp.com\/helps\/61341.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-01-17T04:49:29+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/01\/20260117044928-696b14d895a52.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"3 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/61341.html","url":"https:\/\/www.wsisp.com\/helps\/61341.html","name":"Linux\uff1a\u7269\u7406\u4eff\u771f\u4e0e Gazebo \u4e16\u754c - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-01-17T04:49:29+00:00","dateModified":"2026-01-17T04:49:29+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/61341.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/61341.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/61341.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"Linux\uff1a\u7269\u7406\u4eff\u771f\u4e0e Gazebo \u4e16\u754c"}]},{"@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\/61341","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=61341"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/61341\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/61340"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=61341"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=61341"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=61341"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=61341"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}