Robotics StackExchange | Archived questions

Load Stl file via Package URI

Hi,

I really cant get this to work and after hours of failure Im posting this here. According to https://answers.ros.org/question/370075/using-package-in-urdf-with-ros2/ package:// URI are resolved to the install//share// folder ?

I have a URDF File and the absolute filepath works, but the package:// doesnt.

All assets can be found in the install//share/ directory All files are copied into the folder at build time via

<?xml version="1.0"?> data_files=[ ('share/ament_index/resource_index/packages', ['resource/' + package_name]), ('share/' + package_name, ['package.xml']), (os.path.join('share', package_name), glob('launch/*.launch.py')), (os.path.join('share', package_name), glob('resource/*')) ],

Why cant the package:// URI be resolved or rather, where is it looking for the stl file?

Asked by marcmarc on 2022-09-06 15:47:41 UTC

Comments

Answers

The answer is that you have to source your package project in the terminal you run rviz2 in

Asked by marcmarc on 2022-09-07 02:42:21 UTC

Comments