当前位置:网站首页>[rviz2] error occurs when importing URDF model: could not load resource XXX, unable to open file XXX, error retrieving file XXX
[rviz2] error occurs when importing URDF model: could not load resource XXX, unable to open file XXX, error retrieving file XXX
2022-07-22 00:05:00 【None072】
Project scenario :
Beginners ROS2, Want to be in RViz2 It shows that urdf Model . among .urdf The file references external meshes Folder .
Problem description
stay RViz After entering the robot description topic , The following error occurred
Cause analysis :
According to the error reporting instructions , Should be meshes The file in did not import correctly into the environment variable .
Check under the workspace ,install/pkg/share In folder meshes Whether the file is displayed correctly .
It is found that it does not exist visual and collision Folder .
therefore , We need to change setup.py file , Make it contain correctly .
Solution :
urdf In the document mesh Import , The following format should be used :
<mesh filename="package://webots_ros2_ur_demo/meshes/visual/base.dae"/>
Not like <mesh filename="file://$(find ur5_pick_and_place)/meshes/visual/base.dae"/>
And so on .
correct setup.py file , stay data_files Add the following contents to the parameters :
('share/' + package_name + '/meshes/visual', [
'meshes/visual/base.dae',
'meshes/visual/forearm.dae',
'meshes/visual/shoulder.dae',
'meshes/visual/upperarm.dae',
'meshes/visual/wrist1.dae',
'meshes/visual/wrist2.dae',
'meshes/visual/wrist3.dae',
]),
('share/' + package_name + '/meshes/collision', [
'meshes/collision/base.stl',
'meshes/collision/forearm.stl',
'meshes/collision/shoulder.stl',
'meshes/collision/upperarm.stl',
'meshes/collision/wrist1.stl',
'meshes/collision/wrist2.stl',
'meshes/collision/wrist3.stl',
]),
give the result as follows :
边栏推荐
- ASCII and hexadecimal conversion table
- MySQL learning notes
- 快速解决电脑无线网络无法连接问题
- SQL SELECT statement
- Detailed explanation of PE file structure
- PeopleSoft warning, error, message box
- Datagrip 2021 uses settings that make it smoother to use
- Zhiqiu
- Centos7 configuring MySQL multiple instances
- Analysis of cross apply and outer apply query of SQL Server - Part I
猜你喜欢
How to do app upgrade test?
How to do regression test
Centos7配置MySQL多实例
LAMP架构——mysql路由器(读写分离器)
LVS的不足之处及第四种转发类型FULLNAT
Source lnsight 的使用(通过samba共享下阅读uboot)
WebService (soap) request of JMeter
JDBC connection / operation database of JMeter
Zabbix+ distributed database tidb realizes distributed database monitoring
How to write use cases when uploading files?
随机推荐
JMeter aggregation Report
MySQL learning notes
JProfiler installation and use tutorial
JMeter之BeanShell的变量使用方法
Video 36 Chapter 13
Oracle grouped data
Newly released yolov5 visual actual combat project (1)
Zabbix + Distributed Database tidb Implementation of Distributed Database Monitoring
Common auxiliary classes with high concurrency
Oracle database storage experiment management
JMeter之上传文件和下载文件
Frequently asked interview questions in software testing [3]
LAMP架构——mysql的安装部署、mysql集群及主从结构(1)
Source lnsight 的使用(通过samba共享下阅读uboot)
Follow the guidelines and improve yourself quickly: how to quickly turn functional testing to automated testing
[software test model evolution]
Datagrip 2021 uses settings that make it smoother to use
codis集群的搭建
快速解决电脑无线网络无法连接问题
Solutions to the situation that some software cannot start and start automatically (solved)