I have a 3d segmentation map(3d numpy array) which has obstacles and target ,how can i do planning with rrt in this image ,can you please give a refrence example for this?also how to convert this numpy array to a state space containing obstacles ?
You would need to subclass the CSpace class and implement the feasible(q), bound, and eps members. See the docs here for more information.
The feasible(q) callback is the essential function to determine whether a point q=[x,y,z] is in collision or not. In other words, it implicitly represents obstacles by returning False when the point is in collision.