Rename gear to reverse
This commit is contained in:
parent
cb79adca4c
commit
4beab3f54c
|
@ -48,7 +48,7 @@ namespace carla {
|
||||||
float gas;
|
float gas;
|
||||||
float brake;
|
float brake;
|
||||||
bool hand_brake;
|
bool hand_brake;
|
||||||
bool gear;
|
bool reverse;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct Reward_Values {
|
struct Reward_Values {
|
||||||
|
|
|
@ -191,9 +191,9 @@ int main(int argc, char *argv[]) {
|
||||||
std::cerr << "ERROR while reading Control" << std::endl;
|
std::cerr << "ERROR while reading Control" << std::endl;
|
||||||
break;
|
break;
|
||||||
} else if (readed) {
|
} else if (readed) {
|
||||||
std::cout << "CONTROL --> gas: " << control.gas << " steer: " << control.steer <<
|
std::cout << "CONTROL --> gas: " << control.gas << " steer: " << control.steer <<
|
||||||
" brake: " << control.brake << " hand_brake: " << control.hand_brake << " gear: " << control.gear << std::endl;
|
" brake: " << control.brake << " hand_brake: " << (control.hand_brake ? "true" : "false") << " reverse: " << (control.reverse ? "true" : "false") << std::endl;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!server.sendReward(makeReward().release())) {
|
if (!server.sendReward(makeReward().release())) {
|
||||||
std::cerr << "ERROR while sending Reward" << std::endl;
|
std::cerr << "ERROR while sending Reward" << std::endl;
|
||||||
|
|
Loading…
Reference in New Issue