作者:飞舞的猫2502890283 | 来源:互联网 | 2023-10-10 16:18
Hello,
I was wondering how do I obtain the Traffic light information which gets displayed on the screen in the simulator while it's running. The print_same_line function in client_example.py which prints these measurement doesn't have the traffic light state information printed in code as I saw.
So can you please help me out with this?
Thanks!
该提问来源于开源项目:carla-simulator/carla
Hi,
You can get the transform/position of the next traffic light just as we got
the state.
You have the agent vehicle's transform too.
Taking these two points, you can get the distance of the traffic light!
On Thu, Nov 28, 2019, 21:15 Pranav Agarwal wrote:
Hi, https://github.com/nsubiron is it possible to get the
distance of the car from the next traffic light? I did not find any other
function other than getting a traffic light state.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/carla-simulator/carla/issues/801?email_source=notifications&email_token=AIDCUCAEU2LTD37KTGTAW5DQV7RSVA5CNFSM4FWW5QS2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEFM6PBI#issuecomment-559540101,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AIDCUCGX2WAJY7VCFUANTC3QV7RSVANCNFSM4FWW5QSQ
.