Update robot_library.c

bugfix