Patent ID: 7546387

Claim:
A command executing apparatus comprising: a command obtaining unit that obtains a command indicating process contents of a robot; an executing unit that executes the command; a suspending unit that suspends execution of the command, when an interrupt command indicating suspension of the execution of the command being executed by the executing unit is obtained; a resumption condition generating unit that generates a resumption condition for resuming a suspending command based on the suspending command, which is the command suspended by the suspending unit; an executed contents generating unit that generates executed contents which is information indicating the process contents executed until the suspending command is suspended; a suspending state holding unit that holds a resumption command and the executed contents in association with the suspending command; a resumption propriety judging unit that judges whether the suspending command is able to be resumed, based on the command obtained by the command obtaining unit from a point at which the execution of suspending command is suspended to a point at which a resumption command is obtained and the resumption condition held by the suspending state holding unit, when the resumption command indicating resumption of the suspending command is obtained; a resumption command generating unit that generates the resumption command, which should be executed when the suspending command is resumed, based on the executed contents held by the suspending state holding unit, when the suspending command is judged to be able to be resumed; and a resuming unit that indicates to the executing unit that the resumption command is to be executed.