A linear motion and rotation detector that detects displacement of an output shaft includes a linear motion position detector including a linear motion scale that includes a linear motion position detection magnetization pattern on a circumferential wall surface facing in a radial direction, and a first magnetic detection element facing the linear motion position detection magnetization pattern from the radial direction and detecting a change in magnetic field, and a rotational position detector including a rotation scale that includes a rotational position detection magnetization pattern on a flat surface facing in an axial direction, and a rotational position detection magnetoresistance element facing the rotational position detection magnetization pattern from the axial direction and detecting a change in magnetic field. The linear motion scale moves in the axial direction together with the output shaft, and the rotation scale coaxially rotates with the output shaft at a predetermined position in the axial direction.
展开▼