A method comprising acquiring an image of a surgical site of a patient. The method includes capturing motion data of an instrument based on a user defined path to the surgical site. The method includes determining a motion path based on the captured motion data. The motion path corresponds to an actuation of one or more components of a robotic device. The method includes displaying a portion of the motion path onto the image. The method includes determining one or more instructions for actuating the one or more components along the determined motion path. The method includes providing the one or more instructions to the robotic device.