The invention provides an
optical fiber type
underwater robot attitude sensing device and method. The device comprises a plurality of
fiber bragg
grating sensors, a base, flexible
silica gel, an omnidirectional rotatable transmission shaft, a spring and a
stress sensing ball, wherein the plurality of
fiber bragg
grating sensors are embedded in the flexible
silica gel; the flexible
silica gel is placed in the circular base and is used as a medium to transmit the force in the vertical direction of the
stress sensing ball to the plurality of
fiber bragg
grating sensors; the base is separated from the lower rotary transmission shaft; the omni-directional rotatable transmission shaft, the spring and the
stress sensing ball form an elastic linkage
system. The device is installed on the upper surface of a
robot, when the posture of the
robot deviates, an elastic device formed by connecting a spring and a stress sensing ball slides on the whole flexible silica gel, the stress sensing ball extrudes the flexible silica gel, accordingly, the fiber Bragg
wavelength changes, the position of the stress sensing ball can be obtained by adopting a posture analysis model based on
deep learning, and the posture of the robot is analyzed. Therefore, different postures of the robot are sensed.