Adding Contact Geometries to the Gait2392 Model
Posted: Wed May 27, 2020 11:52 am
Hi all,
I was just wondering if I could get some information on adding contact geometries to the Gait2392 model. I tried adding the following geometry set, but ran in to a few issues.
Ground is defined just as it is in the default model - the treadmill geometry ground plane defined at the beginning of the osim file. It is my understanding that ground needs to be defined as a body to be referenced in the above code, but I am unsure of how to alter the model so that the references do not give me errors such as:
"Failed to connect Socket 'frame' of type PhysicalFrame (details: Connectee for Socket 'frame' of type PhysicalFrame in ContactSphere at /contactgeometryset/r_heel is unspecified. ......:
Any guidance or help is appreciated.
Thanks,
Dylan
I was just wondering if I could get some information on adding contact geometries to the Gait2392 model. I tried adding the following geometry set, but ran in to a few issues.
Code: Select all
<ContactGeometrySet>
<objects>
<ContactHalfSpace name="platform">
<!--Body name to connect the contact geometry to-->
<body_name>ground</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 -1.5707963267949</orientation>
</ContactHalfSpace>
<ContactSphere name="r_heel">
<!--Body name to connect the contact geometry to-->
<body_name>calcn_r</body_name>
<!--Location of geometry center in the body frame-->
<location>0.01 0.02 -0.005</location>
<!--Orientation of geometry in the body frame-->
<orientation>0 0 0</orientation>
<radius>0.04</radius>
</ContactSphere>
<ContactSphere name="r_toe">
<!--Body name to connect the contact geometry to-->
<body_name>toes_r</body_name>
<!--Location of geometry center in the body frame-->
<location>0.04 0.02 0.014</location>
<!--Orientation of geometry in the body frame-->
<orientation>0 0 0</orientation>
<radius>0.04</radius>
</ContactSphere>
<ContactSphere name="l_heel">
<!--Body name to connect the contact geometry to-->
<body_name>calcn_l</body_name>
<!--Location of geometry center in the body frame-->
<location>0.01 0.02 0.005</location>
<!--Orientation of geometry in the body frame-->
<orientation>0 0 0</orientation>
<radius>0.04</radius>
</ContactSphere>
<ContactSphere name="l_toe">
<!--Body name to connect the contact geometry to-->
<body_name>toes_l</body_name>
<!--Location of geometry center in the body frame-->
<location>0.04 0.02 -0.014</location>
<!--Orientation of geometry in the body frame-->
<orientation>0 0 0</orientation>
<radius>0.04</radius>
</ContactSphere>
</objects>
<groups />
</ContactGeometrySet>
"Failed to connect Socket 'frame' of type PhysicalFrame (details: Connectee for Socket 'frame' of type PhysicalFrame in ContactSphere at /contactgeometryset/r_heel is unspecified. ......:
Any guidance or help is appreciated.
Thanks,
Dylan