AirSim icon indicating copy to clipboard operation
AirSim copied to clipboard

Auto Driving with Apollo system, the recorded Throttle Steering is always 0

Open CMXB opened this issue 8 years ago • 2 comments

When I am using apollo system to drive the car, the recorded Throttle Steering in airsim_rec.txt is always 0.

CMXB avatar Jun 05 '18 09:06 CMXB

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");

CMXB avatar Jun 05 '18 11:06 CMXB

How do you add function getCarControls ? Many thanks

Beijingsheng avatar Aug 20 '18 07:08 Beijingsheng