ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Load Stl file via Package URI

asked 2022-09-06 15:47:41 -0500

marcmarc gravatar image

updated 2022-09-07 02:04:53 -0500


I really cant get this to work and after hours of failure Im posting this here. According to package:// URI are resolved to the install/<package_name>/share/<package_name>/ folder ?</package_name></package_name>

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

All assets can be found in the install/<package>/share/<package> 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/*')), (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?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2022-09-07 02:42:21 -0500

marcmarc gravatar image

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

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2022-09-06 15:47:41 -0500

Seen: 94 times

Last updated: Sep 07 '22