Hello together,
I was able to successfully open an OpenDRIVE file (.xodr) in OpenDRIVE standalone mode.
However, I was wondering if it is possible to export the generated 3D mesh (i.e. as .obj)?
Thank you so much and best regards!
You mean after importing the OpenDrive into CARLA and generating the mesh, then exporting that mesh ?
Exactly @XGodina
Hi @phzeller,
We indeed have a way to export this mesh as a .obj file however it's not exposed to the PythonAPI. It's in carla/LibCarla/source/carla/geom/Mesh.cpp and it's called Mesh::GenerateOBJ(). I have plans to expose the whole mesh system to Python but we have other priorities right now, so sadly this is not in our current scope.
As a workaround, you can just call this function from another part of the C++ code and save it to a file. When I did it, Blender 2.82 worked fine for me opening the file.
Most helpful comment
Hi @phzeller,
We indeed have a way to export this mesh as a .obj file however it's not exposed to the PythonAPI. It's in
carla/LibCarla/source/carla/geom/Mesh.cppand it's calledMesh::GenerateOBJ(). I have plans to expose the whole mesh system to Python but we have other priorities right now, so sadly this is not in our current scope.As a workaround, you can just call this function from another part of the C++ code and save it to a file. When I did it, Blender 2.82 worked fine for me opening the file.