gym-ignition-models
Robot models for gym-ignition
These models have been mainly tuned and tested to work in Ignition Gazebo.
Installation
This repository can be installed with the pip package manager as follows:
# From PyPI (release versions)
pip3 install gym-ignition-models
# From PyPI (pre-release versions)
pip3 install --pre gym-ignition-models
# From the repository
pip3 install git+https://github.com/robotology/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 Ignition Gazebo simulator, or find and import them in your Python code. Here below a 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()
print("Model files:")
for robot_name in m.get_robot_names():
print(f"{robot_name}: {m.get_model_file(robot_name)}")
The package also includes a get_model_resource function that provides string, URDF, or SDF descriptions of the supported models.
It converts the descriptions internally, if needed.
Supported models
| Robot Name | Screenshot |
|---|---|
ground_plane |
|
cartpole |
|
pendulum |
|
iCubGazeboV2_5 iCubGazeboSimpleCollisionsV2_5 |
|
panda |
|
character |
License
LGPL v2.1 or any later version.
Metadata
Release files for gym-ignition-models 1.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| gym_ignition_models-1.1.1.tar.gz | 9.5 MB | Without provenance | Details for gym_ignition_models-1.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| gym_ignition_models-1.1.1-py3-none-any.whl | Python 3 | none | any | Details for gym_ignition_models-1.1.1-py3-none-any.whl |
Total release size: 24.5 MB
Release files / gym_ignition_models-1.1.1.tar.gz
| Download URL | gym_ignition_models-1.1.1.tar.gz |
|---|---|
| Size | 9.5 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e4e30488988f1ca2efa844d676633241b3d93ac194129cf2114ff7e6075b3e8f
|
|
BLAKE2b-256 checksum How to use checksums |
43cc3ef20a8278cbff8714e642848cfade0d3b3bbd980ec81b401ad9278052de
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7
|
Release files / gym_ignition_models-1.1.1-py3-none-any.whl
| Download URL | gym_ignition_models-1.1.1-py3-none-any.whl |
|---|---|
| Size | 15.1 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
946d2a26197285a7f0de09edde030ebdbc143ccda04d0b2d598273afa99c54fb
|
|
BLAKE2b-256 checksum How to use checksums |
06a64ad7c6d85a576550e5bd14da80ebbd1baa1e43104ba9a0c4743188b50f95
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7
|
Security for gym-ignition-models 1.1.1
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.