Comments (3)
Hi @lijecaru :
There is a "Getting Started" section in the README file and the typical usage of the environments provided by the macad-gym package is illustrated here.
As an example, after you setup CARLA 0.9.x and install macad-gym using the instructions in the README.md, You can find the list of available learning environments and a brief description of the environments using the following 3 lines of code:
import gym
import macad_gym
macad_gym.get_available_envs()
Let's say you want to use the HomoNcomIndePOIntrxMASS3CTWN3-v0
environment, you can then create an environment using the following 3 lines of code:
import gym
import macad_gym
env = gym.make("HomoNcomIndePOIntrxMASS3CTWN3-v0")
These learning environments are OpenAI Gym compatible. Therefore, you can use any standard RL/deep-RL library to train you agents in these environments.
Let me know if you need more information to get started.
from macad-gym.
@praveen-palanisamy I tried to use macad-gym in the both ways described in the README file.
-
Installing it as only a user (pip install git+https://github.com/praveen-palanisamy/macad-gym.git) doesn't provide any error when I run the line
import macad_gym
, but when I testmacad_gym.get_available_envs()
I the following message:AttributeError: module 'macad_gym' has no attribute 'get_available_envs'
-
As a developer, I create the conda environment using the .yaml file, but when I ran again
import macad_gym
I get the following:ModuleNotFoundError: No module named 'macad_gym'
So, I went to the Conda env and searched for the macad_gym folder, i found that it wasn't anywhere in the new environment, so I copied the folders macad_gym and macad_gym-0.0.1.post0.dist-info from the previous environment I created (step 1). After that I ranimport macad_gym
without problems, but when I testmacad_gym.get_available_envs()
I the following message:AttributeError: module 'macad_gym' has no attribute 'get_available_envs'
, exactly the same as before.
I am using Ubuntu 16.04 and Anaconda3. Any idea of what I could do to solve this? Thank you
from macad-gym.
Hi @lijecaru,
You actually had them all right! The function name to get the list of available environments in the latest version is: list_available_envs
. So, please use: macad_gym.list_avaialble_envs()
and it should work.
Thanks for reporting this. I have updated the README to reflect the change as per the latest version. The reason why you get ModuleNotFoundError: No module named 'macad_gym'
in your case 2. is because, you might have not installed the macad-gym
package. You can use: pip install -e .
from the macad-gym
folder after you have cloned this repo. I have updated the README to reflect this as well.
Hope that gets you rolling. Let me know if you face any other issue.
from macad-gym.
Related Issues (20)
- Unable to use RL algorithms with continuous action space HOT 5
- Increasing number of steps per episode/ iteration HOT 3
- Multiprocess pickle Problem HOT 3
- How to set the spectator on the agent HOT 1
- Does macad-gym support multi-agent algos training? HOT 2
- Also stuck in env.reset() in example HOT 3
- How to create communicating environment?
- How to visualize the learning environment? HOT 2
- Support the library HOT 3
- `multi_view_render` will pop new display window on each frame with latest version of Pygame HOT 6
- The latest pull request is incomplete HOT 3
- gym version will affect the usage of ray[rllib] HOT 2
- PathTracker generate wrong route HOT 2
- when I use urban_signal_intersection_3c env ,happen error,please help me HOT 8
- How to customize a learning environment? HOT 2
- How do we port an existing multi-agent leanring algorithm such as IDDPG, IPPO? HOT 4
- Communication Mechanism
- v0.1.3 carla serve can't get connection HOT 1
- Implement of IMPALA Agent Examples HOT 2
- No support for other sensors? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from macad-gym.