c3d to anyscript conversion

hi all
i am srikanth kannan from State University of New York at Buffalo, USA. i am
using motion capture technologies and AnyBody for my project.
i have a c3d file that i am trying to convert to anyscript but getting a
error:“Failed to find the UNITS parameter in the POINT group
Error: The parameter section was not found in the file Aborting.”. Can anyone
tell me what exactly is the c3d file missing. FYI i am not using force platform
in my application. i have uploaded the sample3.c3d file in c3d2any folder in the
groups. any help is deeply appreciated

thanks
srikanth

   Chat on a cool, new interface. No download required. Go to

http://in.messenger.yahoo.com/webmessengerpromo.php

[Non-text portions of this message have been removed]

Hello, I want to unsubscribe from the anyscript groupPlease do not send e-mail
to me any more.Thank you very much!! Regards,Herola


MSN
http://im.live.cn/emoticons/?ID=18

[Non-text portions of this message have been removed]

Hi Srikanth

I think you might be running the previous version of the c3d2Any converter
please see posting #1650, I am getting another error message than you

The lastest version can be downloaded from this link

HYPERLINK "http://www.anybodytech.com/fileadmin/downloads/
<http://www.anybodytech.com/fileadmin/downloads/c3d2any_v0.7.zip>
c3d2any_v0.7.zip"http://www.anybodyt­ech.com/fileadmi
<http://ech.com/fileadmi­n/downloads/­c3d2any_v0.­7.zip>
­n/downloads/­c3d2any_v0.­7.zip

When I run the file I get an error about that the parameter names are not
unique, and by reviewing the file I can see that the forceplatform section
has two objects named “ZERO” . This will not be accepted by the converter
since it will not be able to construct AnyScript code that has unique names
from this.

Furthermore it seems that the file are missing several parameters, such as
for example ForcePlateform.Type, please see

http://www.c3d.org/HTML/default.htm

there is a section which lists the required parameters.

Too me it looks like the extra ZERO group has overwritten the needed Type
section in the ForcePlatform group.

So please try to correct this in your C3D file and try to reload the file.

Best regards

Søren, AnyBody Support


From: anyscript@yahoogroups.com [mailto:anyscript@yahoogroups.com] On Behalf
Of Srikanth Kannan
Sent: 19 December 2007 19:45
To: anybody
Subject: [AnyScript] c3d to anyscript conversion

hi all
i am srikanth kannan from State University of New York at Buffalo, USA. i am
using motion capture technologies and AnyBody for my project.
i have a c3d file that i am trying to convert to anyscript but getting a
error:“Failed to find the UNITS parameter in the POINT group
Error: The parameter section was not found in the file Aborting.”. Can
anyone tell me what exactly is the c3d file missing. FYI i am not using
force platform in my application. i have uploaded the sample3.c3d file in
c3d2any folder in the groups. any help is deeply appreciated

thanks
srikanth

Chat on a cool, new interface. No download required. Go to
http://in.messenger <http://in.messenger.yahoo.com/webmessengerpromo.php>
.yahoo.com/webmessengerpromo.php

[Non-text portions of this message have been removed]

[Non-text portions of this message have been removed]

hi all
i corrected my c3d file such that it does not have duplicate parameter (Zero)
under ForcePlatform section. i am able to convert my c3d file into anyscript.
But now when i am running Kinematic analysis i am not able to see any marker
movement. points p1,p2,p3 are marker points co-ordinates while p is fixed point
coordinates. i have uploaded c3d file and AnyBody files (test.rar) in groups
under c3d2any folder. Any help from you is deeply appreciated.

thanks
srikanth

   Unlimited freedom, unlimited storage. Get it now, on

http://help.yahoo.com/l/in/yahoo/mail/yahoomail/tools/tools-08.html/

[Non-text portions of this message have been removed]

Hey Srikanth

Let me try to explain why you do not see the markers moving and how to
change that. In the converter, there is made a distiction between
measured points and calculated points. As I am sure you are aware of,
all sorts of calculated data can be stored as point data in a c3d file
e.g. calculated angles, etc. Since it does not make much sense to move
these calculated points around in space by means of drivers, it was
decided that the converter only creates drivers automatically for
those points that are certain to have been measured. This distinction
is made based on the content of the camera mask and residual words in
the c3d file. You can see a detailed description of the camera mask
and residual words here: http://www.c3d.org/HTML/notesforprogrammers4.htm

In short, if both the camera mask and residual are zero for all
frames, the point is treated as calculated data and placed in the
PointsProcessed folder. Otherwise it is placed in the PointsMarkers
folder and additionally a driver is created for the point in the
MarkerListMover.any file.

I hope this answers your question else please ask again.

Best regards
Michael Skipper Andersen
The AnyBody Research Project

— In anyscript@yahoogroups.com, Srikanth Kannan
<srikanth_kannan84@…> wrote:
>
> hi all
> i corrected my c3d file such that it does not have duplicate
parameter (Zero) under ForcePlatform section. i am able to convert my
c3d file into anyscript. But now when i am running Kinematic analysis
i am not able to see any marker movement. points p1,p2,p3 are marker
points co-ordinates while p is fixed point coordinates. i have
uploaded c3d file and AnyBody files (test.rar) in groups under c3d2any
folder. Any help from you is deeply appreciated.
>
> thanks
> srikanth
>
>
>
>
>
>
> Unlimited freedom, unlimited storage. Get it now, on
http://help.yahoo.com/l/in/yahoo/mail/yahoomail/tools/tools-08.html/
>
> [Non-text portions of this message have been removed]
>

Hello everybody
Merry Christmas and wish you all a happy new year ahead.

This is Madu, a current graduate student doing my master’s in
mechanical engineering specializing in controls and biomechanics.

Michael, your last mail on C3D to Anyscript conversion was quite
useful for me too as right now I am working on to make a simple model
track the desired trajectories. But I too am facing the problem in
dealing with mask parameters. Currently I am just using the sample c3d
files for 2D motion capture analysis of flexing and extending the
arms. However, when I use this .c3d file I have and convert it to
anyscript using the latest version of c3d2any converter, though I am
able to generate *.any files, I cannot find the markers tracing the
trajectories. I think the reason for this is the mask parameter is
assigned to be zero as per what you have mentioned in your previous
mail. So, is there any way to get access of this mask parameter of
each marker inside the anyscript so that I can change its value to a
non zero mask parameter which would result in the markers tracking the
trajectories when I run the kinematic analysis.

Any kind of help in this front is deeply appreciated.

Thanks a lot for your time.

Happy holidays to all.

Regards
Madu.

— In anyscript@yahoogroups.com, “msandersen60” <msandersen60@…> wrote:
>
> Hey Srikanth
>
> Let me try to explain why you do not see the markers moving and how to
> change that. In the converter, there is made a distiction between
> measured points and calculated points. As I am sure you are aware of,
> all sorts of calculated data can be stored as point data in a c3d file
> e.g. calculated angles, etc. Since it does not make much sense to move
> these calculated points around in space by means of drivers, it was
> decided that the converter only creates drivers automatically for
> those points that are certain to have been measured. This distinction
> is made based on the content of the camera mask and residual words in
> the c3d file. You can see a detailed description of the camera mask
> and residual words here:
http://www.c3d.org/HTML/notesforprogrammers4.htm
>
> In short, if both the camera mask and residual are zero for all
> frames, the point is treated as calculated data and placed in the
> PointsProcessed folder. Otherwise it is placed in the PointsMarkers
> folder and additionally a driver is created for the point in the
> MarkerListMover.any file.
>
> I hope this answers your question else please ask again.
>
> Best regards
> Michael Skipper Andersen
> The AnyBody Research Project
>
> — In anyscript@yahoogroups.com, Srikanth Kannan
> <srikanth_kannan84@> wrote:
> >
> > hi all
> > i corrected my c3d file such that it does not have duplicate
> parameter (Zero) under ForcePlatform section. i am able to convert my
> c3d file into anyscript. But now when i am running Kinematic analysis
> i am not able to see any marker movement. points p1,p2,p3 are marker
> points co-ordinates while p is fixed point coordinates. i have
> uploaded c3d file and AnyBody files (test.rar) in groups under c3d2any
> folder. Any help from you is deeply appreciated.
> >
> > thanks
> > srikanth
> >

Hi Madu

You can access this value when the file has been converted to anyscript, but
it will not help i am afraid.

If the mask is zero it will end up in the PointsProcessed folder, here you
can change the values in principle, but it will not help because the
conversion has already taken place.

The best thing would be to edit the c3d file prior to the conversion. If
this is not possible you can move the markers from the PointsProcessed
folder to the PointsMarker folder manually, and then create the needed lines
in the MarkerListMover.any file, afterwards. You can try to convert another
c3d file to get a sample of the needed syntax in the MarkerKistMover.any
file.

I hope this helps you move on, otherwise please write again.

Merry Christmas and happy new year

Best regards

Søren, AnyBody Support


From: anyscript@yahoogroups.com [mailto:anyscript@yahoogroups.com] On Behalf
Of hi_maddy_1984
Sent: 26 December 2007 22:26
To: anyscript@yahoogroups.com
Subject: [AnyScript] Re: c3d to anyscript conversion

Hello everybody
Merry Christmas and wish you all a happy new year ahead.

This is Madu, a current graduate student doing my master’s in
mechanical engineering specializing in controls and biomechanics.

Michael, your last mail on C3D to Anyscript conversion was quite
useful for me too as right now I am working on to make a simple model
track the desired trajectories. But I too am facing the problem in
dealing with mask parameters. Currently I am just using the sample c3d
files for 2D motion capture analysis of flexing and extending the
arms. However, when I use this .c3d file I have and convert it to
anyscript using the latest version of c3d2any converter, though I am
able to generate *.any files, I cannot find the markers tracing the
trajectories. I think the reason for this is the mask parameter is
assigned to be zero as per what you have mentioned in your previous
mail. So, is there any way to get access of this mask parameter of
each marker inside the anyscript so that I can change its value to a
non zero mask parameter which would result in the markers tracking the
trajectories when I run the kinematic analysis.

Any kind of help in this front is deeply appreciated.

Thanks a lot for your time.

Happy holidays to all.

Regards
Madu.

— In anyscript@yahoogrou <mailto:anyscript%40yahoogroups.com> ps.com,
“msandersen60” <msandersen60@…> wrote:
>
> Hey Srikanth
>
> Let me try to explain why you do not see the markers moving and how to
> change that. In the converter, there is made a distiction between
> measured points and calculated points. As I am sure you are aware of,
> all sorts of calculated data can be stored as point data in a c3d file
> e.g. calculated angles, etc. Since it does not make much sense to move
> these calculated points around in space by means of drivers, it was
> decided that the converter only creates drivers automatically for
> those points that are certain to have been measured. This distinction
> is made based on the content of the camera mask and residual words in
> the c3d file. You can see a detailed description of the camera mask
> and residual words here:
http://www.c3d. <http://www.c3d.org/HTML/notesforprogrammers4.htm>
org/HTML/notesforprogrammers4.htm
>
> In short, if both the camera mask and residual are zero for all
> frames, the point is treated as calculated data and placed in the
> PointsProcessed folder. Otherwise it is placed in the PointsMarkers
> folder and additionally a driver is created for the point in the
> MarkerListMover.any file.
>
> I hope this answers your question else please ask again.
>
> Best regards
> Michael Skipper Andersen
> The AnyBody Research Project
>
> — In anyscript@yahoogrou <mailto:anyscript%40yahoogroups.com> ps.com,
Srikanth Kannan
> <srikanth_kannan84@> wrote:
> >
> > hi all
> > i corrected my c3d file such that it does not have duplicate
> parameter (Zero) under ForcePlatform section. i am able to convert my
> c3d file into anyscript. But now when i am running Kinematic analysis
> i am not able to see any marker movement. points p1,p2,p3 are marker
> points co-ordinates while p is fixed point coordinates. i have
> uploaded c3d file and AnyBody files (test.rar) in groups under c3d2any
> folder. Any help from you is deeply appreciated.
> >
> > thanks
> > srikanth
> >

[Non-text portions of this message have been removed]

Hi Soeren and Michael
Thanks for the information. Still I am not able to change the mask
parameter value to a non zero values.
Let me tell you the exact steps that I am doing.
I am using APAS motion capture software that gives output only in *.3D
format. I then used this *.3D file, extended the APAS2MAT script (that
comes with APAS) to get the output in *.txt format and used the
C3Dwrite open source software from C3D.org website to convert the text
file into *.C3D format.
Since the process involves transfer of data between different file
formats, there is some loss in data related to mask parameter and
hence not able to get the desired result in AnyBody. So, is there any
other shorter way to get the output in *.c3D format from *.3D format
and as well as to have a non zero value for the mask parameter in the
process? Or can you suggest me some software to edit the *.c3D file?

Thanks in advance.

Madu.

— In anyscript@yahoogroups.com, “AnyBody Support” <support@…> wrote:
>

> Hi Madu
>
>
>
> You can access this value when the file has been converted to
anyscript, but
> it will not help i am afraid.
>
> If the mask is zero it will end up in the PointsProcessed folder,
here you
> can change the values in principle, but it will not help because the
> conversion has already taken place.
>
>
>
> The best thing would be to edit the c3d file prior to the conversion. If
> this is not possible you can move the markers from the PointsProcessed
> folder to the PointsMarker folder manually, and then create the
needed lines
> in the MarkerListMover.any file, afterwards. You can try to convert
another
> c3d file to get a sample of the needed syntax in the MarkerKistMover.any
> file.
>
>
>
> I hope this helps you move on, otherwise please write again.
>
>
>
> Merry Christmas and happy new year
>
>
>
> Best regards
>
> Søren, AnyBody Support
>

Hi Madu

I am sorry but i am not familiar with APAS systems and the conversions you
mention, so I can not really give you any help on the APAS conversions. To
me it sounds as a problem with the original *.3D file or the APAS software.

I did a search for editors of c3d files and found this page
http://www.c3d.org/download_apps.html there is an editor for c3d files it
may help you correct the files.

Alternatively, I think it might still be easier just to write the
MarkerListMover.any file manually in AnyBody. It is a very systematic file
where only the names of the markers are different form object to object. All
the data is there already in the PointsProcessed file nothing is missing,
you just need to create the markers in the MarkerListMover file.

I think it should also be mentioned why the mask is being used to sort the
data. If not using this mask one will typically end up with marker data and
processed data such as angles all messed up and all displayed as markers it
will look very confusing. The use of this mask is a way of separating the
data and sort out the “real” markers form processed values.

Best regards

Søren, AnyBody Support


From: anyscript@yahoogroups.com [mailto:anyscript@yahoogroups.com] On Behalf
Of hi_maddy_1984
Sent: 27 December 2007 23:14
To: anyscript@yahoogroups.com
Subject: [AnyScript] Re: c3d to anyscript conversion

Hi Soeren and Michael
Thanks for the information. Still I am not able to change the mask
parameter value to a non zero values.
Let me tell you the exact steps that I am doing.
I am using APAS motion capture software that gives output only in *.3D
format. I then used this *.3D file, extended the APAS2MAT script (that
comes with APAS) to get the output in *.txt format and used the
C3Dwrite open source software from C3D.org website to convert the text
file into *.C3D format.
Since the process involves transfer of data between different file
formats, there is some loss in data related to mask parameter and
hence not able to get the desired result in AnyBody. So, is there any
other shorter way to get the output in *.c3D format from *.3D format
and as well as to have a non zero value for the mask parameter in the
process? Or can you suggest me some software to edit the *.c3D file?

Thanks in advance.

Madu.

— In anyscript@yahoogrou <mailto:anyscript%40yahoogroups.com> ps.com,
“AnyBody Support” <support@…> wrote:
>

> Hi Madu
>
>
>
> You can access this value when the file has been converted to
anyscript, but
> it will not help i am afraid.
>
> If the mask is zero it will end up in the PointsProcessed folder,
here you
> can change the values in principle, but it will not help because the
> conversion has already taken place.
>
>
>
> The best thing would be to edit the c3d file prior to the conversion. If
> this is not possible you can move the markers from the PointsProcessed
> folder to the PointsMarker folder manually, and then create the
needed lines
> in the MarkerListMover.any file, afterwards. You can try to convert
another
> c3d file to get a sample of the needed syntax in the MarkerKistMover.any
> file.
>
>
>
> I hope this helps you move on, otherwise please write again.
>
>
>
> Merry Christmas and happy new year
>
>
>
> Best regards
>
> Søren, AnyBody Support
>

[Non-text portions of this message have been removed]

Thanks Soren and Michael for helping me out.

Before moving to the next step, I tried to deal with pendulum motion
tracking example (that comes with AnyBody). Here I am trying to attach
muscles to that pendulum model and driving it using the text file
(p1x.txt from the tutorial5 folder) to compute the resulting muscle
forces while driving the model using motion capture trajectories. I
have uploaded folder in *.rar format to the c3d2any folder in groups
page for further reference.
I get the following messages when I run the analysis in AnyBody after
calibrating my model. I tried calibrating it at different positions
(pendulum being vertical, intermediate positions as well as initial
positions).
While performing kinematic analysis, AnyBody gives a warning message:
“Muscle model Main.MyModel.mod1 did not converge”. Check muscle length
paramters.
“Muscle model Main.MyModel.mod2 did not converge”. Check muscle length
paramters.

While performing inverse dynamics analysis, AnyBody analysis fails
with a message :
“Muscle recruitment analysis failed. Simplex solver reports that
solution does not satisfy all the constraints.”

Main.MyModel.mod1 and Main.MyModel.mod2 are my MuscleModel3E elements
that I use in my model.

I may be wrong in giving the muscle length parameters. If that is so,
I would like to know the correct way to determine these parameters in
general.

Thanks in advance

Regards
Madu.

— In anyscript@yahoogroups.com, “AnyBody Support” <support@…> wrote:
>
> Hi Madu
>
>
>
> You can access this value when the file has been converted to
anyscript, but
> it will not help i am afraid.
>
> If the mask is zero it will end up in the PointsProcessed folder,
here you
> can change the values in principle, but it will not help because the
> conversion has already taken place.
>
>
>
> The best thing would be to edit the c3d file prior to the conversion. If
> this is not possible you can move the markers from the PointsProcessed
> folder to the PointsMarker folder manually, and then create the
needed lines
> in the MarkerListMover.any file, afterwards. You can try to convert
another
> c3d file to get a sample of the needed syntax in the MarkerKistMover.any
> file.
>
>
>
> I hope this helps you move on, otherwise please write again.
>
>
>
> Merry Christmas and happy new year
>
>
>
> Best regards
>
> Søren, AnyBody Support
>
>
>
> _____
>
> From: anyscript@yahoogroups.com [mailto:anyscript@yahoogroups.com]
On Behalf
> Of hi_maddy_1984
> Sent: 26 December 2007 22:26
> To: anyscript@yahoogroups.com
> Subject: [AnyScript] Re: c3d to anyscript conversion
>
>
>
> Hello everybody
> Merry Christmas and wish you all a happy new year ahead.
>
> This is Madu, a current graduate student doing my master’s in
> mechanical engineering specializing in controls and biomechanics.
>
> Michael, your last mail on C3D to Anyscript conversion was quite
> useful for me too as right now I am working on to make a simple model
> track the desired trajectories. But I too am facing the problem in
> dealing with mask parameters. Currently I am just using the sample c3d
> files for 2D motion capture analysis of flexing and extending the
> arms. However, when I use this .c3d file I have and convert it to
> anyscript using the latest version of c3d2any converter, though I am
> able to generate *.any files, I cannot find the markers tracing the
> trajectories. I think the reason for this is the mask parameter is
> assigned to be zero as per what you have mentioned in your previous
> mail. So, is there any way to get access of this mask parameter of
> each marker inside the anyscript so that I can change its value to a
> non zero mask parameter which would result in the markers tracking the
> trajectories when I run the kinematic analysis.
>
> Any kind of help in this front is deeply appreciated.
>
> Thanks a lot for your time.
>
> Happy holidays to all.
>
> Regards
> Madu.
>
> — In anyscript@yahoogrou <mailto:anyscript%40yahoogroups.com> ps.com,
> “msandersen60” <msandersen60@> wrote:
> >
> > Hey Srikanth
> >
> > Let me try to explain why you do not see the markers moving and how to
> > change that. In the converter, there is made a distiction between
> > measured points and calculated points. As I am sure you are aware of,
> > all sorts of calculated data can be stored as point data in a c3d file
> > e.g. calculated angles, etc. Since it does not make much sense to move
> > these calculated points around in space by means of drivers, it was
> > decided that the converter only creates drivers automatically for
> > those points that are certain to have been measured. This distinction
> > is made based on the content of the camera mask and residual words in
> > the c3d file. You can see a detailed description of the camera mask
> > and residual words here:
> http://www.c3d. <http://www.c3d.org/HTML/notesforprogrammers4.htm>
> org/HTML/notesforprogrammers4.htm
> >
> > In short, if both the camera mask and residual are zero for all
> > frames, the point is treated as calculated data and placed in the
> > PointsProcessed folder. Otherwise it is placed in the PointsMarkers
> > folder and additionally a driver is created for the point in the
> > MarkerListMover.any file.
> >
> > I hope this answers your question else please ask again.
> >
> > Best regards
> > Michael Skipper Andersen
> > The AnyBody Research Project
> >
> > — In anyscript@yahoogrou <mailto:anyscript%40yahoogroups.com>
ps.com,
> Srikanth Kannan
> > <srikanth_kannan84@> wrote:
> > >
> > > hi all
> > > i corrected my c3d file such that it does not have duplicate
> > parameter (Zero) under ForcePlatform section. i am able to convert my
> > c3d file into anyscript. But now when i am running Kinematic analysis
> > i am not able to see any marker movement. points p1,p2,p3 are marker
> > points co-ordinates while p is fixed point coordinates. i have
> > uploaded c3d file and AnyBody files (test.rar) in groups under c3d2any
> > folder. Any help from you is deeply appreciated.
> > >
> > > thanks
> > > srikanth
> > >
>
>
>
>
>
> [Non-text portions of this message have been removed]
>

Hi Madu,

I downloaded your model and figured out what is
the problem in your model. The inverse dynamics
analysis fail when the pendulum reached the very
right end (+ve x-direction). Visually, if you
look carefully at the model, the muscle at the
left
hand side is not able to provide a pulling force
for the pendulum to move to the left. If the
deceleration is too large it will need muscle
force to pull the pendulum downwards. To fix this
problem, you need to change the location of the
mus1 and mus2 (See the file ‘pend2mus_A.any’ file
uploaded to the same folder). Also, to avoid the
trouble of adjusting the parameters of the
AnyMuscleModel3E muscle model here, the mus1 and
mus2 were also changed to AnyMuscleModel muscle
for now.

Now to answer your second question: “How to
determine muscle length parameters”, the general
guidelines are:

  1. Using the physiology data in the literature;
  2. If such data is not available or not
    applicable
    as in this pendulum example, you can determine
    the
    muscle length using:

Run the kinematic analysis, plot the muscle Lmt
value using the AnyChart 2D/3D window. Muscle Lmt
is the total length of the muscle (see the figure
in page 131, AnyBody tutorial). From the graph,
you will see that it varies roughly from 0.6m to
1.25m. Using the lower end value 0.6, you can
approximate 0.5 is Lfbar (neutral fiber length),
0.1 is Lt0 (slack length of tendon). Other values
of AnyMuscle3E such as Gammabar, Fcfast, Jt, Jpe,
K1, K2, PEFactor, is best to use the suggested
values in page 131-132 of AnyBody Tutorial
ver3.0. In your original file, “pen2mus.any”, you
have the following parameters:

AnyMuscleModel3E mod2 =
{
F0 = 400;
Lfbar = 2;
Gammabar = 0;
Epsilonbar = 1;
Lt0 = .4;
Fcfast = 0.4;
Jt = 3;
Jpe = 3;
K1 = 10;
K2 = 0;
PEFactor = 1;
};

You have a Epsilonbar value of 1, which is the
tendon’s strain (change in length/total length),
means it is too ‘soft’, a reasonable number for
this value is 0.05. Next, the recommended values
for K1 and K2 is K1=2, K2=8 as shown in page 132
of AnyBody Tutorial. Lastly, the PEFactor should
be between 1.5 and 5, a PEFactor of 1 is will
give unreasonable huge passive force and result
in error in inverse dynamic analysis. I have
created a file name “pen2mus_B.any” that have
these AnyMuscleModel3E parameters changed. Using
this file, you will be able to run your inverse
dynamic analysis.

Hope this helps.

Thanks,
Leng-Feng

— hi_maddy_1984 <hellomadu@gmail.com> wrote:

> Thanks Soren and Michael for helping me out.
>
> Before moving to the next step, I tried to deal
> with pendulum motion
> tracking example (that comes with AnyBody).
> Here I am trying to attach
> muscles to that pendulum model and driving it
> using the text file
> (p1x.txt from the tutorial5 folder) to compute
> the resulting muscle
> forces while driving the model using motion
> capture trajectories. I
> have uploaded folder in *.rar format to the
> c3d2any folder in groups
> page for further reference.
> I get the following messages when I run the
> analysis in AnyBody after
> calibrating my model. I tried calibrating it at
> different positions
> (pendulum being vertical, intermediate
> positions as well as initial
> positions).
> While performing kinematic analysis, AnyBody
> gives a warning message:
> “Muscle model Main.MyModel.mod1 did not
> converge”. Check muscle length
> paramters.
> “Muscle model Main.MyModel.mod2 did not
> converge”. Check muscle length
> paramters.
>
> While performing inverse dynamics analysis,
> AnyBody analysis fails
> with a message :
> “Muscle recruitment analysis failed. Simplex
> solver reports that
> solution does not satisfy all the constraints.”
>
> Main.MyModel.mod1 and Main.MyModel.mod2 are my
> MuscleModel3E elements
> that I use in my model.
>
> I may be wrong in giving the muscle length
> parameters. If that is so,
> I would like to know the correct way to
> determine these parameters in
> general.
>
> Thanks in advance
>
> Regards
> Madu.
>
>
> — In anyscript@yahoogroups.com, “AnyBody
> Support” <support@…> wrote:
> >
> > Hi Madu
> >
> >
> >
> > You can access this value when the file has
> been converted to
> anyscript, but
> > it will not help i am afraid.
> >
> > If the mask is zero it will end up in the
> PointsProcessed folder,
> here you
> > can change the values in principle, but it
> will not help because the
> > conversion has already taken place.
> >
> >
> >
> > The best thing would be to edit the c3d file
> prior to the conversion. If
> > this is not possible you can move the markers
> from the PointsProcessed
> > folder to the PointsMarker folder manually,
> and then create the
> needed lines
> > in the MarkerListMover.any file, afterwards.
> You can try to convert
> another
> > c3d file to get a sample of the needed syntax
> in the MarkerKistMover.any
> > file.
> >
> >
> >
> > I hope this helps you move on, otherwise
> please write again.
> >
> >
> >
> > Merry Christmas and happy new year
> >
> >
> >
> > Best regards
> >
> > Søren, AnyBody Support
> >
> >
> >
> > _____
> >
> > From: anyscript@yahoogroups.com
> [mailto:anyscript@yahoogroups.com]
> On Behalf
> > Of hi_maddy_1984
> > Sent: 26 December 2007 22:26
> > To: anyscript@yahoogroups.com
> > Subject: [AnyScript] Re: c3d to anyscript
> conversion
> >
> >
> >
> > Hello everybody
> > Merry Christmas and wish you all a happy new
> year ahead.
> >
> > This is Madu, a current graduate student
> doing my master’s in
> > mechanical engineering specializing in
> controls and biomechanics.
> >
> > Michael, your last mail on C3D to Anyscript
> conversion was quite
> > useful for me too as right now I am working
> on to make a simple model
> > track the desired trajectories. But I too am
> facing the problem in
> > dealing with mask parameters. Currently I am
> just using the sample c3d
> > files for 2D motion capture analysis of
> flexing and extending the
> > arms. However, when I use this .c3d file I
> have and convert it to
> > anyscript using the latest version of c3d2any
> converter, though I am
> > able to generate *.any files, I cannot find
> the markers tracing the
> > trajectories. I think the reason for this is
> the mask parameter is
> > assigned to be zero as per what you have
> mentioned in your previous
> > mail. So, is there any way to get access of
> this mask parameter of
> > each marker inside the anyscript so that I
> can change its value to a
> > non zero mask parameter which would result in
> the markers tracking the
> > trajectories when I run the kinematic
> analysis.
> >
> > Any kind of help in this front is deeply
> appreciated.
> >
> > Thanks a lot for your time.
> >
> > Happy holidays to all.
> >
> > Regards
> > Madu.
> >
> > — In anyscript@yahoogrou
> <mailto:anyscript%40yahoogroups.com> ps.com,
> > “msandersen60” <msandersen60@> wrote:
> > >
> > > Hey Srikanth
> > >
> > > Let me try to explain why you do not see
> the markers moving and how to
> > > change that. In the converter, there is
> made a distiction between
> > > measured points and calculated points. As I
> am sure you are aware of,
> > > all sorts of calculated data can be stored
> as point data in a c3d file
> > > e.g. calculated angles, etc. Since it does
> not make much sense to move
> > > these calculated points around in space by
> means of drivers, it was
> > > decided that the converter only creates
> drivers automatically for
> > > those points that are certain to have been
> measured. This distinction
> > > is made based on the content of the camera
> mask and residual words in
> > > the c3d file. You can see a detailed
> description of the camera mask
> > > and residual words here:
> > http://www.c3d.
>
<http://www.c3d.org/HTML/notesforprogrammers4.htm>
> > org/HTML/notesforprogrammers4.htm
> > >
> > > In short, if both the camera mask and
> residual are zero for all
> > > frames, the point is treated as calculated
> data and placed in the
> > > PointsProcessed folder. Otherwise it is
> placed in the PointsMarkers
> > > folder and additionally a driver is created
> for the point in the
> > > MarkerListMover.any file.
> > >
> > > I hope this answers your question else
> please ask again.
> > >
> > > Best regards
> > > Michael Skipper Andersen
> > > The AnyBody Research Project
> > >
> > > — In anyscript@yahoogrou
> <mailto:anyscript%40yahoogroups.com>
> ps.com,
> > Srikanth Kannan
> > > <srikanth_kannan84@> wrote:
> > > >
> > > > hi all
> > > > i corrected my c3d file such that it does
> not have duplicate
> > > parameter (Zero) under ForcePlatform
> section. i am able to convert my
> > > c3d file into anyscript. But now when i am
> running Kinematic analysis
> > > i am not able to see any marker movement.
> points p1,p2,p3 are marker
> > > points co-ordinates while p is fixed point
> coordinates. i have
> > > uploaded c3d file and AnyBody files
> (test.rar) in groups under c3d2any
> > > folder. Any help from you is deeply
> appreciated.
> > > >
> > > > thanks
> > > > srikanth
> > > >
> >
> >
> >
> >
> >
> > [Non-text portions of this message have been
> removed]
> >
>
>
>

________________________________________________________________________________\


Never miss a thing. Make Yahoo your home page.
http://www.yahoo.com/r/hs

Hi LengFeng

Thanks a lot for the info. I am able to make some good progress in the
model.

Thanks

Madu.

— In anyscript@yahoogroups.com, Leng-Feng Lee <lengfenglee@…> wrote:
>
> Hi Madu,
>
> I downloaded your model and figured out what is
> the problem in your model. The inverse dynamics
> analysis fail when the pendulum reached the very
> right end (+ve x-direction). Visually, if you
> look carefully at the model, the muscle at the
> left
> hand side is not able to provide a pulling force
> for the pendulum to move to the left. If the
> deceleration is too large it will need muscle
> force to pull the pendulum downwards. To fix this
> problem, you need to change the location of the
> mus1 and mus2 (See the file ‘pend2mus_A.any’ file
> uploaded to the same folder). Also, to avoid the
> trouble of adjusting the parameters of the
> AnyMuscleModel3E muscle model here, the mus1 and
> mus2 were also changed to AnyMuscleModel muscle
> for now.
>
> Now to answer your second question: “How to
> determine muscle length parameters”, the general
> guidelines are:
> 1. Using the physiology data in the literature;
> 2. If such data is not available or not
> applicable
> as in this pendulum example, you can determine
> the
> muscle length using:
>
> Run the kinematic analysis, plot the muscle Lmt
> value using the AnyChart 2D/3D window. Muscle Lmt
> is the total length of the muscle (see the figure
> in page 131, AnyBody tutorial). From the graph,
> you will see that it varies roughly from 0.6m to
> 1.25m. Using the lower end value 0.6, you can
> approximate 0.5 is Lfbar (neutral fiber length),
> 0.1 is Lt0 (slack length of tendon). Other values
> of AnyMuscle3E such as Gammabar, Fcfast, Jt, Jpe,
> K1, K2, PEFactor, is best to use the suggested
> values in page 131-132 of AnyBody Tutorial
> ver3.0. In your original file, “pen2mus.any”, you
> have the following parameters:
>
> AnyMuscleModel3E mod2 =
> {
> F0 = 400;
> Lfbar = 2;
> Gammabar = 0;
> Epsilonbar = 1;
> Lt0 = .4;
> Fcfast = 0.4;
> Jt = 3;
> Jpe = 3;
> K1 = 10;
> K2 = 0;
> PEFactor = 1;
> };
>
> You have a Epsilonbar value of 1, which is the
> tendon’s strain (change in length/total length),
> means it is too ‘soft’, a reasonable number for
> this value is 0.05. Next, the recommended values
> for K1 and K2 is K1=2, K2=8 as shown in page 132
> of AnyBody Tutorial. Lastly, the PEFactor should
> be between 1.5 and 5, a PEFactor of 1 is will
> give unreasonable huge passive force and result
> in error in inverse dynamic analysis. I have
> created a file name “pen2mus_B.any” that have
> these AnyMuscleModel3E parameters changed. Using
> this file, you will be able to run your inverse
> dynamic analysis.
>
> Hope this helps.
>
>
> Thanks,
> Leng-Feng