当前位置:网站首页>使用roslaunch为Gazebo加载自定义模型时黑屏、报错问题
使用roslaunch为Gazebo加载自定义模型时黑屏、报错问题
2022-06-29 03:27:00 【暮光629】
今天自己弄了一个dae类型的模型文件,想要导入gazebo,按照gazebo .world文件中导入dae模型的问题文章操作了一番,编写如下.world文件
<?xml version="1.0"?>
<sdf version="1.4">
<world name="default">
<include>
<uri>model://sun</uri>
</include>
<include>
<uri>model://ground_plane</uri>
</include>
<model name="SparsePillars">
<pose>0 0 0 0 0 0</pose>
<static>true</static>
<link name="up">
<visual name="visual">
<geometry>
<mesh><uri>file://SparsePillars.dae</uri></mesh>
</geometry>
</visual>
</link>
</model>
</world>
</sdf>
利用该.world文件,直接使用gazebo worldname.world时gazebo能够正常启动,但是使用roslaunch加载world的时候gazebo会一直卡在加载界面黑屏,并且报如下错误
[Err] [ModelDatabase.cc:414] Unable to download model[model://SparsePillars.dae]
[Err] [SystemPaths.cc:412] File or path does not exist[""]
[Err] [Visual.cc:2824] No mesh specified
查资料、找问题找了一天之后,终于在gazebo官网问答区找到一篇帖子,最终的解决方案是在.world文件中将uri地址改为绝对地址,并且绝对地址前面的反斜杠/需要三个!具体world文件如下
<sdf version="1.6">
<world name="default">
<include>
<uri>model://sun</uri>
</include>
<include>
<uri>model://ground_plane</uri>
</include>
<model name="SparsePillars">
<pose>0 0 0.0 0 0 0</pose>
<static>true</static>
<link name="up">
<visual name="visual">
<geometry>
<mesh><uri>file:///home/muguang629/Simulator/SparsePillars.dae</uri></mesh>
</geometry>
</visual>
</link>
</model>
</world>
</sdf>
使用该world文件,roslaunch即可正常启动
边栏推荐
- 深度解析“链动2+1”模式的商业逻辑
- [tcapulusdb knowledge base] tcapulusdb technical support introduction
- 【若依(ruoyi)】ztree初始化
- The four traversal methods of the map set can be seen at a glance
- Ugui slider minimum control
- [thread communication]
- [tcapulusdb] I wish you all a healthy Dragon Boat Festival!
- 如何理解MySQL的索引?
- An internal error occurred during: 'Retrieving archetypes:'.
- 【TcaplusDB知识库】TcaplusDB技术支持介绍
猜你喜欢
![[test theory] quality analysis ability](/img/4b/d011e16c7b2be52fe12c123214779e.jpg)
[test theory] quality analysis ability

Installation and deployment of sw-x framework

Web GIS 航拍实现的智慧园区数字孪生应用
![[tcaplusdb knowledge base] view tcapdir directory server](/img/b6/f3734dfb03ec789525636335457b99.png)
[tcaplusdb knowledge base] view tcapdir directory server
![[tcapulusdb knowledge base] Introduction to tcapulusdb tcapsvrmgr tool (III)](/img/7b/8c4f1549054ee8c0184495d9e8e378.png)
[tcapulusdb knowledge base] Introduction to tcapulusdb tcapsvrmgr tool (III)

【世界海洋日】TcaplusDB号召你一同保护海洋生物多样性

【雲原生】這麼火,你不來了解下?

Yyds dry inventory everything a primary developer should know about activity
![Jerry's watch begins to move [chapter]](/img/85/232da1c1f8dddb3af1e564e4a0fc53.jpg)
Jerry's watch begins to move [chapter]
![The continued movement of Jerry's watch [chapter]](/img/3e/f8b98997320580431a8e7117f4a506.jpg)
The continued movement of Jerry's watch [chapter]
随机推荐
【TcaplusDB知识库】TcaplusDB-tcapsvrmgr工具介绍(一)
Basic concepts of graph theory
87.(cesium篇)cesium热力图(贴地形)
Wechat applet development Basics
The four traversal methods of the map set can be seen at a glance
[tcapulusdb knowledge base] tcapulusdb technical support introduction
87.(cesium篇)cesium热力图(贴地形)
深度解析“链动2+1”模式的商业逻辑
What is the gold content of the equipment supervisor certificate? Is it worth it?
Solid state and memory module purchase
[Ubuntu] [MySQL] Ubuntu installs mysql, but the compilation error is mysql h: No such file or directory
Which is the product with the highest interest rate of increased life insurance on the market at present?
[dynamic planning] change exchange
Input input box click with border
Grafana入门教程
VG4131SxxxN0S1无线模块硬件规格书
[yunyuanyuan] it's so hot. Why don't you come and understand it?
[test theory] quality analysis ability
2022-2028 global secondary butyl lithium industry research and trend analysis report
FortiGate firewall configuration log uploading regularly