Abstract
A computer-implemented method of teaching a robot system is provided. The method may comprise detecting, by a first sensor system ( 102 ) of the robot system, an operator's hand gesture ( 103 ), and moving (S 3 ) a robotic arm ( 101 ) of the robot system in accordance with the operator's hand gesture ( 103 ). The method may comprise detecting (S 31 ), by a second sensor system ( 104 ) of the robot system, an impending collision of the robotic arm ( 101 ) with an obstacle ( 105 ), and moving the robotic arm ( 101 ) along at least a section of a collision-free path ( 106 ) around the obstacle ( 105 ). By advantageously combining hand gesture control and visual-inertial-odometry, the invention results in an improved teaching of a robotic arm trajectory.