carla
carla copied to clipboard
get_elapsed_time get zero when traffic light state is red
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.
Hi @xujiahao97, could you provide a code example to help reproduce your issue?
meet the same issue if 'traffic.traffic_light' == actor.type_id: print(actor.get_state()) print(actor.get_red_time())
Hi @corkyw10, is there any progress for this issue reproducing or fixing? I met the same issue. Thank you.
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.
I got the same problem, anyone has some tips?
This problem still exists in 0.9.14, does anyone have a better way to get the remaining time of the signal light?
This problem still exists in 0.9.15