Comments (3)
Problem located
I'm also having this problem; the only difference is that I'm using Windows.
By doing some workaround, I'm able to have macad-gym code run on Windows platform, but I'm also sticking at env.reset()
. With a step-by-step debugging, I've already locate the problem to here:
macad-gym/src/macad_gym/carla/multi_env.py
Lines 478 to 487 in 38884ac
The reason why this loop is infinite is because the Subprocess bind the port to a Python
process instead of CarlaUE4
(or more specifically, CarlaUE4-Win64-Shipping.exe
on Windows). Which lead us back to the upper create subprocess code:
macad-gym/src/macad_gym/carla/multi_env.py
Lines 453 to 470 in 38884ac
I'm able to start a Carla server directly using my command-line, the carla.Client
connect to it without a problem. However, I'm still trying to find a way to make the Python code work as expected.
Environment Info
The environment details I'm using is as below:
- Windows 11 latest build
- Carla 0.9.13 pre-built release (since the issuer said falling back to 0.9.4 doesn't help, I'm not going to try that now)
- Carla Python API 0.9.13_cp38 from pypi.prg
from macad-gym.
Hi @KID0031,
From the log it looks like the CARLA server was not launched on your machine for some reason. I am assuming that you have followed the setup steps described here.
Could you share your output for: echo $CARLA_SERVER
?
Also, are you able to execute: bash $CARLA_SERVER
without any issues?
from macad-gym.
@KID0031 : Please try the latest version with MorphIng's fixes, which likely resolves the issue you are facing. You would want to clone this repo, pull the latest changes and install the python package from source using: pip install -e .
I am closing this issue based on MorphIng's PR comments & fixes. Please re-open if you are still facing this 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
- 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.