Tool chain for solving vision based object manipulation

relatively new to opencv and ros.
There are so very many choices of tools, i’m hoping someone can help me narrow down which ones i should be focusing on.
I know the basics of ros and moveit. But i need solution toolkits to solve problems like picking up an object and rotating it so that it will then fit in an appropriately sized slot.
For example, the old shape toy: