Closed Olimoyo closed 2 years ago
Hi Oliver, I think the most convenient way is to add the .obj/.stl to a URDF file for loading it into TACTO.
An alternative way may be to customize the function similiar to add_object(), the most important lines are noted here, if we can load the mesh of the object file and do the register it to self.objects, it should automatically update.
Hi Shaoxiong,
Thanks for the quick response!
For my use case I think the second solutions works better. I am going to try to add a new "add_object" for .obj files to basically extract the mesh directly (maybe using something like https://trimsh.org/trimesh.exchange.obj.html).
If I understand correctly, I shouldn't need to do any of the pose transforms done with URDF file? https://github.com/facebookresearch/tacto/blob/a21d0c4626d74a546d94859226c2fea348babb6a/tacto/sensor.py#L142-L158
Oliver
Hi Oliver, Makes sense. Yeah, that's just for URDF scaling and transformation.
Thanks for the help!
Hi,
I have object meshes from
.obj
files that I add to my pybullet simulator usingp.createMultiBody
.What would be the best steps to follow in order to add this object to the Tacto simulator? I am not sure if there's something similar to
add_object()
: https://github.com/facebookresearch/tacto/blob/a21d0c4626d74a546d94859226c2fea348babb6a/tacto/sensor.py#L127Thank you, Oliver