it tries to find service info rosservice for 5 times. If it does not find, make an error and exit