.xml editor

Provide easy-to-use, extensible software for modeling, simulating, controlling, and analyzing the neuromusculoskeletal system.
POST REPLY
User avatar
Francesco Mastrandrea
Posts: 18
Joined: Mon May 25, 2009 9:00 am

.xml editor

Post by Francesco Mastrandrea » Fri Jun 12, 2009 4:51 am

I'm trying to reading the XML files to understand and modify the leg39 model.

I started with the leg39.osim file:
1. what does it mean: <location_in_parent>?
2. What it is: <natcubicspline name="">? after we have a lot of coordinates (probably necessary to define the spline curve) but they are referring to the movement of the muscle attack points?

leg39_controls.xml file:
1. what does it mean <optimal_force>?

User avatar
Amy Stalker
Posts: 15
Joined: Thu May 22, 2008 12:27 pm

RE: .xml editor

Post by Amy Stalker » Fri Jun 12, 2009 6:56 am

I am also looking to find the meaning/definition of much of the XML code in the gait2392.osim file. I am particularly looking for <CoordinateSet> name =""> as well as <CustomJoint>, <WrapObjectSet>, and <TransformAxisSet>. I am not familiar with XML but am trying to understand how the joints are defined and oriented.
I am working on a leg press model now but am also interested in creating a leg extension model in the near future.

User avatar
Francesco Mastrandrea
Posts: 18
Joined: Mon May 25, 2009 9:00 am

RE: .xml editor

Post by Francesco Mastrandrea » Fri Jun 12, 2009 7:15 am

I understand very well you. It's difficult rebuild the logic behind the opensim model and make the right modifications ; if someone don't tell us something more, it's a almost impossible work.

I'll keep you informed on my progress, I opened a project page about leg extension.

User avatar
Ayman Habib
Posts: 2248
Joined: Fri Apr 01, 2005 12:24 pm

RE: .xml editor

Post by Ayman Habib » Fri Jun 12, 2009 2:30 pm

All,

The <location_in_parent> values specify the location of the joint center in the parent body's reference frame, and the <location> values specify the joint center in the child's reference frame.

The <natcubicspline name=""> tag is probably a placeholder to something that can take a cubic-spline function so you can ignore it safely.

<optimal_force> for an idealized torque is the maximum force that the torque can apply.

Hope this helps,
-Ayman


User avatar
Francesco Mastrandrea
Posts: 18
Joined: Mon May 25, 2009 9:00 am

RE: edit leg39_controls.xml

Post by Francesco Mastrandrea » Mon Jun 15, 2009 3:26 am

I found this:
<Force name="default">
<body_A> </body_A>
<point_A> 0.00000000000000000000 0.00000000000000000000 0.00000000000000000000 </point_A>
<direction_A> 1.00000000000000000000 0.00000000000000000000 0.00000000000000000000 </direction_A>
<body_B> </body_B>
<point_B> 0.00000000000000000000 0.00000000000000000000 0.00000000000000000000 </point_B>

what does it mean? why we have 1 in direction_A?

POST REPLY