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:
pip3 install git+https://github.com/dic-iit/gym-ignition-models.git
Only GNU/Linux distributions are currently supported.
Configuration
If you use Ignition Gazebo, you need to execute the following commands (from outside the directory where you cloned this repository):
PKG_DIR=$(python -c "import gym_ignition_models, inspect, os; print(os.path.dirname(inspect.getfile(gym_ignition_models)))")
export SDF_FILE=$PKG_DIR:$SDF_FILE
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 the IGN_FILE_PATH
environment variable all the directories that contain model's meshes.
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 |
|
panda |
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Hashes for gym-ignition-models-0.1.dev56.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 077e1b60a473f84d0184ebc0a836bdf5114b4a802c9b1f8fe81d2c99a28721c3 |
|
MD5 | fb6a6cb03d9b746564a56a8bffa24220 |
|
BLAKE2b-256 | 06b05ebcdfc5f312cdd4f1b4e6e0c571c0a00119625d9e1601d46aee256caa79 |