I have an application that I need the robot to search for a hole on a pipe in the circular direction using a laser sensor. The pipe does not move though. All the motion comes from the robot.
Currently, the robot advances 5 degree and back off 2 degree while searching for the hole. Once the laser sensor sees the hole and trigger the I/O, the search stops and the robot records LPOS for this hole.
My problem is that this searching code is not reliable. Often, I cannot find or miss the hole position.
Has anyone designed such a searching algorithm before or has better way to realize this application? Thanks!