Cannot locate resource package://lexus_rx_450h_description/meshes/LexusRX.obj in resource group OgreAutodetect
I have installed Autoware and ROS from the src code. I first source the libraries then run rviz with no problem however when I try to run the robot_state_publisher
with the lexus file I get the below error:
Parsing robot urdf xml string.
[ERROR] [rviz2]: No meshes found in file [package://lexus_rx_450h_description/meshes/LexusRX.obj]
[ERROR] [rviz2]: FileNotFoundException: Cannot locate resource package://lexus_rx_450h_description/meshes/LexusRX.obj in resource group OgreAutodetect. in ResourceGroupManager::openResource at /tmp/binarydeb/ros-dashing-rviz-ogre-vendor-6.1.6/obj-x86_64-linux-gnu/ogre-master-ca665a6-prefix/src/ogre-master-ca665a6/OgreMain/src/OgreResourceGroupManager.cpp (line 708)
[ERROR] [rviz2]: could not load model 'package://lexus_rx_450h_description/meshes/LexusRX.obj' for link 'base_link': FileNotFoundException: Cannot locate resource package://lexus_rx_450h_description/meshes/LexusRX.obj in resource group OgreAutodetect. in ResourceGroupManager::openResource at /tmp/binarydeb/ros-dashing-rviz-ogre-vendor-6.1.6/obj-x86_64-linux-gnu/ogre-master-ca665a6-prefix/src/ogre-master-ca665a6/OgreMain/src/OgreResourceGroupManager.cpp (line 708)
[ERROR] [rviz2]: No meshes found in file [package://lexus_rx_450h_description/meshes/LexusRX.obj]
[ERROR] [rviz2]: FileNotFoundException: Cannot locate resource package://lexus_rx_450h_description/meshes/LexusRX.obj in resource group OgreAutodetect. in ResourceGroupManager::openResource at /tmp/binarydeb/ros-dashing-rviz-ogre-vendor-6.1.6/obj-x86_64-linux-gnu/ogre-master-ca665a6-prefix/src/ogre-master-ca665a6/OgreMain/src/OgreResourceGroupManager.cpp (line 708)
[ERROR] [rviz2]: could not load model 'package://lexus_rx_450h_description/meshes/LexusRX.obj' for link 'base_link': FileNotFoundException: Cannot locate resource package://lexus_rx_450h_description/meshes/LexusRX.obj in resource group OgreAutodetect. in ResourceGroupManager::openResource at /tmp/binarydeb/ros-dashing-rviz-ogre-vendor-6.1.6/obj-x86_64-linux-gnu/ogre-master-ca665a6-prefix/src/ogre-master-ca665a6/OgreMain/src/OgreResourceGroupManager.cpp (line 708)
My commands are:
$ source /opt/Autoware/share/setup.bash
$ rviz2 -d /opt/AutowareAuto/share/autoware_auto_examples/rviz2/autoware_perception_stack.rviz
$ ros2 run velodyne_node velodyne_cloud_node_exe __ns:=/lidar_front __params:=/opt/AutowareAuto/share/velodyne_node/param/vlp16_test.param.yaml
$ ros2 run robot_state_publisher robot_state_publisher /opt/AutowareAuto/share/lexus_rx_450h_description/urdf/lexus_rx_450h.urdf
I think you've got a typo in there. Your first command should be:
$ source /opt/Autoware/setup.bash
WIthout
share/
.Unfortunately that is not the cause. I have since reinstalled so the paths are different. In one terminal I have inputted
And in another:
I then get the errors listed above in the 1st terminal. I have verified that the LexusRX.obj file is in the correct path. I have also tried different paths in the urdf file ex:
I've also tried copying it to Documents and changing the urdf file to
@kcassis It seems like you've installed from source to
/opt/AutowareAuto
. Is this the case? If so, this is not a supported configuration at this time - only using theade
Docker-based environment is supported at this time.I can try to help you further if you give me the full list of commands that you used to build and install everything but there is no guarantee that I will be able to solve your problems since this is not a supported configuration.