Control of the three-mass robot moving in the liquid environment