This control device controls the driving of a two-wheel inverted
robot comprising a pair of wheels, a wheel motor that outputs torque for rotating the wheels to an axle, a body which is attached to the pair of wheels and can swing around the axle, and a placement part on which a load is placed. The control device comprises a load disturbance compensation unit that calculates and outputs a compensated
pitch angle command value obtained by compensating gravity-dependent variation on the basis of a dynamic model, the compensated
pitch angle command value being calculated on the basis of: a
pitch angle command value for controlling the behavior of
pitch angle, which is the angle between the
vertical axis of the body and the vertical direction, so as to maintain an inverted orientation of the two-wheel inverted
robot; information about the load weight applied to the placement part by the load; and the
translational velocity of the wheels obtained by first-order differentiation of wheel position, calculated from a detection value of wheel angle, with respect to time. As a result, provided is a control device that does not require tuning for control for stabilizing orientation when placing a load.