Publish depth map at the end of function publishData.