A motion control apparatus for teaching a robot position includes an
operating unit that inputs an operating command to a robot on a camera
coordinate system having, as a reference, an image capturing screen
displayed on the monitor, a converting unit that generates a motion
vector on the camera coordinate system for moving the robot from the
current position to the next moving position in accordance with the
operating command on the camera coordinate system input from the
operating unit and converts the motion vector on the camera coordinate
system into a motion vector on a robot coordinate system, an
operating-instruction generating unit that generates a motor instructing
value to be given to a motor arranged at a joint of the robot 1 based on
the motion vector on the robot coordinate system obtained by the
converting unit, and a motor control unit that controls the motor
arranged at the joint of the robot in accordance with the motor
instructing value generated by the operating-instruction generating unit.