Skip to main content

Additional robot models for RL simulations

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gym-ignition-models-0.1.dev98.tar.gz (9.5 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gym_ignition_models-0.1.dev98-py3-none-any.whl (15.1 MB view details)

Uploaded Python 3

File details

Details for the file gym-ignition-models-0.1.dev98.tar.gz.

File metadata

  • Download URL: gym-ignition-models-0.1.dev98.tar.gz
  • Upload date:
  • Size: 9.5 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.0 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.6

File hashes

Hashes for gym-ignition-models-0.1.dev98.tar.gz
Algorithm Hash digest
SHA256 b17c823463b24c7df474382f96acd1f9a75d473519030065237b9a01759179bf
MD5 f004ba0cdb1bceee1bd8d444dbfaa9d0
BLAKE2b-256 9556004c7cde050d48531f839787e37b562c7baf9702cbf402e771b6154aeab6

See more details on using hashes here.

File details

Details for the file gym_ignition_models-0.1.dev98-py3-none-any.whl.

File metadata

  • Download URL: gym_ignition_models-0.1.dev98-py3-none-any.whl
  • Upload date:
  • Size: 15.1 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.0 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.6

File hashes

Hashes for gym_ignition_models-0.1.dev98-py3-none-any.whl
Algorithm Hash digest
SHA256 fd689b4e822a052949bcd9d8f204e6c8fd93b41c5f4d8a32a74575a2e66c2585
MD5 3d2335398c06835d27bedfa261bf2ff6
BLAKE2b-256 e0e3caf09d25eee4af622c1ef432c9e25521a4c945714f9ef436ee7e6fd34c17

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page