carla-simulator / carla

Open-source simulator for autonomous driving research.
http://carla.org
MIT License
11.29k stars 3.65k forks source link

Remove traffic sign #7905

Closed Ikaros520520 closed 3 months ago

Ikaros520520 commented 3 months ago

CARLA version:0.9.12 Platform/OS:Windows

I removed some traffic signs like traffic lights and speed limit signs in the default map "Town2". image image

But when I clicked PLAY in UE to start running, I found that the traffic signs appeared again. Just changed the sign. image

I want to actually remove these traffic signs from the map. Can anyone tell me how to do this? Thank you so much!

Blyron commented 3 months ago

You need to remove the signs and traffic lights from the OpenDrive file, otherwise, you can look and modify this function ATrafficLightManager::RegisterLightComponentFromOpenDRIVE in Unreal\CarlaUnreal\Plugins\Carla\Source\Carla\Traffic\TrafficLightManager.cpp

Ikaros520520 commented 3 months ago

You need to remove the signs and traffic lights from the OpenDrive file, otherwise, you can look and modify this function ATrafficLightManager::RegisterLightComponentFromOpenDRIVE in Unreal\CarlaUnreal\Plugins\Carla\Source\Carla\Traffic\TrafficLightManager.cpp

For Carla and python I'm still learning. Not really sure how to modify .cpp files. I found an easy way. Just move the traffic sign underground.Anyway, thank you very much for your help!

CoderXuans commented 1 week ago

@Ikaros520520 Hello.Even though I moved them underground and ran the evaluation code for the leaderboard, the traffic lights still appear. I moved the nearby low houses underground, and they disappeared, but when I tried to back up the map data and delete the traffic lights, clicking play caused Unreal Engine to crash.