Stav dette: Leveraging scene embeddings for gradient-based motion planning in latent space