pulls the voxelized arrays of free and obstacle nodes and assigns corresponding cost to each node.