Rename gear to reverse

This commit is contained in:
nsubiron 2017-05-29 16:12:00 +01:00
parent cb79adca4c
commit 4beab3f54c
2 changed files with 4 additions and 4 deletions

View File

@ -48,7 +48,7 @@ namespace carla {
float gas;
float brake;
bool hand_brake;
bool gear;
bool reverse;
};
struct Reward_Values {

View File

@ -191,9 +191,9 @@ int main(int argc, char *argv[]) {
std::cerr << "ERROR while reading Control" << std::endl;
break;
} else if (readed) {
std::cout << "CONTROL --> gas: " << control.gas << " steer: " << control.steer <<
" brake: " << control.brake << " hand_brake: " << control.hand_brake << " gear: " << control.gear << std::endl;
}
std::cout << "CONTROL --> gas: " << control.gas << " steer: " << control.steer <<
" brake: " << control.brake << " hand_brake: " << (control.hand_brake ? "true" : "false") << " reverse: " << (control.reverse ? "true" : "false") << std::endl;
}
if (!server.sendReward(makeReward().release())) {
std::cerr << "ERROR while sending Reward" << std::endl;