Closed waldezjr closed 11 months ago
After adding a mesh file to the World Configuration, CuRobo effectively loads the unscaled mesh.
Issue Details
I tried adding a simple sphere mesh through a yml file sphMesh: pose: [0.0, 0, 0.15, 1, 0, 0, 0] scale: [0.005, 0.005, 0.005] file_path: "sphere_mesh.obj"
And loading it as in the script below
with open(model.config["curoboConfig"]["worldYmlPath"]) as file_p: worldCfg = yaml.load(file_p, Loader=Loader) world_model = WorldConfig.from_dict(worldCfg) world_model.save_world_as_mesh("debugMesh.obj")
But when I load the debugMesh.obj file in a 3rd party viewer I verify that the object, as seen by CuRobo, is not scaled.
ps.: It is not a major issue, but it may be useful to solve it eventually
Thanks for catching this. Internally, the mesh was actually being scaled but when exporting the world model, the scaling was not being applied. This has been fixed in the latest commit.
After adding a mesh file to the World Configuration, CuRobo effectively loads the unscaled mesh.
Issue Details
I tried adding a simple sphere mesh through a yml file sphMesh: pose: [0.0, 0, 0.15, 1, 0, 0, 0] scale: [0.005, 0.005, 0.005] file_path: "sphere_mesh.obj"
And loading it as in the script below
But when I load the debugMesh.obj file in a 3rd party viewer I verify that the object, as seen by CuRobo, is not scaled.
ps.: It is not a major issue, but it may be useful to solve it eventually