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

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

Hi,

I really cant get this to work and after hours of failure Im posting this here. According to https://answers.ros.org/question/3700... 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/*.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?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

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

Stats

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

Seen: 79 times

Last updated: Sep 07 '22