I would like to know if someone can help me to figure out how to apply a transformation to the mesh file that I am importing to a body in a xml file. I want this because the location of the body frame for the part is not in the right place for the geometry file. I already know what is the transform that I need to apply, but I do not know how or where in the model. I already went through the user's guide for the model (https://simtk-confluence.stanford.edu:8 ... Sim+Models), however I do not know how to use the line "<input_transform></input_transform>". attached is a picture of the xml file of the model and the part that I am trying to add.
Code: Select all
<Body name="Link0">
<!--The geometry used to display the axes of this Frame.-->
<FrameGeometry name="frame_geometry">
<!--Path to a Component that satisfies the Socket 'frame' of type Frame.-->
<socket_frame>..</socket_frame>
<!--Scale factors in X, Y, Z directions respectively.-->
<scale_factors>0.20000000000000001 0.20000000000000001 0.20000000000000001</scale_factors>
</FrameGeometry>
<!--List of geometry attached to this Frame. Note, the geometry are treated as fixed to the frame and they share the transform of the frame when visualized-->
<attached_geometry>
<Mesh name="exo_base_link">
<!--Path to a Component that satisfies the Socket 'frame' of type Frame.-->
<socket_frame>..</socket_frame>
<input_transform></input_transform> <!--Scale factors in X, Y, Z directions respectively.-->
<scale_factors>0.001 0.001 0.001</scale_factors>
<!--Default appearance attributes for this Geometry-->
<Appearance>
<!--The opacity used to display the geometry between 0:transparent, 1:opaque.-->
<opacity>1</opacity>
<!--The color, (red, green, blue), [0, 1], used to display the geometry. -->
<color>0 0 1</color>
</Appearance>
<!--Name of geometry file.-->
<mesh_file>LINK0.stl</mesh_file>
</Mesh>
</attached_geometry>
<!--Set of wrap objects fixed to this body that GeometryPaths can wrap over.This property used to be a member of Body but was moved up with the introduction of Frames.-->
<WrapObjectSet name="wrapobjectset">
<objects />
<groups />
</WrapObjectSet>
<!--The mass of the body (kg)-->
<mass>0.15599999999999997</mass>
<!--The location (Vec3) of the mass center in the body frame.-->
<mass_center>0 0 0</mass_center>
<!--The elements of the inertia tensor (Vec6) as [Ixx Iyy Izz Ixy Ixz Iyz] measured about the mass_center and not the body origin.-->
<inertia>0 0 0 0 0 0</inertia>
</Body>