A moving body configured to move along a magnetic pole path having a magnetic pole section in which a plurality of pairs of magnetic poles including a north pole and a south pole are arranged and a magnetic pole absent section lacking a magnetic pole, the moving body comprising: a plurality of linear motors (11, 12) including a first linear motor driven by magnetic interaction with magnetic flux of the magnetic pole path adapted to drive the moving body; a position detection sensor configured to detect a position of the moving body; a first electrical angle detection sensor disposed at a position different from the position detection sensor in a path direction of the magnetic pole path and configured to detect an electrical angle of the first linear motor; and a control unit configured to control the linear motors (11, 12) based on detection signals of the position detection sensor and the first electrical angle detection sensor, and when one of the position detection sensor and the first electrical angle detection sensor is positioned at the magnetic pole absent section, use the other of the position detection sensor and the first electrical angle detection sensor both to detect a position of the moving body and to detect an electrical angle of the first linear motor; the linear motors (11, 12) include a second linear motor disposed at a position different from the first linear motor in the path direction of the magnetic pole path, the moving body further comprises a second electrical angle detection sensor disposed so as to sandwich the position detection sensor together with the first electrical angle detection sensor in the path direction, the second electrical angle detection sensor being configured to detect an electrical angle of the second linear motor, characterized in that the moving body further comprises a smoothing unit configured to gradually increase a synthesis ratio of output of the first electrical angle detection sensor to output of the position detection sensor while synthesizing the output of the position detection sensor and the output of the first electrical angle detection sensor when the first electrical angle detection sensor exits from the magnetic pole absent section, and the control unit gradually switches from the position detection sensor to the first electrical angle detection sensor by switching to the smoothing unit when the first electrical angle detection sensor exits from the magnetic pole absent section. a plurality of linear motors (11, 12) including a first linear motor driven by magnetic interaction with magnetic flux of the magnetic pole path adapted to drive the moving body; a position detection sensor configured to detect a position of the moving body; a first electrical angle detection sensor disposed at a position different from the position detection sensor in a path direction of the magnetic pole path and configured to detect an electrical angle of the first linear motor; and a control unit configured to control the linear motors (11, 12) based on detection signals of the position detection sensor and the first electrical angle detection sensor, and when one of the position detection sensor and the first electrical angle detection sensor is positioned at the magnetic pole absent section, use the other of the position detection sensor and the first electrical angle detection sensor both to detect a position of the moving body and to detect an electrical angle of the first linear motor; the linear motors (11, 12) include a second linear motor disposed at a position different from the first linear motor in the path direction of the magnetic pole path, the moving body further comprises a second electrical angle detection sensor disposed so as to sandwich the position detection sensor together with the first electrical angle detection sensor in the path direction, the second electrical angle detection sensor being configured to detect an electrical angle of the second linear motor, characterized in that the moving body further comprises a smoothing unit configured to gradually increase a synthesis ratio of output of the first electrical angle detection sensor to output of the position detection sensor while synthesizing the output of the position detection sensor and the output of the first electrical angle detection sensor when the first electrical angle detection sensor exits from the magnetic pole absent section, and the control unit gradually switches from the position detection sensor to the first electrical angle detection sensor by switching to the smoothing unit when the first electrical angle detection sensor exits from the magnetic pole absent section.