carla-simulator / carla

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

Changing autopilot behaviour from a code #1989

Closed sljepic closed 4 years ago

sljepic commented 5 years ago

Hello everyone. I am new Carla simulator user and I have questions regarding your autopilot which I use in manual_control.py and also I'm using C++.In my project I'm supposed to detect vehicle in front of me. Also I am supposed to brake to avoid collision. For driving I use your autopilot where I changed code so it doesn't stop automatically. My problem is that when I use autopilot it doesn't register my brake command. I decided to change autopilot so that my vehicle breaks if distance is enough small, and throttles if distance is larger. So my plan was to put one flag that changes autopilot mode. I did that in WheeledVehicleAIController.cpp but I guess that that file is compiled during make package so I am unable to change it. My question is if it is possible to somehow interact with autopilot from my C++ code during the simulation.

sljepic commented 5 years ago

Pls, anyone!? :( Turning autopilot from .cpp file would help also if it is possible.

stale[bot] commented 4 years ago

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.