Development of the Motion Monitoring System of a Ship