Carla: Removing traffic signals in Blueprints or Allowing the vehicle to move without adherace to signals

Created on 28 Aug 2019  Â·  6Comments  Â·  Source: carla-simulator/carla

I want to have an environment where the autopilot can run without any traffic lights.
I am doing so In order to be able to collect certain type of data that requires me to continuously move at a certain speed without stops in between.
I looked through Traffic folder and the CPP files there TrafficLightBase.cpp and others and modified them to allow the vehicle to move even after red-orange lights, but I am not able to succeed.
Request help and guidance here.

stale

Most helpful comment

Hi,

If you want only your vehicle to ignore traffic lights, you should look directly into the Python code. There are several ways to achieve this, from setting all lights to green to making the vehicle ignoring traffic lights altogether, and also this fun recipe that will turn all lights green as you pass by them. I can give some help if you tell me which of the Python examples you are using, or if you're starting from scratch.

All 6 comments

Hi,

If you want only your vehicle to ignore traffic lights, you should look directly into the Python code. There are several ways to achieve this, from setting all lights to green to making the vehicle ignoring traffic lights altogether, and also this fun recipe that will turn all lights green as you pass by them. I can give some help if you tell me which of the Python examples you are using, or if you're starting from scratch.

Thanks for your quick reply.

I am currently using the manual_control.py from version 0.8.4 and 0.9.6.
Currently working the 0.8.4, but I guess the way would almost be the same for both versions.

Hi,

It's enough then to insert the recipe script in the game loop function. Let me know if that solves your issue!

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Hi Jac,
Thanks for the reply.

I am using manual_control.py and the Carla version is 0.8.4 .

-Prashant

On Wed, Aug 28, 2019, 20:12 Jacopo Bartiromo notifications@github.com
wrote:

Hi,

If you want only your vehicle to ignore traffic lights, you should look
directly into the Python code. There are several ways to achieve this, from
setting all lights to green to making the vehicle ignoring traffic lights
altogether, and also this fun recipe
https://carla.readthedocs.io/en/latest/python_cookbook/#traffic-lights-recipe
that will turn all lights green as you pass by them. I can give some help
if you tell me which of the Python examples you are using, or if you're
starting from scratch.

—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/carla-simulator/carla/issues/2054?email_source=notifications&email_token=AEBUDL75D46SIWMNHE2ISXLQG2FF3A5CNFSM4IRFSC72YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD5LLSQY#issuecomment-525777219,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AEBUDL67PJY3YDLVLY3FVTTQG2FF3ANCNFSM4IRFSC7Q
.

Hi,

It's enough then to insert the recipe script in the game loop function. Let me know if that solves your issue!

Was this page helpful?
0 / 5 - 0 ratings