Fixing incompatibilities between Laura/Freek V-REP versions with ugly if/then/else statements