AirSim
AirSim copied to clipboard
Auto Driving with Apollo system, the recorded Throttle Steering is always 0
When I am using apollo system to drive the car, the recorded Throttle Steering in airsim_rec.txt is always 0.
I fixed it by myself. Change the code in the bottom of CarPown.cpp .append(std::to_string(KPH_int).append("\t")) .append(std::to_string(api_->getCarControls().throttle)).append("\t") .append(std::to_string(api_->getCarControls().steering)).append("\t") .append(std::to_string(api_->getCarControls().brake)).append("\t") .append(gear).append("\t");
How do you add function getCarControls ? Many thanks