Initial position causes unknown error

Hello all,

I am working on a sit-to-stand model that will be driven by markers. When I
load the model (F7), the “Configuring model.” step takes several seconds and
then gives me an error message:


Loading Main : “C:\Documents and Settings\Jean-Olivier
Racine\Desktop\LIO\Anybody\Repository.6\ARep\LIO\STS Test 2\STS.main.any”

Scanning…

Parsing…

Constructing model tree…

Linking identifiers…

Evaluating constants…

Configuring model…

Deleting last loaded model…Done.

ERROR : Model load : unknown error


If I comment the InitialPosition.any content (all of it), the model loads
successfully. But if I uncomment ANY section of it, I get the error.

This brings me to my second problem. When I load the model (without initial
positions), the leg is completely reverse (the knee is bent -90 degrees
instead of +90 degrees). Will giving an initial position closer to a
physiological position fix this?

Thanks!

P.-S. I uploaded the necessary files on the group file section, under the
name STS.rar. Note that the file contains to more archive: ARep, which goes
in ARep, and BRep which. I’ll let you guess. ;p These archives only contain
the “missing” files and should be added to a v6 repository.

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

Hi Jean-Olivier

I took a look at your model. Could you explain why you rotate your
coordinate system on your plate? I think the reason to the wrong knee
movement is based somewhere in your motion capture data. Maybe you
should rotate something?

I think that you can solve the problem with the initial position by
putting in your models initial position in the InitialPosition.any

I hope this helps you,
Best regards
Christian, AnyBody Support

— In anyscript@yahoogroups.com, Jean-Olivier Racine
<jean-olivier.racine.1@…> wrote:
>
> Hello all,
>
>
>
> I am working on a sit-to-stand model that will be driven by markers.
When I
> load the model (F7), the “Configuring model.” step takes several
seconds and
> then gives me an error message:
>
> --------------------------------------------------------------------
>
> Loading Main : “C:\Documents and Settings\Jean-Olivier
> Racine\Desktop\LIO\Anybody\Repository.6\ARep\LIO\STS Test
2\STS.main.any”
>
> Scanning…
>
> Parsing…
>
> Constructing model tree…
>
> Linking identifiers…
>
> Evaluating constants…
>
> Configuring model…
>
>
>
> Deleting last loaded model…Done.
>
> ERROR : Model load : unknown error
>
> --------------------------------------------------------------------
>
>
>
> If I comment the InitialPosition.any content (all of it), the model
loads
> successfully. But if I uncomment ANY section of it, I get the error.
>
>
>
> This brings me to my second problem. When I load the model (without
initial
> positions), the leg is completely reverse (the knee is bent -90 degrees
> instead of +90 degrees). Will giving an initial position closer to a
> physiological position fix this?
>
>
>
> Thanks!
>
>
>
> P.-S. I uploaded the necessary files on the group file section,
under the
> name STS.rar. Note that the file contains to more archive: ARep,
which goes
> in ARep, and BRep which. I’ll let you guess. ;p These archives only
contain
> the “missing” files and should be added to a v6 repository.
>
>
>
> [Non-text portions of this message have been removed]
>

Hi Jean-Oliver,

I took a look at your model with some other goggles than Christian.
In contrast to Christian, I am on a daily basis working with the
future versions of AnyBody, so I tried loading your model into one of
these.
And it shows a cyclic reference with this message

ERROR(SCR.PRS22) : C:\md\Any\Scripts3
\BugScript\JeanOliverRacine\STS CONFIG ERROR\Repository.6
\ARep\LIO\STS Test 2\InitialPositions.any(5) : ‘ref’ : Circular
reference

It is definitely a bug in your version of AnyBody that is does not
detected this – I am sorry for the troubles it have caused you.
It is already fixed in versions to come

The reference in questions reads:

AnyFolder &ref = Main.Model.HumanModel;

The problem is that you make this reference inside the HumanModel.
This makes it a cyclic reference. You may ask why this is a problem.
If it was a pointer in C/C++, it would not be problem, I guess.
However references in AnyBody are more than just pointers. When you
make a reference, it is more or less like inserting the full object
at the place of the reference. For instance you will be able to open
the branches of `ref’ when browsing the output of your studies. And
AnyBody searches these branches too when looking for objects.
Therefore, cyclic references are not allowed in AnyScript, because
they will create loops in these kinds of Model Tree operations.
(I guess this is exactly what happens in your model, because the bug
allows it to continue in spite of the cyclic reference)

You can avoid your cyclic reference in several ways:

  1. You can move the InitialPositions.any #include statement out of
    the HumanModel scope. It should work directly.
    Actually, I will suggest you to move your
    ModelEnvironnementConnection folder out of HumanModel. This is how we
    normally do, so that HumanModel only contains the basic human stuff
    and “Environment” and the like is places next to it in the Model
    folder.

  2. You can remove the reference and use the complete names below
    instead. Then you avoid the reference but need to do more writing and
    get less nice code. (This would be another good use of the #define
    preprocessor statements - sorry the rest of you, this is a follow up
    on a private talk Jean-Oliver and I have had.)

I hope this brings you forward with your model. Sorry for the bug in
the cyclic reference detection.

Best regards,

Michael,
AnyBody Support

— In anyscript@yahoogroups.com, Jean-Olivier Racine <jean-
olivier.racine.1@…> wrote:
>
> Hello all,
>
>
>
> I am working on a sit-to-stand model that will be driven by
markers. When I
> load the model (F7), the “Configuring model.” step takes several
seconds and
> then gives me an error message:
>
> --------------------------------------------------------------------
>
> Loading Main : “C:\Documents and Settings\Jean-Olivier
> Racine\Desktop\LIO\Anybody\Repository.6\ARep\LIO\STS Test 2
\STS.main.any”
>
> Scanning…
>
> Parsing…
>
> Constructing model tree…
>
> Linking identifiers…
>
> Evaluating constants…
>
> Configuring model…
>
>
>
> Deleting last loaded model…Done.
>
> ERROR : Model load : unknown error
>
> --------------------------------------------------------------------
>
>
>
> If I comment the InitialPosition.any content (all of it), the model
loads
> successfully. But if I uncomment ANY section of it, I get the error.
>
>
>
> This brings me to my second problem. When I load the model (without
initial
> positions), the leg is completely reverse (the knee is bent -90
degrees
> instead of +90 degrees). Will giving an initial position closer to a
> physiological position fix this?
>
>
>
> Thanks!
>
>
>
> P.-S. I uploaded the necessary files on the group file section,
under the
> name STS.rar. Note that the file contains to more archive: ARep,
which goes
> in ARep, and BRep which. I’ll let you guess. ;p These archives only
contain
> the “missing” files and should be added to a v6 repository.
>
>
>
> [Non-text portions of this message have been removed]
>

Great, thanks! Now it works fine, I just moved it outside the HumanModel and
it now works.


From: anyscript@yahoogroups.com [mailto:anyscript@yahoogroups.com] On Behalf
Of AnyBody Support
Sent: 5 février 2007 07:08
To: anyscript@yahoogroups.com
Subject: [anyscript] Re: Initial position causes unknown error

Hi Jean-Oliver,

I took a look at your model with some other goggles than Christian.
In contrast to Christian, I am on a daily basis working with the
future versions of AnyBody, so I tried loading your model into one of
these.
And it shows a cyclic reference with this message

ERROR(SCR.PRS22) : C:\md\Any\Scripts3
\BugScript\JeanOliverRacine\STS CONFIG ERROR\Repository.6
\ARep\LIO\STS Test 2\InitialPositions.any(5) : ‘ref’ : Circular
reference

It is definitely a bug in your version of AnyBody that is does not
detected this – I am sorry for the troubles it have caused you.
It is already fixed in versions to come

The reference in questions reads:

AnyFolder &ref = Main.Model.HumanModel;

The problem is that you make this reference inside the HumanModel.
This makes it a cyclic reference. You may ask why this is a problem.
If it was a pointer in C/C++, it would not be problem, I guess.
However references in AnyBody are more than just pointers. When you
make a reference, it is more or less like inserting the full object
at the place of the reference. For instance you will be able to open
the branches of `ref’ when browsing the output of your studies. And
AnyBody searches these branches too when looking for objects.
Therefore, cyclic references are not allowed in AnyScript, because
they will create loops in these kinds of Model Tree operations.
(I guess this is exactly what happens in your model, because the bug
allows it to continue in spite of the cyclic reference)

You can avoid your cyclic reference in several ways:

  1. You can move the InitialPositions.any #include statement out of
    the HumanModel scope. It should work directly.
    Actually, I will suggest you to move your
    ModelEnvironnementConnection folder out of HumanModel. This is how we
    normally do, so that HumanModel only contains the basic human stuff
    and “Environment” and the like is places next to it in the Model
    folder.

  2. You can remove the reference and use the complete names below
    instead. Then you avoid the reference but need to do more writing and
    get less nice code. (This would be another good use of the #define
    preprocessor statements - sorry the rest of you, this is a follow up
    on a private talk Jean-Oliver and I have had.)

I hope this brings you forward with your model. Sorry for the bug in
the cyclic reference detection.

Best regards,

Michael,
AnyBody Support

— In anyscript@yahoogrou <mailto:anyscript%40yahoogroups.com> ps.com,
Jean-Olivier Racine <jean-
olivier.racine.1@…> wrote:
>
> Hello all,
>
>
>
> I am working on a sit-to-stand model that will be driven by
markers. When I
> load the model (F7), the “Configuring model.” step takes several
seconds and
> then gives me an error message:
>
> ----------------------------------------------------------
>
> Loading Main : “C:\Documents and Settings\Jean-Olivier
> Racine\Desktop\LIO\Anybody\Repository.6\ARep\LIO\STS Test 2
\STS.main.any”
>
> Scanning…
>
> Parsing…
>
> Constructing model tree…
>
> Linking identifiers…
>
> Evaluating constants…
>
> Configuring model…
>
>
>
> Deleting last loaded model…Done.
>
> ERROR : Model load : unknown error
>
> ----------------------------------------------------------
>
>
>
> If I comment the InitialPosition.any content (all of it), the model
loads
> successfully. But if I uncomment ANY section of it, I get the error.
>
>
>
> This brings me to my second problem. When I load the model (without
initial
> positions), the leg is completely reverse (the knee is bent -90
degrees
> instead of +90 degrees). Will giving an initial position closer to a
> physiological position fix this?
>
>
>
> Thanks!
>
>
>
> P.-S. I uploaded the necessary files on the group file section,
under the
> name STS.rar. Note that the file contains to more archive: ARep,
which goes
> in ARep, and BRep which. I’ll let you guess. ;p These archives only
contain
> the “missing” files and should be added to a v6 repository.
>
>
>
> [Non-text portions of this message have been removed]
>

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

I should have said loads fine, because I still need to get back to
Christian’s part :wink: Thanks


From: anyscript@yahoogroups.com [mailto:anyscript@yahoogroups.com] On Behalf
Of Jean-Olivier Racine
Sent: 5 février 2007 09:28
To: anyscript@yahoogroups.com
Subject: RE: [anyscript] Re: Initial position causes unknown error

Great, thanks! Now it works fine, I just moved it outside the HumanModel and
it now works.


From: anyscript@yahoogrou <mailto:anyscript%40yahoogroups.com> ps.com
[mailto:anyscript@yahoogrou <mailto:anyscript%40yahoogroups.com> ps.com] On
Behalf
Of AnyBody Support
Sent: 5 février 2007 07:08
To: anyscript@yahoogrou <mailto:anyscript%40yahoogroups.com> ps.com
Subject: [anyscript] Re: Initial position causes unknown error

Hi Jean-Oliver,

I took a look at your model with some other goggles than Christian.
In contrast to Christian, I am on a daily basis working with the
future versions of AnyBody, so I tried loading your model into one of
these.
And it shows a cyclic reference with this message

ERROR(SCR.PRS22) : C:\md\Any\Scripts3
\BugScript\JeanOliverRacine\STS CONFIG ERROR\Repository.6
\ARep\LIO\STS Test 2\InitialPositions.any(5) : ‘ref’ : Circular
reference

It is definitely a bug in your version of AnyBody that is does not
detected this – I am sorry for the troubles it have caused you.
It is already fixed in versions to come

The reference in questions reads:

AnyFolder &ref = Main.Model.HumanModel;

The problem is that you make this reference inside the HumanModel.
This makes it a cyclic reference. You may ask why this is a problem.
If it was a pointer in C/C++, it would not be problem, I guess.
However references in AnyBody are more than just pointers. When you
make a reference, it is more or less like inserting the full object
at the place of the reference. For instance you will be able to open
the branches of `ref’ when browsing the output of your studies. And
AnyBody searches these branches too when looking for objects.
Therefore, cyclic references are not allowed in AnyScript, because
they will create loops in these kinds of Model Tree operations.
(I guess this is exactly what happens in your model, because the bug
allows it to continue in spite of the cyclic reference)

You can avoid your cyclic reference in several ways:

  1. You can move the InitialPositions.any #include statement out of
    the HumanModel scope. It should work directly.
    Actually, I will suggest you to move your
    ModelEnvironnementConnection folder out of HumanModel. This is how we
    normally do, so that HumanModel only contains the basic human stuff
    and “Environment” and the like is places next to it in the Model
    folder.

  2. You can remove the reference and use the complete names below
    instead. Then you avoid the reference but need to do more writing and
    get less nice code. (This would be another good use of the #define
    preprocessor statements - sorry the rest of you, this is a follow up
    on a private talk Jean-Oliver and I have had.)

I hope this brings you forward with your model. Sorry for the bug in
the cyclic reference detection.

Best regards,

Michael,
AnyBody Support

— In anyscript@yahoogrou <mailto:anyscript%40yahoogroups.com> ps.com,
Jean-Olivier Racine <jean-
olivier.racine.1@…> wrote:
>
> Hello all,
>
>
>
> I am working on a sit-to-stand model that will be driven by
markers. When I
> load the model (F7), the “Configuring model.” step takes several
seconds and
> then gives me an error message:
>
> ----------------------------------------------------------
>
> Loading Main : “C:\Documents and Settings\Jean-Olivier
> Racine\Desktop\LIO\Anybody\Repository.6\ARep\LIO\STS Test 2
\STS.main.any”
>
> Scanning…
>
> Parsing…
>
> Constructing model tree…
>
> Linking identifiers…
>
> Evaluating constants…
>
> Configuring model…
>
>
>
> Deleting last loaded model…Done.
>
> ERROR : Model load : unknown error
>
> ----------------------------------------------------------
>
>
>
> If I comment the InitialPosition.any content (all of it), the model
loads
> successfully. But if I uncomment ANY section of it, I get the error.
>
>
>
> This brings me to my second problem. When I load the model (without
initial
> positions), the leg is completely reverse (the knee is bent -90
degrees
> instead of +90 degrees). Will giving an initial position closer to a
> physiological position fix this?
>
>
>
> Thanks!
>
>
>
> P.-S. I uploaded the necessary files on the group file section,
under the
> name STS.rar. Note that the file contains to more archive: ARep,
which goes
> in ARep, and BRep which. I’ll let you guess. ;p These archives only
contain
> the “missing” files and should be added to a v6 repository.
>
>
>
> [Non-text portions of this message have been removed]
>

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

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