日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當(dāng)前位置: 首頁 > 运维知识 > Ubuntu >内容正文

Ubuntu

Ubuntu16.04安装ROS后运行gazebo报错 it says it‘s incompatible with that RT“‘ failed.

發(fā)布時間:2025/3/19 Ubuntu 53 豆豆
生活随笔 收集整理的這篇文章主要介紹了 Ubuntu16.04安装ROS后运行gazebo报错 it says it‘s incompatible with that RT“‘ failed. 小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.

Ubuntu16.04系統(tǒng)安裝ROS(kinetic版本)后,使用ROS包含的gazebo時報錯,gzserver: /build/ogre-1.9-mqY1wq/ogre-1.9-1.9.0+dfsg1/OgreMain /src/OgreRenderSystem.cpp:546: virtual void Ogre::RenderSystem::setDepthBufferFor (Ogre::RenderTarget*): Assertion `bAttached && "A new DepthBuffer for a RenderTarget was created, but after creation" "it says it's incompatible with that RT"' failed.以及 Called publishAsync but publisher thread has not been started, THIS IS NOT RT safe. You should start it yourself。

1. 報錯原因是ROS自帶的gazebo版本太低

通過下面指令可以看到gazebo版本是7.0.0

gazebo --version

2. 升級gazebo?

2.1?添加下載源

sudo sh -c 'echo "deb http://packages.osrfoundation.org/gazebo/ubuntu-stable `lsb_release -cs` main" > /etc/apt/sources.list.d/gazebo-stable.list'

2.2??添加軟件包密鑰

wget http://packages.osrfoundation.org/gazebo.key -O - | sudo apt-key add -

2.3??更新系統(tǒng)下載源

sudo apt update

2.4??更新gazebo7

sudo apt-get install gazebo7

2.5??測試gazebo版本

gazebo --version

?

2.6 gazebo升級后,gazebo可正常運行,而且可以加載模型,如下圖

?

?

附錄

1. 如果后續(xù)重新編譯工作空間時報錯?/usr/include/gazebo-7/gazebo/msgs/msgs.hh:24:37: fatal error: ignition/math/ Inertial.hh: No such file or directory。

安裝libignition-math2-dev依賴項即可解決

sudo apt-get install libignition-math2-dev

?

總結(jié)

以上是生活随笔為你收集整理的Ubuntu16.04安装ROS后运行gazebo报错 it says it‘s incompatible with that RT“‘ failed.的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網(wǎng)站內(nèi)容還不錯,歡迎將生活随笔推薦給好友。