Farama-Foundation / Gymnasium-Robotics

A collection of robotics simulation environments for reinforcement learning
https://robotics.farama.org/
MIT License
485 stars 79 forks source link

Add `AntMaze_*-v5` environments, featuring support for loading Third party robot models to Maze #217

Open Kallinteris-Andreas opened 3 months ago

Kallinteris-Andreas commented 3 months ago

Description

new xml_file argument adds the ability to load robot, that can be loaded with gymnasium/mujoco environments

example with Skydio X2 drone:

env = gymnasium.make('AntMaze_UMaze-v4', xml_file="/home/master-andreas/gym/maze_new/mujoco_menagerie/skydio_x2/scene.xml", max_episode_steps=100, max_geom=100000)

image

example with Unitree go2 quadruped:

env = gymnasium.make('AntMaze_UMaze-v4', xml_file="/home/master-andreas/gym/maze_new/mujoco_menagerie/unitree_go2/scene.xml", maze_size_scaling=2, maze_height=0.4, max_episode_steps=100)

image

Type of change

Checklist: