barstowe was the illegitimate son of a merchant of only moderate wealth and a woman of only moderate character ; he had gone to sea as a boy in his father 's ships and been pressed into the navy as a foremast hand .