Mesh not being seen by RViz
Hi everyone,
I'm trying to import a simple car wheel 'dae' file although when I launch it, nothing appears on RViz, and in my terminal I get the FileNotFoundException error. I'm following this convention "package://packagename/path," which I found from http://wiki.ros.org/urdf/XML/link. Not sure what file path I should put down for it to find it.
I get the following error when I run this:
[rviz2-3] [ERROR] [1658781703.142265816] [rviz2]: could not load model 'package://agilebot/meshes/Sporttire24540.dae' for link 'baselink': FileNotFoundException: Cannot locate resource package://agilebot/meshes/Sporttire24540.dae in resource group OgreAutodetect. in ResourceGroupManager::openResource at /tmp/binarydeb/ros-foxy-rviz-ogre-vendor-8.2.6/obj-x8664-linux-gnu/ogre-v1.12.1-prefix/src/ogre-v1.12.1/OgreMain/src/OgreResourceGroupManager.cpp (line 703)
Any suggestions would be much appreciated!
<?xml version="1.0"?>
<robot name="agile_bot" xmlns:xacro="http://ros.org/wiki/xacro">
<link name="base_link">
<visual>
<geometry>
<mesh filename="package://agile_bot/meshes/Sport_tire_245_40.dae" scale="1 1 1"/>
</geometry>
</visual>
</link>
</robot>
Asked by ProSerb on 2022-07-25 15:50:15 UTC
Answers
Probably, you forgot to edit the setup.py
file in order to install the mesh files in the install
directory of the package. If you use package
for finding the mesh file, then ROS look inside the install
directory and not in the source (src
) directory, where you store your code.
Asked by Andromeda on 2022-12-04 16:02:44 UTC
Comments