https://github.com/ami-iit/resolve-robotics-uri-py

Resolve a package:// or model:// URI to an absolute filename in Python.

https://github.com/ami-iit/resolve-robotics-uri-py

Science Score: 26.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (11.2%) to scientific vocabulary

Keywords

gazebo robotics ros ros2 sdf sdformat urdf urdf-descriptions urdf-models
Last synced: 5 months ago · JSON representation

Repository

Resolve a package:// or model:// URI to an absolute filename in Python.

Basic Info
  • Host: GitHub
  • Owner: ami-iit
  • License: bsd-3-clause
  • Language: Python
  • Default Branch: main
  • Homepage:
  • Size: 31.3 KB
Statistics
  • Stars: 10
  • Watchers: 2
  • Forks: 2
  • Open Issues: 1
  • Releases: 6
Topics
gazebo robotics ros ros2 sdf sdformat urdf urdf-descriptions urdf-models
Created over 2 years ago · Last pushed 12 months ago
Metadata Files
Readme License

README.md

resolve-robotics-uri-py

Pure Python package (that only depends on Python stdlib) to resolve a package:// (ROS-style) or model:// (Gazebo-style) URI to an absolute filename.

Installation

Install using onle one of the following commands to install in an existing environment:

Installation from conda-forge

bash mamba install -c conda-forge resolve-robotics-uri-py

Installation from PyPI

bash python -m pip install resolve-robotics-uri-py

Usage in Python

Add import resolve_robotics_uri_py to your Python file, then take inspiration from the following examples.

If you want to get the location of the iCubGazeboV2_7 iCub model installed from icub-models:

~~~python absolutepath = resolveroboticsuripy.resolveroboticsuri("package://iCub/robots/iCubGazeboV2_7/model.urdf") ~~~

If you want to get the location of the ergoCubSN00 model installed from ergocub-software:

~~~python absolutepath = resolveroboticsuripy.resolveroboticsuri("package://ergoCub/robots/ergoCubSN000/model.urdf") ~~~

If you want to get the location of the panda model installed by moveit_resources_panda_description:

~~~python absolutepath = resolveroboticsuripy.resolveroboticsuri("package://moveitresourcespanda_description/urdf/panda.urdf") ~~~

Command Line usage

resolve_robotics_uri_py also install a command line tool called resolve-robotics-uri-py for use in scripts, that can be used as:

~~~ resolve-robotics-uri-py package://iCub/robots/iCubGazeboV2_7/model.urdf ~~~

For 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: ~~~ gz sdf -p resolve-robotics-uri-py package://iCub/robots/iCubGazeboV2_7/model.urdf ~~~

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

BSD-3-Clause

Owner

  • Name: Artificial and Mechanical Intelligence
  • Login: ami-iit
  • Kind: organization
  • Location: Italy

GitHub Events

Total
  • Release event: 1
  • Watch event: 2
  • Delete event: 1
  • Issue comment event: 4
  • Push event: 6
  • Pull request event: 3
  • Create event: 2
Last Year
  • Release event: 1
  • Watch event: 2
  • Delete event: 1
  • Issue comment event: 4
  • Push event: 6
  • Pull request event: 3
  • Create event: 2

Issues and Pull Requests

Last synced: 6 months ago

All Time
  • Total issues: 3
  • Total pull requests: 12
  • Average time to close issues: 3 months
  • Average time to close pull requests: 3 days
  • Total issue authors: 2
  • Total pull request authors: 3
  • Average comments per issue: 2.33
  • Average comments per pull request: 2.67
  • Merged pull requests: 9
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 0
  • Pull requests: 2
  • Average time to close issues: N/A
  • Average time to close pull requests: 15 minutes
  • Issue authors: 0
  • Pull request authors: 2
  • Average comments per issue: 0
  • Average comments per pull request: 2.5
  • Merged pull requests: 1
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • flferretti (2)
  • traversaro (1)
Pull Request Authors
  • traversaro (7)
  • flferretti (5)
  • diegoferigo (4)
Top Labels
Issue Labels
Pull Request Labels

Packages

  • Total packages: 1
  • Total downloads:
    • pypi 5,130 last-month
  • Total dependent packages: 1
  • Total dependent repositories: 0
  • Total versions: 4
  • Total maintainers: 2
pypi.org: resolve-robotics-uri-py

Pure python package to solve ROS-style package:// and Gazebo-style model:// URIs in absolute paths.

  • Versions: 4
  • Dependent Packages: 1
  • Dependent Repositories: 0
  • Downloads: 5,130 Last month
Rankings
Dependent packages count: 7.5%
Stargazers count: 23.3%
Forks count: 30.2%
Average: 32.6%
Dependent repos count: 69.6%
Maintainers (2)
Last synced: 6 months ago

Dependencies

.github/workflows/ci.yml actions
  • actions/checkout v3 composite
  • mamba-org/setup-micromamba v1 composite
pyproject.toml pypi
setup.py pypi
.github/workflows/publish-to-pypi.yml actions
  • actions/checkout v3 composite
  • actions/setup-python v4 composite
  • pypa/gh-action-pypi-publish release/v1 composite