Enhancing autonomy and adaptive control of industrial robots in dynamic environments using reinforcement learning