rerun-io / rerun-loader-python-example-urdf

Example URDF file external data loader plugin for Rerun
Apache License 2.0
22 stars 5 forks source link

Support resolving package:// URIs without ROS installed? #15

Open traversaro opened 2 weeks ago

traversaro commented 2 weeks ago

From https://github.com/rerun-io/rerun-loader-python-example-urdf/blob/main/rerun_loader_urdf.py#L202 it seems that a URDF with package:// URIs will fail. However, the only thing that is needed to actually solve package:// URIs is to know which directories contain the package data (and this directories are typically some variants of <install_prefix>/share or similar. So, it is quite common for library that supports URDFs to be able to load URDFs with package:// with ROS, mainly with two possible strategies (more details and links in https://github.com/robotology/idyntree/issues/291):

Would you be open to a PR adding this functionalities of loading package:// URIs without the need of having ROS installed? Thanks in advance!

Just as an example, this would permit to be able to use models installed by non-ROS packages such as https://github.com/robotology/icub-models or https://github.com/robot-descriptions/robot_descriptions.py .