PROBLEM TO BE SOLVED: To solve the problem that an unmanned agricultural machine is expensive.SOLUTION: A control device for controlling an agricultural machine equipped with (i) a holding part for detachably holding an attachment for agricultural work, and (ii) an imaging part for imaging surroundings includes: an attachment information acquisition part for acquiring attachment identification information for identifying the attachment or type information indicating the type of the attachment from the attachment held by the holding part; and an attachment specification part for specifying the type of the attachment held by the holding part based on the attachment identification information or the type information acquired by the attachment information acquisition part.SELECTED DRAWING: Figure 8