Contact mesh is not loading
Posted: Wed Jul 29, 2020 9:10 am
I am trying to load a contact mesh from a .obj file. I have edited the .osim file to include the .obj in both the <bodyset> and the <ContactGeometrySet>. When I load the model in OpenSim 4.1, nothing loads, no skeleton, no stairs, no waring/error message. Removing the contact geometry does make it load again, I can see my set of stairs (the .obj) in the visualiser window. Both the .obj in the <bodyset> and <ContactGeomterySet> are identical. My method it to design the object in SketchUp, export to .dae, load up in Blender, export to .obj.
Should there be any preproccessing done to make it an acceptable mesh?
Are there applications to generate .obj file which are compatible with OpenSim?
Loading other contact geometeries such as ContactHalfSpace seems to be ok.
I load the Contact Geometry as such:
Should there be any preproccessing done to make it an acceptable mesh?
Are there applications to generate .obj file which are compatible with OpenSim?
Loading other contact geometeries such as ContactHalfSpace seems to be ok.
I load the Contact Geometry as such:
Code: Select all
<ContactMesh name="stairs">
<!--Body name to connect the contact geometry to-->
<body_name>stairs</body_name>
<!--Location of geometry center in the body frame-->
<location>0 0 0</location>
<!--Orientation of geometry in the body frame-->
<orientation>0 0 0</orientation>
<!--Filename-->
<filename>stairs.obj</filename>
</ContactMesh>