carla icon indicating copy to clipboard operation
carla copied to clipboard

get_elapsed_time get zero when traffic light state is red

Open xujiahao97 opened this issue 4 years ago • 6 comments
trafficstars

Hello, i am now using carla.Trafficlight class. i use get_red_light function and it returns 2,but actually red light red light shines 32 seconds. and i use get_elapsed_time function and its return value is correct during yellow light and green light.but it only counts first 2 seconds of red lights and then it returns 0. I am wondering whether anyone run into same issues or does anyone know how to figure it out.

xujiahao97 avatar Jun 02 '21 05:06 xujiahao97

Hi @xujiahao97, could you provide a code example to help reproduce your issue?

corkyw10 avatar Jun 08 '21 13:06 corkyw10

GLOSA.txt

i wrote this python file according to automatic_control.py.

xujiahao97 avatar Jun 09 '21 01:06 xujiahao97

meet the same issue if 'traffic.traffic_light' == actor.type_id: print(actor.get_state()) print(actor.get_red_time())

dingxin-tech avatar Jun 10 '21 04:06 dingxin-tech

Hi @corkyw10, is there any progress for this issue reproducing or fixing? I met the same issue. Thank you.

GordenZhao avatar Aug 17 '21 01:08 GordenZhao

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.

stale[bot] avatar Jan 09 '22 10:01 stale[bot]

I got the same problem, anyone has some tips?

flyico avatar Sep 15 '22 09:09 flyico

This problem still exists in 0.9.14, does anyone have a better way to get the remaining time of the signal light?

kmeeey avatar Sep 21 '23 09:09 kmeeey

This problem still exists in 0.9.15

smart-geng avatar Jul 08 '24 08:07 smart-geng