ompl
ompl copied to clipboard
how to get same state indices as the one in the image?
I have a 3d numpy image with labels 0 and 1 i want label 1 to be obstacles in my statespace. I have made my isstatevalid function,but how to get the same state indice i.e coordinate values as that of image containing label=1 def isstatevalid(state): for i in range(256): for j in range(256): for k in range(256): if img[i,j,k]==1: state[0]=1 state[1]=1 state[2]=1 return False how to change this ? i want the particular state be equal to 1 i.e state with same i,j and k and should be equal to one