{"id":326,"date":"2024-12-17T01:06:20","date_gmt":"2024-12-16T17:06:20","guid":{"rendered":"http:\/\/106.12.148.75\/?p=326"},"modified":"2024-12-17T12:34:32","modified_gmt":"2024-12-17T04:34:32","slug":"could-not-find-a-package-configuration-file-provided-by-ament_lint_auto","status":"publish","type":"post","link":"https:\/\/jamilblog.top\/?p=326","title":{"rendered":"Could not find a package configuration file provided by &#8220;ament_lint_auto&#8221;"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">\u95ee\u9898\u80cc\u666f<\/h2>\n\n\n\n<p>ros2\u4f7f\u7528colcon\u7f16\u8bd1\u7a0b\u5e8f\u65f6\u62a5\u9519<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#EEFFFF;--cbp-line-number-width:calc(2 * 0.6 * .875rem);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:flex;align-items:center;padding:10px 0px 10px 16px;margin-bottom:-2px;width:100%;text-align:left;background-color:#304047;color:#d5ffff\">Bash<\/span><span role=\"button\" tabindex=\"0\" data-code=\"Starting &gt;&gt;&gt; constants\n--- stderr: constants                         \nCMake Error at CMakeLists.txt:32 (find_package):\n  By not providing &quot;Findament_lint_auto.cmake&quot; in CMAKE_MODULE_PATH this\n  project has asked CMake to find a package configuration file provided by\n  &quot;ament_lint_auto&quot;, but CMake did not find one.\n\n  Could not find a package configuration file provided by &quot;ament_lint_auto&quot;\n  with any of the following names:\n\n    ament_lint_autoConfig.cmake\n    ament_lint_auto-config.cmake\n\n  Add the installation prefix of &quot;ament_lint_auto&quot; to CMAKE_PREFIX_PATH or\n  set &quot;ament_lint_auto_DIR&quot; to a directory containing one of the above files.\n  If &quot;ament_lint_auto&quot; provides a separate development package or SDK, be\n  sure it has been installed.\n\n\n---\nFailed   &lt;&lt;&lt; constants [0.30s, exited with code 1]\n\nSummary: 0 packages finished [0.60s]\n  1 package failed: constants\n  1 package had stderr output: constants\n  2 packages not processed\" style=\"color:#EEFFFF;display:none\" aria-label=\"\u590d\u5236\" class=\"code-block-pro-copy-button\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki material-theme\" style=\"background-color: #263238\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #FFCB6B\">Starting<\/span><span style=\"color: #EEFFFF\"> &gt;&gt;&gt; <\/span><span style=\"color: #C3E88D\">constants<\/span><\/span>\n<span class=\"line\"><span style=\"color: #FFCB6B\">---<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">stderr:<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">constants<\/span><span style=\"color: #EEFFFF\">                         <\/span><\/span>\n<span class=\"line\"><span style=\"color: #FFCB6B\">CMake<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">Error<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">at<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">CMakeLists.txt:32<\/span><span style=\"color: #EEFFFF\"> (find_package):<\/span><\/span>\n<span class=\"line\"><span style=\"color: #EEFFFF\">  <\/span><span style=\"color: #FFCB6B\">By<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">not<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">providing<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #89DDFF\">&quot;<\/span><span style=\"color: #C3E88D\">Findament_lint_auto.cmake<\/span><span style=\"color: #89DDFF\">&quot;<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">in<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">CMAKE_MODULE_PATH<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">this<\/span><\/span>\n<span class=\"line\"><span style=\"color: #EEFFFF\">  <\/span><span style=\"color: #FFCB6B\">project<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">has<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">asked<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">CMake<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">to<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">find<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">a<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">package<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">configuration<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">file<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">provided<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">by<\/span><\/span>\n<span class=\"line\"><span style=\"color: #EEFFFF\">  <\/span><span style=\"color: #FFCB6B\">&quot;ament_lint_auto&quot;<\/span><span style=\"color: #FFCB6B\">,<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">but<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">CMake<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">did<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">not<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">find<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">one.<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #EEFFFF\">  <\/span><span style=\"color: #FFCB6B\">Could<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">not<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">find<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">a<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">package<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">configuration<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">file<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">provided<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">by<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #89DDFF\">&quot;<\/span><span style=\"color: #C3E88D\">ament_lint_auto<\/span><span style=\"color: #89DDFF\">&quot;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #EEFFFF\">  <\/span><span style=\"color: #FFCB6B\">with<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">any<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">of<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">the<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">following<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">names:<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #EEFFFF\">    <\/span><span style=\"color: #FFCB6B\">ament_lint_autoConfig.cmake<\/span><\/span>\n<span class=\"line\"><span style=\"color: #EEFFFF\">    <\/span><span style=\"color: #FFCB6B\">ament_lint_auto-config.cmake<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #EEFFFF\">  <\/span><span style=\"color: #FFCB6B\">Add<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">the<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">installation<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">prefix<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">of<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #89DDFF\">&quot;<\/span><span style=\"color: #C3E88D\">ament_lint_auto<\/span><span style=\"color: #89DDFF\">&quot;<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">to<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">CMAKE_PREFIX_PATH<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">or<\/span><\/span>\n<span class=\"line\"><span style=\"color: #EEFFFF\">  <\/span><span style=\"color: #82AAFF\">set<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #89DDFF\">&quot;<\/span><span style=\"color: #C3E88D\">ament_lint_auto_DIR<\/span><span style=\"color: #89DDFF\">&quot;<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">to<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">a<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">directory<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">containing<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">one<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">of<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">the<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">above<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">files.<\/span><\/span>\n<span class=\"line\"><span style=\"color: #EEFFFF\">  <\/span><span style=\"color: #FFCB6B\">If<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #89DDFF\">&quot;<\/span><span style=\"color: #C3E88D\">ament_lint_auto<\/span><span style=\"color: #89DDFF\">&quot;<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">provides<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">a<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">separate<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">development<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">package<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">or<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">SDK,<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">be<\/span><\/span>\n<span class=\"line\"><span style=\"color: #EEFFFF\">  <\/span><span style=\"color: #FFCB6B\">sure<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">it<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">has<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">been<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">installed.<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #FFCB6B\">---<\/span><\/span>\n<span class=\"line\"><span style=\"color: #FFCB6B\">Failed<\/span><span style=\"color: #EEFFFF\">   <\/span><span style=\"color: #89DDFF\">&lt;&lt;&lt;<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">constants<\/span><span style=\"color: #EEFFFF\"> [0.30s, <\/span><span style=\"color: #C3E88D\">exited<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">with<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">code<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #F78C6C\">1<\/span><span style=\"color: #C3E88D\">]<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #FFCB6B\">Summary:<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #F78C6C\">0<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">packages<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">finished<\/span><span style=\"color: #EEFFFF\"> [0.60s]<\/span><\/span>\n<span class=\"line\"><span style=\"color: #EEFFFF\">  <\/span><span style=\"color: #FFCB6B\">1<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">package<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">failed:<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">constants<\/span><\/span>\n<span class=\"line\"><span style=\"color: #EEFFFF\">  <\/span><span style=\"color: #FFCB6B\">1<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">package<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">had<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">stderr<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">output:<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">constants<\/span><\/span>\n<span class=\"line\"><span style=\"color: #EEFFFF\">  <\/span><span style=\"color: #FFCB6B\">2<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">packages<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">not<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">processed<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p>\u6211\u4f4e\u5934\u4e00\u770b\u8fd9\u4e0d\u662f\u6ca1source ros\u7684\u73af\u5883\u4e48\uff0c\u4e8e\u662f\u8f93\u5165<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#EEFFFF;--cbp-line-number-width:calc(1 * 0.6 * .875rem);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:flex;align-items:center;padding:10px 0px 10px 16px;margin-bottom:-2px;width:100%;text-align:left;background-color:#304047;color:#d5ffff\">Bash<\/span><span role=\"button\" tabindex=\"0\" data-code=\"source \/opt\/ros\/foxy\/setup.zsh\" style=\"color:#EEFFFF;display:none\" aria-label=\"\u590d\u5236\" class=\"code-block-pro-copy-button\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki material-theme\" style=\"background-color: #263238\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #82AAFF\">source<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">\/opt\/ros\/foxy\/setup.zsh<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p>\u7136\u540e\u8fd8\u662f\u8fd9\u4e2a\u95ee\u9898\uff0c\u4e00\u8138\u61f5\u903c<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u89e3\u51b3\u65b9\u6cd5<\/h2>\n\n\n\n<p>\u539f\u6765\u662f\u4e0d\u77e5\u9053\u4ec0\u4e48\u65f6\u5019auto remove\u628aament_lint_auto\u7ed9\u6211\u5378\u8f7d\u6389\u4e86\uff08auto remove\u771f\u5fc3\u614e\u7528\uff09<\/p>\n\n\n\n<p>\u68c0\u67e5ament_lint_auto\u662f\u5426\u6b63\u5e38<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#EEFFFF;--cbp-line-number-width:calc(1 * 0.6 * .875rem);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:flex;align-items:center;padding:10px 0px 10px 16px;margin-bottom:-2px;width:100%;text-align:left;background-color:#304047;color:#d5ffff\">Bash<\/span><span role=\"button\" tabindex=\"0\" data-code=\"dpkg -l | grep ament-lint-auto\" style=\"color:#EEFFFF;display:none\" aria-label=\"\u590d\u5236\" class=\"code-block-pro-copy-button\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki material-theme\" style=\"background-color: #263238\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #FFCB6B\">dpkg<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">-l<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #89DDFF\">|<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #FFCB6B\">grep<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">ament-lint-auto<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p>\u5982\u679c\u6ca1\u6709\u8f93\u51fa\u91cd\u65b0\u5b89\u88c5\u5373\u53ef<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#EEFFFF;--cbp-line-number-width:calc(1 * 0.6 * .875rem);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:flex;align-items:center;padding:10px 0px 10px 16px;margin-bottom:-2px;width:100%;text-align:left;background-color:#304047;color:#d5ffff\">Bash<\/span><span role=\"button\" tabindex=\"0\" data-code=\"sudo apt update\nsudo apt install ros-foxy-ament-lint-auto\" style=\"color:#EEFFFF;display:none\" aria-label=\"\u590d\u5236\" class=\"code-block-pro-copy-button\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki material-theme\" style=\"background-color: #263238\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #FFCB6B\">sudo<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">apt<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">update<\/span><\/span>\n<span class=\"line\"><span style=\"color: #FFCB6B\">sudo<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">apt<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">install<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">ros-foxy-ament-lint-auto<\/span><\/span><\/code><\/pre><\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u95ee\u9898\u80cc\u666f ros2\u4f7f\u7528colcon\u7f16\u8bd1\u7a0b\u5e8f\u65f6\u62a5\u9519 \u6211\u4f4e\u5934\u4e00\u770b\u8fd9\u4e0d\u662f\u6ca1source ros\u7684\u73af\u5883\u4e48\uff0c\u4e8e\u662f\u8f93\u5165 \u7136\u540e\u8fd8\u662f\u8fd9\u4e2a\u95ee\u9898\uff0c\u4e00\u8138 &#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"emotion":"","emotion_color":"","title_style":"","license":"","footnotes":""},"categories":[5],"tags":[28,23,26],"class_list":["post-326","post","type-post","status-publish","format-standard","hentry","category-tools","tag-ament","tag-ros","tag-ros2"],"_links":{"self":[{"href":"https:\/\/jamilblog.top\/index.php?rest_route=\/wp\/v2\/posts\/326","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jamilblog.top\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jamilblog.top\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jamilblog.top\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/jamilblog.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=326"}],"version-history":[{"count":2,"href":"https:\/\/jamilblog.top\/index.php?rest_route=\/wp\/v2\/posts\/326\/revisions"}],"predecessor-version":[{"id":328,"href":"https:\/\/jamilblog.top\/index.php?rest_route=\/wp\/v2\/posts\/326\/revisions\/328"}],"wp:attachment":[{"href":"https:\/\/jamilblog.top\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=326"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jamilblog.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=326"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jamilblog.top\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=326"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}