Collection Of Dynamic Morphology Agents For MuJoCo
Project description
Morphing Agents
The majority of MuJoCo benchmarks involve an agent with a fixed morphology. In this package, we provide a suite of continuous control tasks, where the agent samples its morphology at runtime. Have Fun! -Brandon
Installation
You may install the package directly from PyPI using the following command.
pip install morphing-agents
Usage
At this time I have created three agents with dynamic morphologies. You can instantiate them like this.
from morphing_agents.mujoco.ant.env import MorphingAntEnv
env0 = MorphingAntEnv(num_legs=4, expose_design=True)
from morphing_agents.mujoco.dog.env import MorphingDogEnv
env1 = MorphingDogEnv(num_legs=4, expose_design=True)
from morphing_agents.mujoco.dkitty.env import MorphingDKittyEnv
env2 = MorphingDKittyEnv(expose_design=True)
These environments inherit from gym.Env
and can be used as such. The parameter num_legs
determines the number of legs in the agent's design specification, which is sampled at random at the beginning of an episode. The parameter expose_design
vectorizes the design specification and concatenates it with the observation.
Package Structure
The package is organized such that for every agent, there is a elements.py
and designs.py
file that specifies the atomic design elements, and combinations of these elements in a list format respectively. In addition, each agent has a default design present in its designs.py
and a sample_uniformly
function for sampling designs.
Each agent expects to have an expose_design
parameter, and possibly a num_legs
parameter if the number of legs can change. For environments like the DKitty, where this number cannot change, it is omitted from the constructor arguments of the environment class. Each environment conforms to gym.Env
.
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
File details
Details for the file morphing-agents-1.5.1.tar.gz
.
File metadata
- Download URL: morphing-agents-1.5.1.tar.gz
- Upload date:
- Size: 18.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.7.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 01b619ede831af9c6f3389b025eee5a8d6a456c7d0e8b33b3dec5e00c0eb7a6c |
|
MD5 | e2f16b486b8e84bcf83a27ed0c684754 |
|
BLAKE2b-256 | 85e802d1c768dcf5b31c11c2f7d71a23b118cdaa0cf06bd87f8c85f4d5081b3f |