Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

connect SUMO to Unity3D #1

Open
ghost opened this issue Jan 9, 2023 · 5 comments
Open

connect SUMO to Unity3D #1

ghost opened this issue Jan 9, 2023 · 5 comments

Comments

@ghost
Copy link

ghost commented Jan 9, 2023

Hello, how can I connect SUMO to Unity3D? I have cloned your projects and simulation is running but unfortunately connection between Unity3D with SUMO is not working.

@ghost
Copy link
Author

ghost commented Jan 9, 2023

how did you sync SUMO with Unity3D?
https://www.youtube.com/watch?v=3TADoA1MNI0

@ghost
Copy link
Author

ghost commented Jan 9, 2023

do you have this file project(github)?
https://www.youtube.com/watch?v=r1qbtAOUi7s

@dalugoga
Copy link
Owner

To run the python script you must install the zmq (ZeroMQ) package. https://zeromq.org/languages/python/

What problems are you having?

@ghost
Copy link
Author

ghost commented Jan 10, 2023

Thanks, I was running python scripts back then and python synced with unity3d together but when I run the SUMO then as 3D needs to display in unity3d and I believe that SUMO with unity3D have no connection together and how can I solve the problem?

@Ahmad1441
Copy link

@dalugoga

Simulation runs and it is great. However, when a pedestrian steps on crosswalk (zebra area), Sumo stops and generate the following warning:

Traceback (most recent call last):
File "C:\Users\ahmad\sumo-unity-distributed-pedestrian-simulator\SUMO Network\runner.py", line 272, in
run()
File "C:\Users\ahmad\sumo-unity-distributed-pedestrian-simulator\SUMO Network\runner.py", line 189, in run
traci.simulationStep()
File "C:\Program Files (x86)\Eclipse\Sumo\tools\traci_init
.py", line 127, in simulationStep
responses = _connections[""].simulationStep(step)
File "C:\Program Files (x86)\Eclipse\Sumo\tools\traci\connection.py", line 323, in simulationStep
result = self._sendExact()
File "C:\Program Files (x86)\Eclipse\Sumo\tools\traci\connection.py", line 99, in _sendExact
raise FatalTraCIError("connection closed by SUMO")
traci.exceptions.FatalTraCIError: connection closed by SUMO

Process finished with exit code 1_

Can you please help me with this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants