Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

gym-ignition-models

Robot models for gym-ignition

These models have been mainly tuned and tested to work in Ignition Gazebo.

Setup

This repository can be installed with the pip package manager as follows:

# From PyPI
pip3 install gym-ignition-models

# From the repository (always containing the most recent changes)
pip3 install git+https://github.com/dic-iit/gym-ignition-models.git

Only GNU/Linux distributions are currently supported.

Configuration

Standalone usage

If you use Ignition Gazebo, you need to specify where the models and their dependent resources are located in the filesystem. The simulator reads the IGN_GAZEBO_RESOURCE_PATH environment variable.

Execute the following commands from outside the directory where you cloned this repository to temporarily configure your environment:

PKG_DIR=$(python -c "import gym_ignition_models, inspect, os; print(os.path.dirname(inspect.getfile(gym_ignition_models)))")
export IGN_GAZEBO_RESOURCE_PATH=$PKG_DIR:$IGN_GAZEBO_RESOURCE_PATH

If you want to make this change persistent, add the lines above to your ~/.bashrc.

Note: waiting an upstream fix, you also need to add to IGN_GAZEBO_RESOURCE_PATH all the directories containing model's meshes.

Note: Alternatively, instead of using IGN_GAZEBO_RESOURCE_PATH, you can use SDF_PATH for the models and IGN_FILE_PATH for the meshes.

Python usage

The environment variables are automatically exported when the package is imported. If your application imports also the scenario package, make sure to import gym_ignition_models first.

Usage

You can use these models either with the standalone simulators, or find and import them in your Python code. Here below an Python example of the utility functions provided by the package:

import gym_ignition_models as m

print(f"Models have been installed in {m.get_models_path()}")
print(f"Available robots: {m.get_robot_names()}")
print("\nModel files:")

for robot_name in m.get_robot_names():
    print(f"{robot_name}: {m.get_model_file(robot_name)}")

Supported models

Robot Name Screenshot
ground_plane
cartpole
pendulum
iCubGazeboV2_5
iCubGazeboSimpleCollisionsV2_5
panda
character

Metadata

Release files for gym-ignition-models 0.1.dev102

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for gym-ignition-models 0.1.dev102
File Size Uploaded Provenance Actions
gym-ignition-models-0.1.dev102.tar.gz 9.5 MB Without provenance Details for gym-ignition-models-0.1.dev102.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for gym-ignition-models 0.1.dev102
File Interpreter ABI Platform Actions
gym_ignition_models-0.1.dev102-py3-none-any.whl Python 3 none any Details for gym_ignition_models-0.1.dev102-py3-none-any.whl

Total release size: 24.5 MB

Release files / gym-ignition-models-0.1.dev102.tar.gz

Download URL gym-ignition-models-0.1.dev102.tar.gz
Size 9.5 MB
Tags Source
SHA-256 checksum
How to use checksums
39d24f0ac0dc77a32bcdccb7b7ad3fbcbf1151dc1dc177af6a6e3ad5d5516f6d
BLAKE2b-256 checksum
How to use checksums
d473855bbe42b1307295f4cae8cf6d0e27a4b79d7f41ca80c7dfe4db2db5ee1e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.53.0 CPython/3.8.6

Release files / gym_ignition_models-0.1.dev102-py3-none-any.whl

Download URL gym_ignition_models-0.1.dev102-py3-none-any.whl
Size 15.1 MB
Tags Python 3
SHA-256 checksum
How to use checksums
904c7122f084087213b73d3b96f7684d3cbe4509ef6d153ca7d3ac140d72f7c9
BLAKE2b-256 checksum
How to use checksums
be1bfdd96880e5ff494b4f909dfa0986205c6b45cd3b245cbb7c45e28fae9830
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.53.0 CPython/3.8.6

Security for gym-ignition-models 0.1.dev102

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page