{"id":28061277,"url":"https://github.com/ami-iit/resolve-robotics-uri-py","last_synced_at":"2025-05-12T09:55:53.972Z","repository":{"id":191713049,"uuid":"685254085","full_name":"ami-iit/resolve-robotics-uri-py","owner":"ami-iit","description":"Resolve a package:// or model:// URI to an absolute filename in Python.","archived":false,"fork":false,"pushed_at":"2025-03-05T21:57:14.000Z","size":32,"stargazers_count":10,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-05-08T02:49:11.848Z","etag":null,"topics":["gazebo","robotics","ros","ros2","sdf","sdformat","urdf","urdf-descriptions","urdf-models"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ami-iit.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-08-30T20:46:27.000Z","updated_at":"2025-03-05T21:57:01.000Z","dependencies_parsed_at":"2023-08-31T19:16:17.405Z","dependency_job_id":null,"html_url":"https://github.com/ami-iit/resolve-robotics-uri-py","commit_stats":null,"previous_names":["ami-iit/resolve-robotics-uri-py","traversaro/resolve-robotics-uri-py"],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ami-iit%2Fresolve-robotics-uri-py","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ami-iit%2Fresolve-robotics-uri-py/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ami-iit%2Fresolve-robotics-uri-py/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ami-iit%2Fresolve-robotics-uri-py/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ami-iit","download_url":"https://codeload.github.com/ami-iit/resolve-robotics-uri-py/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253712329,"owners_count":21951709,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["gazebo","robotics","ros","ros2","sdf","sdformat","urdf","urdf-descriptions","urdf-models"],"created_at":"2025-05-12T09:55:53.169Z","updated_at":"2025-05-12T09:55:53.959Z","avatar_url":"https://github.com/ami-iit.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# resolve-robotics-uri-py\n\nPure Python package (that only depends on Python stdlib) to resolve a package:// (ROS-style) or model:// (Gazebo-style) URI to an absolute filename.\n\n## Installation\n\nInstall using onle one of the following commands to install in an existing environment:\n\n### Installation from conda-forge\n\n```bash\nmamba install -c conda-forge resolve-robotics-uri-py\n```\n\n### Installation from PyPI\n\n```bash\npython -m pip install resolve-robotics-uri-py\n```\n\n## Usage in Python\n\nAdd `import resolve_robotics_uri_py` to your Python file, then take inspiration from the following examples.\n\nIf you want to get the location of the `iCubGazeboV2_7` iCub model installed from [`icub-models`](https://github.com/robotology/icub-models):\n\n~~~python\nabsolute_path = resolve_robotics_uri_py.resolve_robotics_uri(\"package://iCub/robots/iCubGazeboV2_7/model.urdf\")\n~~~\n\nIf you want to get the location of the `ergoCubSN00`  model installed from [`ergocub-software`](https://github.com/icub-tech-iit/ergocub-software):\n\n~~~python\nabsolute_path = resolve_robotics_uri_py.resolve_robotics_uri(\"package://ergoCub/robots/ergoCubSN000/model.urdf\")\n~~~\n\nIf you want to get the location of the `panda`  model installed by [`moveit_resources_panda_description`](https://index.ros.org/p/moveit_resources_panda_description/):\n\n~~~python\nabsolute_path = resolve_robotics_uri_py.resolve_robotics_uri(\"package://moveit_resources_panda_description/urdf/panda.urdf\")\n~~~\n\n\n## Command Line usage\n\n`resolve_robotics_uri_py` also install a command line tool called `resolve-robotics-uri-py` for use in scripts, that can be used as:\n\n~~~\nresolve-robotics-uri-py package://iCub/robots/iCubGazeboV2_7/model.urdf\n~~~\n\nFor example,  on bash this can be used to easily convert the a urdf specified via `package://` to an sdf (assuming you have Gazebo installed), using the [backtick operator](https://www.redhat.com/sysadmin/backtick-operator-vs-parens):\n~~~\ngz sdf -p `resolve-robotics-uri-py package://iCub/robots/iCubGazeboV2_7/model.urdf`\n~~~\n\n## Contributing\n\nPull requests are welcome. For major changes, please open an issue first\nto discuss what you would like to change.\n\nPlease make sure to update tests as appropriate.\n\n## License\n\n[BSD-3-Clause](https://spdx.org/licenses/BSD-3-Clause.html)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fami-iit%2Fresolve-robotics-uri-py","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fami-iit%2Fresolve-robotics-uri-py","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fami-iit%2Fresolve-robotics-uri-py/lists"}