RobotMotorGui: change std::cout to fprintf for more uniform code, and
fix compilation error on some platform.