A data-driven method using deep reinforcement learning enables an industrial robot to effectively find and insert anchor bolts into variable-shaped holes in concrete.