Comments (6)
I think you have to implement this yourself, i.e. write some code that gets the state of each traffic light from SUMO and then sets the state of the corresponding traffic light in CARLA. There may be a simpler way of doing this (e.g. by passing an argument) but I'm not aware if it.
from carla.
You can use the carla.TrafficLight class' methods (set_state
in particular) to synchronize the visual appearance of each traffic light with its state in SUMO.
from carla.
You can use the carla.TrafficLight class' methods (
set_state
in particular) to synchronize the visual appearance of each traffic light with its state in SUMO.
I'm sorry for the question, I am still learning where everything is with CARLA, but would I just include this as an argument when calling "run_syncronization.py", or is there another way to go about doing this?
from carla.
You will need to implement youself as @GoodarzMehr suggested. If you are fine with this answer, please feel free to close the issue
from carla.
You will need to implement youself as @GoodarzMehr suggested. If you are fine with this answer, please feel free to close the issue
I am able to get SUMO states through the TraCI API. I have an idea of how to link the SUMO states to the CARLA states using the code snippet from the carla.TrafficLight.set_state. However I am still a bit lost on how to link that to the lights placed in Unreal Engine. Any further information, examples, or references would be much appreciated. Thank you again.
from carla.
The carla.World
object has several methods for getting traffic lights during a simulation, and if I understand your problem correctly the get_traffic_lights_in_junction()
method in particular (and maybe get_traffic_light_from_opendrive_id()
) can be useful in your case.
from carla.
Related Issues (20)
- Gen2 Male Asian
- Gen2 Male Euro Overweight
- Gen2 Male Afro
- Gen2 Male Amer
- Gen2 Male Asian
- Gen2 Male Afro Strong Overweight
- Gen2 Male Euro Kid
- Gen2 Female Euro Kid
- Time consumption of the first "make launch" HOT 1
- Cloning into 'UnrealEngine'... remote: Repository not found. fatal: repository 'https://github.com/CarlaUnreal/UnrealEngine.git/' not found HOT 10
- Can CARLA 0.9.15 (unbuntu remote headless server)use a map modified by CARLA 0.9.14(windows + UE4)? HOT 2
- What is the path of a new-added obstacle in blueprint_library? HOT 2
- question for importing custom maps in CARLA HOT 3
- Responding error from function get_wheel_steer_angle: Actor could not be found in the registry. Actor Id: <xyz>
- Associate bounding box with actors
- Draw 3D bounding boxes for objects and actors HOT 2
- Modify the effective detection range of the depth camera HOT 1
- Procedural generation of cities HOT 1
- Add VR to CarlaUE HOT 1
- [IMPROVEMENT] Add UAV (flying drone) to the simulation
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 carla.