Motion control and data capturing for laser scanning with an industrial robot