The recognition of the shelf position with Robot UR3 ohne Camera

Hello

Hello
I am Navarro and I am currently writing my master thesis . I have a question please . I have to program a robot UR3 that sort slides into the shelf . my problem one would like to write a function to detect the shelf . The robot must recognize the shelf. has anyone already done this ? i need help thanks


!

attached is the picture of shelf