A controller configured to control a robot including a plurality of constituent members, the controller comprising:
- a sensor configured to detect a state of operation of a constituent member;
- and
- a processing unit configured to control operation of the robot based on an output of the sensor, wherein
- the processing unit includes a specific member setting unit configured to set at least one constituent member out of the plurality of constituent members as a specific member, a determination unit configured to determine a state of operation of the specific member based on an output of the sensor, and an operation change unit configured to change operation of the robot based on a determination result of the determination unit.