I want to use A* algorithm for my robot path planning in c-space. But now I want to map the obstacles from cartesian-space to configuration space. I am building a visualizer in python to see all the process going on. But I am confused about mapping the obstacles from cartesian space to configuration space. Could anyone please tell me how to do that? what should be the algorithm for it?