carla icon indicating copy to clipboard operation
carla copied to clipboard

Custom Vehicle not detected by traffic

Open Canio95 opened this issue 1 year ago • 2 comments

CARLA version: 0.9.14 Platform/OS: Windows 10

Hi everyone, I want to modify the UE4 project so that I can drive my own vehicle (created with UE default wheeledVehiclePawn and not the Carla Pawn) as player 0 like you would in a normal UE project. But I'd also like to have the traffic piloted by Carla algorythm through the Generate_Traffic.py command. My issue is that the AI doesn't detect my vehicle and crashes into it. I already tried creating the vehicle using the Carla Pawn BP class with its inherited VehicleBound Box etc and adding it to the vehicle factory but the problem persists. My goal is to drive my vehicle from the editor, not from manualcontrol.py . What should I do?

https://github.com/carla-simulator/carla/assets/148270000/818f9d29-61cc-413f-aba7-ff2f54a4456f

Canio95 avatar Oct 30 '23 15:10 Canio95

Same here. Did you resolve the problem?

yiyuchen-lab avatar Apr 17 '24 05:04 yiyuchen-lab

Controlling your vehicle via editor is not suported for now. You should use manualcontrol.py to drive your own cars, that way generatetraffic will recognice your vehicle.

gsmario avatar May 17 '24 11:05 gsmario

We currently are not gonna support this. CARLA goal is to help people to collect data using agents using interfaces like ROS2 or Python client. So this is not planned in short term.

Traffic takes agents in the traffic manager, you could look there in order to your car is taken into account

Blyron avatar May 31 '24 10:05 Blyron