Hiking Bench Problem

I’ve been looking at the FreePosture model in ARep and am trying to
set up its initial positions similar to that shown in the picture I
uploaded previously in “Files” under the “hiking” folder.

I’d like to have the pelvis rotate with respect to the legs similar to
doing a Sit-Up/Crunch exercise, but when I input a value to the
HipFlexion in “Main.Model.HumanModel.Mannequin.PostureVel”, the lower
limbs rotate with respect to the pelvis. And when I input a value to
PelvisRotY, the whole body moves along with the rotation.

I have been trying the past 3 days to no avail. To briefly explain, I
removed the left and right hip drivers and then added drivers for the
right and left thigh to attach to the global reference, similar to the
one that says “Drivers for attaching the pelvis to the global
reference system”. Then, I removed the X and Z rotations of the
RThighGroundDriver, LThighGroundDriver and PelvisGroundDriver so that
the no. of DOF = no. of contraints.

In the end, it was able to load but when I run the
SetInitialConditions, it gave me this error message that says “‘Study’
: Kinematic analysis failed in time step 0”. Why is that so?

Am I going in the right direction? If not, any suggestions? Would
really appreciate your kind help.

Hi Robin

I will try to look into the model during the weekend…

Best regards
Christian, AnyBody Support

— In anyscript@yahoogroups.com, “Robin” <giggsyagami07@…> wrote:
>
> I’ve been looking at the FreePosture model in ARep and am trying to
> set up its initial positions similar to that shown in the picture I
> uploaded previously in “Files” under the “hiking” folder.
>
> I’d like to have the pelvis rotate with respect to the legs similar
to
> doing a Sit-Up/Crunch exercise, but when I input a value to the
> HipFlexion in “Main.Model.HumanModel.Mannequin.PostureVel”, the
lower
> limbs rotate with respect to the pelvis. And when I input a value to
> PelvisRotY, the whole body moves along with the rotation.
>
> I have been trying the past 3 days to no avail. To briefly explain,
I
> removed the left and right hip drivers and then added drivers for
the
> right and left thigh to attach to the global reference, similar to
the
> one that says “Drivers for attaching the pelvis to the global
> reference system”. Then, I removed the X and Z rotations of the
> RThighGroundDriver, LThighGroundDriver and PelvisGroundDriver so
that
> the no. of DOF = no. of contraints.
>
> In the end, it was able to load but when I run the
> SetInitialConditions, it gave me this error message that
says “‘Study’
> : Kinematic analysis failed in time step 0”. Why is that so?
>
> Am I going in the right direction? If not, any suggestions? Would
> really appreciate your kind help.
>

Hi Christian,

I’ve zipped and posted the files in the “hiking” folder just in case
you want to take a look at it. Thanks.

Regards,
Robin

— In anyscript@yahoogroups.com, “AnyBody Support” <support@…> wrote:
>
> Hi Robin
>
> I will try to look into the model during the weekend…
>
> Best regards
> Christian, AnyBody Support
>
>
> — In anyscript@yahoogroups.com, “Robin” <giggsyagami07@> wrote:
> >
> > I’ve been looking at the FreePosture model in ARep and am trying to
> > set up its initial positions similar to that shown in the picture I
> > uploaded previously in “Files” under the “hiking” folder.
> >
> > I’d like to have the pelvis rotate with respect to the legs similar
> to
> > doing a Sit-Up/Crunch exercise, but when I input a value to the
> > HipFlexion in “Main.Model.HumanModel.Mannequin.PostureVel”, the
> lower
> > limbs rotate with respect to the pelvis. And when I input a value to
> > PelvisRotY, the whole body moves along with the rotation.
> >
> > I have been trying the past 3 days to no avail. To briefly explain,
> I
> > removed the left and right hip drivers and then added drivers for
> the
> > right and left thigh to attach to the global reference, similar to
> the
> > one that says “Drivers for attaching the pelvis to the global
> > reference system”. Then, I removed the X and Z rotations of the
> > RThighGroundDriver, LThighGroundDriver and PelvisGroundDriver so
> that
> > the no. of DOF = no. of contraints.
> >
> > In the end, it was able to load but when I run the
> > SetInitialConditions, it gave me this error message that
> says “‘Study’
> > : Kinematic analysis failed in time step 0”. Why is that so?
> >
> > Am I going in the right direction? If not, any suggestions? Would
> > really appreciate your kind help.
> >
>

Hi Robin

Are you using the FreePostureMove?
I tried to do what you describes and my model is rotating in both the
hip and the pelvis.
If you could zip what you have been doing until now, I can take a look
at that.

Best regards

Christian, AnyBody Support

— In anyscript@yahoogroups.com, “Robin” <giggsyagami07@…> wrote:
>
> I’ve been looking at the FreePosture model in ARep and am trying to
> set up its initial positions similar to that shown in the picture I
> uploaded previously in “Files” under the “hiking” folder.
>
> I’d like to have the pelvis rotate with respect to the legs similar to
> doing a Sit-Up/Crunch exercise, but when I input a value to the
> HipFlexion in “Main.Model.HumanModel.Mannequin.PostureVel”, the lower
> limbs rotate with respect to the pelvis. And when I input a value to
> PelvisRotY, the whole body moves along with the rotation.
>
> I have been trying the past 3 days to no avail. To briefly explain, I
> removed the left and right hip drivers and then added drivers for the
> right and left thigh to attach to the global reference, similar to the
> one that says “Drivers for attaching the pelvis to the global
> reference system”. Then, I removed the X and Z rotations of the
> RThighGroundDriver, LThighGroundDriver and PelvisGroundDriver so that
> the no. of DOF = no. of contraints.
>
> In the end, it was able to load but when I run the
> SetInitialConditions, it gave me this error message that says “‘Study’
> : Kinematic analysis failed in time step 0”. Why is that so?
>
> Am I going in the right direction? If not, any suggestions? Would
> really appreciate your kind help.
>

Hi Robin

I guess you read my mind:)
I will take a look at that… tomorrow. It is getting pretty late here…

Best regards
Christian, AnyBody Support

— In anyscript@yahoogroups.com, “Robin” <giggsyagami07@…> wrote:
>
> Hi Christian,
>
> I’ve zipped and posted the files in the “hiking” folder just in case
> you want to take a look at it. Thanks.
>
> Regards,
> Robin
>
> — In anyscript@yahoogroups.com, “AnyBody Support” <support@> wrote:
> >
> > Hi Robin
> >
> > I will try to look into the model during the weekend…
> >
> > Best regards
> > Christian, AnyBody Support
> >
> >
> > — In anyscript@yahoogroups.com, “Robin” <giggsyagami07@> wrote:
> > >
> > > I’ve been looking at the FreePosture model in ARep and am trying to
> > > set up its initial positions similar to that shown in the picture I
> > > uploaded previously in “Files” under the “hiking” folder.
> > >
> > > I’d like to have the pelvis rotate with respect to the legs similar
> > to
> > > doing a Sit-Up/Crunch exercise, but when I input a value to the
> > > HipFlexion in “Main.Model.HumanModel.Mannequin.PostureVel”, the
> > lower
> > > limbs rotate with respect to the pelvis. And when I input a value to
> > > PelvisRotY, the whole body moves along with the rotation.
> > >
> > > I have been trying the past 3 days to no avail. To briefly explain,
> > I
> > > removed the left and right hip drivers and then added drivers for
> > the
> > > right and left thigh to attach to the global reference, similar to
> > the
> > > one that says “Drivers for attaching the pelvis to the global
> > > reference system”. Then, I removed the X and Z rotations of the
> > > RThighGroundDriver, LThighGroundDriver and PelvisGroundDriver so
> > that
> > > the no. of DOF = no. of contraints.
> > >
> > > In the end, it was able to load but when I run the
> > > SetInitialConditions, it gave me this error message that
> > says “‘Study’
> > > : Kinematic analysis failed in time step 0”. Why is that so?
> > >
> > > Am I going in the right direction? If not, any suggestions? Would
> > > really appreciate your kind help.
> > >
> >
>

Hi Robin

Now I am awake again:D Well took a quick look at your model. If you
want to make a movement, it would be easier to begin with the model
FreePostureMove. There is some good examples of how you can make the
movements. I can’t load your model as it is now, because of a body
model called NoMusclesNew.any?
Try take a look at the FreePostureMove model and get back to me, so we
can make it work:D

Best regards
Christian, AnyBody Support

— In anyscript@yahoogroups.com, “Robin” <giggsyagami07@…> wrote:
>
> Hi Christian,
>
> I’ve zipped and posted the files in the “hiking” folder just in case
> you want to take a look at it. Thanks.
>
> Regards,
> Robin
>
> — In anyscript@yahoogroups.com, “AnyBody Support” <support@> wrote:
> >
> > Hi Robin
> >
> > I will try to look into the model during the weekend…
> >
> > Best regards
> > Christian, AnyBody Support
> >
> >
> > — In anyscript@yahoogroups.com, “Robin” <giggsyagami07@> wrote:
> > >
> > > I’ve been looking at the FreePosture model in ARep and am trying to
> > > set up its initial positions similar to that shown in the picture I
> > > uploaded previously in “Files” under the “hiking” folder.
> > >
> > > I’d like to have the pelvis rotate with respect to the legs similar
> > to
> > > doing a Sit-Up/Crunch exercise, but when I input a value to the
> > > HipFlexion in “Main.Model.HumanModel.Mannequin.PostureVel”, the
> > lower
> > > limbs rotate with respect to the pelvis. And when I input a value to
> > > PelvisRotY, the whole body moves along with the rotation.
> > >
> > > I have been trying the past 3 days to no avail. To briefly explain,
> > I
> > > removed the left and right hip drivers and then added drivers for
> > the
> > > right and left thigh to attach to the global reference, similar to
> > the
> > > one that says “Drivers for attaching the pelvis to the global
> > > reference system”. Then, I removed the X and Z rotations of the
> > > RThighGroundDriver, LThighGroundDriver and PelvisGroundDriver so
> > that
> > > the no. of DOF = no. of contraints.
> > >
> > > In the end, it was able to load but when I run the
> > > SetInitialConditions, it gave me this error message that
> > says “‘Study’
> > > : Kinematic analysis failed in time step 0”. Why is that so?
> > >
> > > Am I going in the right direction? If not, any suggestions? Would
> > > really appreciate your kind help.
> > >
> >
>

Hi again Robin

Now I have a bit more time then this morning…
The model FreePostureMove is locket to the ground by the pelvis.
I guess you would rather have it locked by the thigh or maybe the foot?
Instead of rotating the body, I guess you could just make gravity in
the x-axis instead of y.
Write if you have any problems:D

Best regards
Christian, AnyBody Support

— In anyscript@yahoogroups.com, “AnyBody Support” <support@…> wrote:
>
> Hi Robin
>
> Now I am awake again:D Well took a quick look at your model. If you
> want to make a movement, it would be easier to begin with the model
> FreePostureMove. There is some good examples of how you can make the
> movements. I can’t load your model as it is now, because of a body
> model called NoMusclesNew.any?
> Try take a look at the FreePostureMove model and get back to me, so we
> can make it work:D
>
> Best regards
> Christian, AnyBody Support
>
> — In anyscript@yahoogroups.com, “Robin” <giggsyagami07@> wrote:
> >
> > Hi Christian,
> >
> > I’ve zipped and posted the files in the “hiking” folder just in case
> > you want to take a look at it. Thanks.
> >
> > Regards,
> > Robin
> >
> > — In anyscript@yahoogroups.com, “AnyBody Support” <support@> wrote:
> > >
> > > Hi Robin
> > >
> > > I will try to look into the model during the weekend…
> > >
> > > Best regards
> > > Christian, AnyBody Support
> > >
> > >
> > > — In anyscript@yahoogroups.com, “Robin” <giggsyagami07@> wrote:
> > > >
> > > > I’ve been looking at the FreePosture model in ARep and am
trying to
> > > > set up its initial positions similar to that shown in the
picture I
> > > > uploaded previously in “Files” under the “hiking” folder.
> > > >
> > > > I’d like to have the pelvis rotate with respect to the legs
similar
> > > to
> > > > doing a Sit-Up/Crunch exercise, but when I input a value to the
> > > > HipFlexion in “Main.Model.HumanModel.Mannequin.PostureVel”, the
> > > lower
> > > > limbs rotate with respect to the pelvis. And when I input a
value to
> > > > PelvisRotY, the whole body moves along with the rotation.
> > > >
> > > > I have been trying the past 3 days to no avail. To briefly
explain,
> > > I
> > > > removed the left and right hip drivers and then added drivers for
> > > the
> > > > right and left thigh to attach to the global reference,
similar to
> > > the
> > > > one that says “Drivers for attaching the pelvis to the global
> > > > reference system”. Then, I removed the X and Z rotations of the
> > > > RThighGroundDriver, LThighGroundDriver and PelvisGroundDriver so
> > > that
> > > > the no. of DOF = no. of contraints.
> > > >
> > > > In the end, it was able to load but when I run the
> > > > SetInitialConditions, it gave me this error message that
> > > says “‘Study’
> > > > : Kinematic analysis failed in time step 0”. Why is that so?
> > > >
> > > > Am I going in the right direction? If not, any suggestions? Would
> > > > really appreciate your kind help.
> > > >
> > >
> >
>

Hi Christian,

Thanks for all the attention.

Yup, you got it right, I’ve been trying to lock the thigh. But do I
lock both thighs? And I’m guessing that I have to unlock the pelvis?

Where do I go to lock and unlock? Is it under “JointsAndDrivers”?

Regards,
Robin

— In anyscript@yahoogroups.com, “AnyBody Support” <support@…> wrote:
>
> Hi again Robin
>
> Now I have a bit more time then this morning…
> The model FreePostureMove is locket to the ground by the pelvis.
> I guess you would rather have it locked by the thigh or maybe the foot?
> Instead of rotating the body, I guess you could just make gravity in
> the x-axis instead of y.
> Write if you have any problems:D
>
> Best regards
> Christian, AnyBody Support
>
> — In anyscript@yahoogroups.com, “AnyBody Support” <support@> wrote:
> >
> > Hi Robin
> >
> > Now I am awake again:D Well took a quick look at your model. If you
> > want to make a movement, it would be easier to begin with the model
> > FreePostureMove. There is some good examples of how you can make the
> > movements. I can’t load your model as it is now, because of a body
> > model called NoMusclesNew.any?
> > Try take a look at the FreePostureMove model and get back to me, so we
> > can make it work:D
> >
> > Best regards
> > Christian, AnyBody Support
> >
> > — In anyscript@yahoogroups.com, “Robin” <giggsyagami07@> wrote:
> > >
> > > Hi Christian,
> > >
> > > I’ve zipped and posted the files in the “hiking” folder just in case
> > > you want to take a look at it. Thanks.
> > >
> > > Regards,
> > > Robin
> > >
> > > — In anyscript@yahoogroups.com, “AnyBody Support” <support@>
wrote:
> > > >
> > > > Hi Robin
> > > >
> > > > I will try to look into the model during the weekend…
> > > >
> > > > Best regards
> > > > Christian, AnyBody Support
> > > >
> > > >
> > > > — In anyscript@yahoogroups.com, “Robin” <giggsyagami07@> wrote:
> > > > >
> > > > > I’ve been looking at the FreePosture model in ARep and am
> trying to
> > > > > set up its initial positions similar to that shown in the
> picture I
> > > > > uploaded previously in “Files” under the “hiking” folder.
> > > > >
> > > > > I’d like to have the pelvis rotate with respect to the legs
> similar
> > > > to
> > > > > doing a Sit-Up/Crunch exercise, but when I input a value to the
> > > > > HipFlexion in “Main.Model.HumanModel.Mannequin.PostureVel”, the
> > > > lower
> > > > > limbs rotate with respect to the pelvis. And when I input a
> value to
> > > > > PelvisRotY, the whole body moves along with the rotation.
> > > > >
> > > > > I have been trying the past 3 days to no avail. To briefly
> explain,
> > > > I
> > > > > removed the left and right hip drivers and then added
drivers for
> > > > the
> > > > > right and left thigh to attach to the global reference,
> similar to
> > > > the
> > > > > one that says “Drivers for attaching the pelvis to the global
> > > > > reference system”. Then, I removed the X and Z rotations of the
> > > > > RThighGroundDriver, LThighGroundDriver and
PelvisGroundDriver so
> > > > that
> > > > > the no. of DOF = no. of contraints.
> > > > >
> > > > > In the end, it was able to load but when I run the
> > > > > SetInitialConditions, it gave me this error message that
> > > > says “‘Study’
> > > > > : Kinematic analysis failed in time step 0”. Why is that so?
> > > > >
> > > > > Am I going in the right direction? If not, any suggestions?
Would
> > > > > really appreciate your kind help.
> > > > >
> > > >
> > >
> >
>

Hi Robin

You are welcome.
I guess you can just lock both thighs… shouldn’t be a problem.
Yes JointsAndDrivers.any has the joint between the globalRefFrame and
the pelvis.

You might wanna take a look in initialPositions.any as well.

Best regards
Christian, AnyBody Support

— In anyscript@yahoogroups.com, “Robin” <giggsyagami07@…> wrote:
>
> Hi Christian,
>
> Thanks for all the attention.
>
> Yup, you got it right, I’ve been trying to lock the thigh. But do I
> lock both thighs? And I’m guessing that I have to unlock the pelvis?
>
> Where do I go to lock and unlock? Is it under “JointsAndDrivers”?
>
> Regards,
> Robin
>
> — In anyscript@yahoogroups.com, “AnyBody Support” <support@> wrote:
> >
> > Hi again Robin
> >
> > Now I have a bit more time then this morning…
> > The model FreePostureMove is locket to the ground by the pelvis.
> > I guess you would rather have it locked by the thigh or maybe the
foot?
> > Instead of rotating the body, I guess you could just make gravity in
> > the x-axis instead of y.
> > Write if you have any problems:D
> >
> > Best regards
> > Christian, AnyBody Support
> >
> > — In anyscript@yahoogroups.com, “AnyBody Support” <support@> wrote:
> > >
> > > Hi Robin
> > >
> > > Now I am awake again:D Well took a quick look at your model. If you
> > > want to make a movement, it would be easier to begin with the model
> > > FreePostureMove. There is some good examples of how you can make the
> > > movements. I can’t load your model as it is now, because of a body
> > > model called NoMusclesNew.any?
> > > Try take a look at the FreePostureMove model and get back to me,
so we
> > > can make it work:D
> > >
> > > Best regards
> > > Christian, AnyBody Support
> > >
> > > — In anyscript@yahoogroups.com, “Robin” <giggsyagami07@> wrote:
> > > >
> > > > Hi Christian,
> > > >
> > > > I’ve zipped and posted the files in the “hiking” folder just
in case
> > > > you want to take a look at it. Thanks.
> > > >
> > > > Regards,
> > > > Robin
> > > >
> > > > — In anyscript@yahoogroups.com, “AnyBody Support” <support@>
> wrote:
> > > > >
> > > > > Hi Robin
> > > > >
> > > > > I will try to look into the model during the weekend…
> > > > >
> > > > > Best regards
> > > > > Christian, AnyBody Support
> > > > >
> > > > >
> > > > > — In anyscript@yahoogroups.com, “Robin” <giggsyagami07@>
wrote:
> > > > > >
> > > > > > I’ve been looking at the FreePosture model in ARep and am
> > trying to
> > > > > > set up its initial positions similar to that shown in the
> > picture I
> > > > > > uploaded previously in “Files” under the “hiking” folder.
> > > > > >
> > > > > > I’d like to have the pelvis rotate with respect to the legs
> > similar
> > > > > to
> > > > > > doing a Sit-Up/Crunch exercise, but when I input a value
to the
> > > > > > HipFlexion in
“Main.Model.HumanModel.Mannequin.PostureVel”, the
> > > > > lower
> > > > > > limbs rotate with respect to the pelvis. And when I input a
> > value to
> > > > > > PelvisRotY, the whole body moves along with the rotation.
> > > > > >
> > > > > > I have been trying the past 3 days to no avail. To briefly
> > explain,
> > > > > I
> > > > > > removed the left and right hip drivers and then added
> drivers for
> > > > > the
> > > > > > right and left thigh to attach to the global reference,
> > similar to
> > > > > the
> > > > > > one that says “Drivers for attaching the pelvis to the global
> > > > > > reference system”. Then, I removed the X and Z rotations
of the
> > > > > > RThighGroundDriver, LThighGroundDriver and
> PelvisGroundDriver so
> > > > > that
> > > > > > the no. of DOF = no. of contraints.
> > > > > >
> > > > > > In the end, it was able to load but when I run the
> > > > > > SetInitialConditions, it gave me this error message that
> > > > > says “‘Study’
> > > > > > : Kinematic analysis failed in time step 0”. Why is that so?
> > > > > >
> > > > > > Am I going in the right direction? If not, any suggestions?
> Would
> > > > > > really appreciate your kind help.
> > > > > >
> > > > >
> > > >
> > >
> >
>

Hi Christian,

I did some of the ideas suggested. I locked the right thigh and
unlocked the pelvis. I also made gravity in the X direction as
suggested and managed to get what I wanted.

One thing strange is that when I made gravity in the Z direction, and
rotate the values in the “mannequin” file to fit respectively, I get
this gimbal lock error.

I’m fine with leaving the gravity in the X direction but I’m just
curious to know what the gimbal lock is all about. I’ve read the
reference manual but I don’t really understand it.

Regards,
Robin

— In anyscript@yahoogroups.com, “AnyBody Support” <support@…> wrote:
>
> Hi Robin
>
> You are welcome.
> I guess you can just lock both thighs… shouldn’t be a problem.
> Yes JointsAndDrivers.any has the joint between the globalRefFrame and
> the pelvis.
>
> You might wanna take a look in initialPositions.any as well.
>
> Best regards
> Christian, AnyBody Support
>
> — In anyscript@yahoogroups.com, “Robin” <giggsyagami07@> wrote:
> >
> > Hi Christian,
> >
> > Thanks for all the attention.
> >
> > Yup, you got it right, I’ve been trying to lock the thigh. But do I
> > lock both thighs? And I’m guessing that I have to unlock the pelvis?
> >
> > Where do I go to lock and unlock? Is it under “JointsAndDrivers”?
> >
> > Regards,
> > Robin
> >
> > — In anyscript@yahoogroups.com, “AnyBody Support” <support@> wrote:
> > >
> > > Hi again Robin
> > >
> > > Now I have a bit more time then this morning…
> > > The model FreePostureMove is locket to the ground by the pelvis.
> > > I guess you would rather have it locked by the thigh or maybe the
> foot?
> > > Instead of rotating the body, I guess you could just make gravity in
> > > the x-axis instead of y.
> > > Write if you have any problems:D
> > >
> > > Best regards
> > > Christian, AnyBody Support
> > >
> > > — In anyscript@yahoogroups.com, “AnyBody Support” <support@>
wrote:
> > > >
> > > > Hi Robin
> > > >
> > > > Now I am awake again:D Well took a quick look at your model.
If you
> > > > want to make a movement, it would be easier to begin with the
model
> > > > FreePostureMove. There is some good examples of how you can
make the
> > > > movements. I can’t load your model as it is now, because of a body
> > > > model called NoMusclesNew.any?
> > > > Try take a look at the FreePostureMove model and get back to me,
> so we
> > > > can make it work:D
> > > >
> > > > Best regards
> > > > Christian, AnyBody Support
> > > >
> > > > — In anyscript@yahoogroups.com, “Robin” <giggsyagami07@> wrote:
> > > > >
> > > > > Hi Christian,
> > > > >
> > > > > I’ve zipped and posted the files in the “hiking” folder just
> in case
> > > > > you want to take a look at it. Thanks.
> > > > >
> > > > > Regards,
> > > > > Robin
> > > > >
> > > > > — In anyscript@yahoogroups.com, “AnyBody Support” <support@>
> > wrote:
> > > > > >
> > > > > > Hi Robin
> > > > > >
> > > > > > I will try to look into the model during the weekend…
> > > > > >
> > > > > > Best regards
> > > > > > Christian, AnyBody Support
> > > > > >
> > > > > >
> > > > > > — In anyscript@yahoogroups.com, “Robin” <giggsyagami07@>
> wrote:
> > > > > > >
> > > > > > > I’ve been looking at the FreePosture model in ARep and am
> > > trying to
> > > > > > > set up its initial positions similar to that shown in the
> > > picture I
> > > > > > > uploaded previously in “Files” under the “hiking” folder.
> > > > > > >
> > > > > > > I’d like to have the pelvis rotate with respect to the legs
> > > similar
> > > > > > to
> > > > > > > doing a Sit-Up/Crunch exercise, but when I input a value
> to the
> > > > > > > HipFlexion in
> “Main.Model.HumanModel.Mannequin.PostureVel”, the
> > > > > > lower
> > > > > > > limbs rotate with respect to the pelvis. And when I input a
> > > value to
> > > > > > > PelvisRotY, the whole body moves along with the rotation.
> > > > > > >
> > > > > > > I have been trying the past 3 days to no avail. To briefly
> > > explain,
> > > > > > I
> > > > > > > removed the left and right hip drivers and then added
> > drivers for
> > > > > > the
> > > > > > > right and left thigh to attach to the global reference,
> > > similar to
> > > > > > the
> > > > > > > one that says “Drivers for attaching the pelvis to the
global
> > > > > > > reference system”. Then, I removed the X and Z rotations
> of the
> > > > > > > RThighGroundDriver, LThighGroundDriver and
> > PelvisGroundDriver so
> > > > > > that
> > > > > > > the no. of DOF = no. of contraints.
> > > > > > >
> > > > > > > In the end, it was able to load but when I run the
> > > > > > > SetInitialConditions, it gave me this error message that
> > > > > > says “‘Study’
> > > > > > > : Kinematic analysis failed in time step 0”. Why is
that so?
> > > > > > >
> > > > > > > Am I going in the right direction? If not, any suggestions?
> > Would
> > > > > > > really appreciate your kind help.
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>

Hi Robin,

This is John from the AnyBody group. Gimbal lock is a problem that
every system of three-dimensional rotations has. When you rotate a
body from one orientation to another it is by some sequence of
rotations of the axes. This may lead to situations where two of the
rotation axes are near parallel causing an indeterminate situation.
This is gimbal lock.

The only general solution is to use quarternions to describe the
rotation, but they have other drawbacks. If you look up Gimbal lock
in Google you will find lots of different explanations about the
problem.

I have been meaning to write concerning your model. Since you base
it on the free posture model you can actually control the
orientation from the mannequin file, and it is not necessary to
redefine the gravity to the x axis. At the top of the mannequin file
you find three numbers designating the pelvis rotation. These can be
used to rotate the entire model to any position you like.

Happy modeling!
John

— In anyscript@yahoogroups.com, “Robin” <giggsyagami07@…> wrote:
>
> Hi Christian,
>
> I did some of the ideas suggested. I locked the right thigh and
> unlocked the pelvis. I also made gravity in the X direction as
> suggested and managed to get what I wanted.
>
> One thing strange is that when I made gravity in the Z direction,
and
> rotate the values in the “mannequin” file to fit respectively, I
get
> this gimbal lock error.
>
> I’m fine with leaving the gravity in the X direction but I’m just
> curious to know what the gimbal lock is all about. I’ve read the
> reference manual but I don’t really understand it.
>
> Regards,
> Robin
>
>
>
>
> — In anyscript@yahoogroups.com, “AnyBody Support” <support@>
wrote:
> >
> > Hi Robin
> >
> > You are welcome.
> > I guess you can just lock both thighs… shouldn’t be a problem.
> > Yes JointsAndDrivers.any has the joint between the
globalRefFrame and
> > the pelvis.
> >
> > You might wanna take a look in initialPositions.any as well.
> >
> > Best regards
> > Christian, AnyBody Support
> >
> > — In anyscript@yahoogroups.com, “Robin” <giggsyagami07@> wrote:
> > >
> > > Hi Christian,
> > >
> > > Thanks for all the attention.
> > >
> > > Yup, you got it right, I’ve been trying to lock the thigh. But
do I
> > > lock both thighs? And I’m guessing that I have to unlock the
pelvis?
> > >
> > > Where do I go to lock and unlock? Is it
under “JointsAndDrivers”?
> > >
> > > Regards,
> > > Robin
> > >
> > > — In anyscript@yahoogroups.com, “AnyBody Support” <support@>
wrote:
> > > >
> > > > Hi again Robin
> > > >
> > > > Now I have a bit more time then this morning…
> > > > The model FreePostureMove is locket to the ground by the
pelvis.
> > > > I guess you would rather have it locked by the thigh or
maybe the
> > foot?
> > > > Instead of rotating the body, I guess you could just make
gravity in
> > > > the x-axis instead of y.
> > > > Write if you have any problems:D
> > > >
> > > > Best regards
> > > > Christian, AnyBody Support
> > > >
> > > > — In anyscript@yahoogroups.com, “AnyBody Support”
<support@>
> wrote:
> > > > >
> > > > > Hi Robin
> > > > >
> > > > > Now I am awake again:D Well took a quick look at your
model.
> If you
> > > > > want to make a movement, it would be easier to begin with
the
> model
> > > > > FreePostureMove. There is some good examples of how you can
> make the
> > > > > movements. I can’t load your model as it is now, because
of a body
> > > > > model called NoMusclesNew.any?
> > > > > Try take a look at the FreePostureMove model and get back
to me,
> > so we
> > > > > can make it work:D
> > > > >
> > > > > Best regards
> > > > > Christian, AnyBody Support
> > > > >
> > > > > — In anyscript@yahoogroups.com, “Robin” <giggsyagami07@>
wrote:
> > > > > >
> > > > > > Hi Christian,
> > > > > >
> > > > > > I’ve zipped and posted the files in the “hiking” folder
just
> > in case
> > > > > > you want to take a look at it. Thanks.
> > > > > >
> > > > > > Regards,
> > > > > > Robin
> > > > > >
> > > > > > — In anyscript@yahoogroups.com, “AnyBody Support”
<support@>
> > > wrote:
> > > > > > >
> > > > > > > Hi Robin
> > > > > > >
> > > > > > > I will try to look into the model during the weekend…
> > > > > > >
> > > > > > > Best regards
> > > > > > > Christian, AnyBody Support
> > > > > > >
> > > > > > >
> > > > > > > — In anyscript@yahoogroups.com, “Robin”
<giggsyagami07@>
> > wrote:
> > > > > > > >
> > > > > > > > I’ve been looking at the FreePosture model in ARep
and am
> > > > trying to
> > > > > > > > set up its initial positions similar to that shown
in the
> > > > picture I
> > > > > > > > uploaded previously in “Files” under the “hiking”
folder.
> > > > > > > >
> > > > > > > > I’d like to have the pelvis rotate with respect to
the legs
> > > > similar
> > > > > > > to
> > > > > > > > doing a Sit-Up/Crunch exercise, but when I input a
value
> > to the
> > > > > > > > HipFlexion in
> > “Main.Model.HumanModel.Mannequin.PostureVel”, the
> > > > > > > lower
> > > > > > > > limbs rotate with respect to the pelvis. And when I
input a
> > > > value to
> > > > > > > > PelvisRotY, the whole body moves along with the
rotation.
> > > > > > > >
> > > > > > > > I have been trying the past 3 days to no avail. To
briefly
> > > > explain,
> > > > > > > I
> > > > > > > > removed the left and right hip drivers and then added
> > > drivers for
> > > > > > > the
> > > > > > > > right and left thigh to attach to the global
reference,
> > > > similar to
> > > > > > > the
> > > > > > > > one that says “Drivers for attaching the pelvis to
the
> global
> > > > > > > > reference system”. Then, I removed the X and Z
rotations
> > of the
> > > > > > > > RThighGroundDriver, LThighGroundDriver and
> > > PelvisGroundDriver so
> > > > > > > that
> > > > > > > > the no. of DOF = no. of contraints.
> > > > > > > >
> > > > > > > > In the end, it was able to load but when I run the
> > > > > > > > SetInitialConditions, it gave me this error message
that
> > > > > > > says “‘Study’
> > > > > > > > : Kinematic analysis failed in time step 0”. Why is
> that so?
> > > > > > > >
> > > > > > > > Am I going in the right direction? If not, any
suggestions?
> > > Would
> > > > > > > > really appreciate your kind help.
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>

Hi Robin

I am not sure what you mean when you say that you rotated the values
in the “mannequin” file to fit respectively to the new gravity?
When you aply gravity from another angle, the only thing happens is
the force(gravity) reacts on the body from another direction. The
movement you will aply will not have to change. The gravity change
decides if the model is standing, laying on his/her back or
stomach.(+/-) ok?

Where do you get the gimbal lock? I saw gimbal lock explained with an
airplane once…
If you have an airplane. It can be controlled by three references: the
pitch (angle up/down), yaw (left/right on a vertical axis) and roll
(angle left right on the horizontal axis). If the airplane heads
straight up/down, then the yaw is not possible anymore. It lost a
dimension. is this understandable?

Best regards
Christian, AnyBody Support

— In anyscript@yahoogroups.com, “Robin” <giggsyagami07@…> wrote:
>
> Hi Christian,
>
> I did some of the ideas suggested. I locked the right thigh and
> unlocked the pelvis. I also made gravity in the X direction as
> suggested and managed to get what I wanted.
>
> One thing strange is that when I made gravity in the Z direction, and
> rotate the values in the “mannequin” file to fit respectively, I get
> this gimbal lock error.
>
> I’m fine with leaving the gravity in the X direction but I’m just
> curious to know what the gimbal lock is all about. I’ve read the
> reference manual but I don’t really understand it.
>
> Regards,
> Robin
>
>
>
>
> — In anyscript@yahoogroups.com, “AnyBody Support” <support@> wrote:
> >
> > Hi Robin
> >
> > You are welcome.
> > I guess you can just lock both thighs… shouldn’t be a problem.
> > Yes JointsAndDrivers.any has the joint between the globalRefFrame and
> > the pelvis.
> >
> > You might wanna take a look in initialPositions.any as well.
> >
> > Best regards
> > Christian, AnyBody Support
> >
> > — In anyscript@yahoogroups.com, “Robin” <giggsyagami07@> wrote:
> > >
> > > Hi Christian,
> > >
> > > Thanks for all the attention.
> > >
> > > Yup, you got it right, I’ve been trying to lock the thigh. But do I
> > > lock both thighs? And I’m guessing that I have to unlock the pelvis?
> > >
> > > Where do I go to lock and unlock? Is it under “JointsAndDrivers”?
> > >
> > > Regards,
> > > Robin
> > >
> > > — In anyscript@yahoogroups.com, “AnyBody Support” <support@>
wrote:
> > > >
> > > > Hi again Robin
> > > >
> > > > Now I have a bit more time then this morning…
> > > > The model FreePostureMove is locket to the ground by the pelvis.
> > > > I guess you would rather have it locked by the thigh or maybe the
> > foot?
> > > > Instead of rotating the body, I guess you could just make
gravity in
> > > > the x-axis instead of y.
> > > > Write if you have any problems:D
> > > >
> > > > Best regards
> > > > Christian, AnyBody Support
> > > >
> > > > — In anyscript@yahoogroups.com, “AnyBody Support” <support@>
> wrote:
> > > > >
> > > > > Hi Robin
> > > > >
> > > > > Now I am awake again:D Well took a quick look at your model.
> If you
> > > > > want to make a movement, it would be easier to begin with the
> model
> > > > > FreePostureMove. There is some good examples of how you can
> make the
> > > > > movements. I can’t load your model as it is now, because of
a body
> > > > > model called NoMusclesNew.any?
> > > > > Try take a look at the FreePostureMove model and get back to me,
> > so we
> > > > > can make it work:D
> > > > >
> > > > > Best regards
> > > > > Christian, AnyBody Support
> > > > >
> > > > > — In anyscript@yahoogroups.com, “Robin” <giggsyagami07@>
wrote:
> > > > > >
> > > > > > Hi Christian,
> > > > > >
> > > > > > I’ve zipped and posted the files in the “hiking” folder just
> > in case
> > > > > > you want to take a look at it. Thanks.
> > > > > >
> > > > > > Regards,
> > > > > > Robin
> > > > > >
> > > > > > — In anyscript@yahoogroups.com, “AnyBody Support” <support@>
> > > wrote:
> > > > > > >
> > > > > > > Hi Robin
> > > > > > >
> > > > > > > I will try to look into the model during the weekend…
> > > > > > >
> > > > > > > Best regards
> > > > > > > Christian, AnyBody Support
> > > > > > >
> > > > > > >
> > > > > > > — In anyscript@yahoogroups.com, “Robin” <giggsyagami07@>
> > wrote:
> > > > > > > >
> > > > > > > > I’ve been looking at the FreePosture model in ARep and am
> > > > trying to
> > > > > > > > set up its initial positions similar to that shown in the
> > > > picture I
> > > > > > > > uploaded previously in “Files” under the “hiking” folder.
> > > > > > > >
> > > > > > > > I’d like to have the pelvis rotate with respect to the
legs
> > > > similar
> > > > > > > to
> > > > > > > > doing a Sit-Up/Crunch exercise, but when I input a value
> > to the
> > > > > > > > HipFlexion in
> > “Main.Model.HumanModel.Mannequin.PostureVel”, the
> > > > > > > lower
> > > > > > > > limbs rotate with respect to the pelvis. And when I
input a
> > > > value to
> > > > > > > > PelvisRotY, the whole body moves along with the rotation.
> > > > > > > >
> > > > > > > > I have been trying the past 3 days to no avail. To briefly
> > > > explain,
> > > > > > > I
> > > > > > > > removed the left and right hip drivers and then added
> > > drivers for
> > > > > > > the
> > > > > > > > right and left thigh to attach to the global reference,
> > > > similar to
> > > > > > > the
> > > > > > > > one that says “Drivers for attaching the pelvis to the
> global
> > > > > > > > reference system”. Then, I removed the X and Z rotations
> > of the
> > > > > > > > RThighGroundDriver, LThighGroundDriver and
> > > PelvisGroundDriver so
> > > > > > > that
> > > > > > > > the no. of DOF = no. of contraints.
> > > > > > > >
> > > > > > > > In the end, it was able to load but when I run the
> > > > > > > > SetInitialConditions, it gave me this error message that
> > > > > > > says “‘Study’
> > > > > > > > : Kinematic analysis failed in time step 0”. Why is
> that so?
> > > > > > > >
> > > > > > > > Am I going in the right direction? If not, any
suggestions?
> > > Would
> > > > > > > > really appreciate your kind help.
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>

Hi,

John, thanks for your explanation.

Christian, I suppose I have an idea of gimbal lock now. I’ll try to
play around with the model a bit more. Have you seen the picture I
uploaded to the “hiking” folder? I’d probably have to learn to put the
hiking bench into the model.

Thanks for the help so far. I’ll write again when I hit a blank.

Best Regards,
Robin

— In anyscript@yahoogroups.com, “AnyBody Support” <support@…> wrote:
>
> Hi Robin
>
> I am not sure what you mean when you say that you rotated the values
> in the “mannequin” file to fit respectively to the new gravity?
> When you aply gravity from another angle, the only thing happens is
> the force(gravity) reacts on the body from another direction. The
> movement you will aply will not have to change. The gravity change
> decides if the model is standing, laying on his/her back or
> stomach.(+/-) ok?
>
> Where do you get the gimbal lock? I saw gimbal lock explained with an
> airplane once…
> If you have an airplane. It can be controlled by three references: the
> pitch (angle up/down), yaw (left/right on a vertical axis) and roll
> (angle left right on the horizontal axis). If the airplane heads
> straight up/down, then the yaw is not possible anymore. It lost a
> dimension. is this understandable?
>
> Best regards
> Christian, AnyBody Support
>
>
> — In anyscript@yahoogroups.com, “Robin” <giggsyagami07@> wrote:
> >
> > Hi Christian,
> >
> > I did some of the ideas suggested. I locked the right thigh and
> > unlocked the pelvis. I also made gravity in the X direction as
> > suggested and managed to get what I wanted.
> >
> > One thing strange is that when I made gravity in the Z direction, and
> > rotate the values in the “mannequin” file to fit respectively, I get
> > this gimbal lock error.
> >
> > I’m fine with leaving the gravity in the X direction but I’m just
> > curious to know what the gimbal lock is all about. I’ve read the
> > reference manual but I don’t really understand it.
> >
> > Regards,
> > Robin
> >
> >
> >
> >
> > — In anyscript@yahoogroups.com, “AnyBody Support” <support@> wrote:
> > >
> > > Hi Robin
> > >
> > > You are welcome.
> > > I guess you can just lock both thighs… shouldn’t be a problem.
> > > Yes JointsAndDrivers.any has the joint between the
globalRefFrame and
> > > the pelvis.
> > >
> > > You might wanna take a look in initialPositions.any as well.
> > >
> > > Best regards
> > > Christian, AnyBody Support
> > >
> > > — In anyscript@yahoogroups.com, “Robin” <giggsyagami07@> wrote:
> > > >
> > > > Hi Christian,
> > > >
> > > > Thanks for all the attention.
> > > >
> > > > Yup, you got it right, I’ve been trying to lock the thigh. But
do I
> > > > lock both thighs? And I’m guessing that I have to unlock the
pelvis?
> > > >
> > > > Where do I go to lock and unlock? Is it under “JointsAndDrivers”?
> > > >
> > > > Regards,
> > > > Robin
> > > >
> > > > — In anyscript@yahoogroups.com, “AnyBody Support” <support@>
> wrote:
> > > > >
> > > > > Hi again Robin
> > > > >
> > > > > Now I have a bit more time then this morning…
> > > > > The model FreePostureMove is locket to the ground by the
pelvis.
> > > > > I guess you would rather have it locked by the thigh or
maybe the
> > > foot?
> > > > > Instead of rotating the body, I guess you could just make
> gravity in
> > > > > the x-axis instead of y.
> > > > > Write if you have any problems:D
> > > > >
> > > > > Best regards
> > > > > Christian, AnyBody Support
> > > > >
> > > > > — In anyscript@yahoogroups.com, “AnyBody Support” <support@>
> > wrote:
> > > > > >
> > > > > > Hi Robin
> > > > > >
> > > > > > Now I am awake again:D Well took a quick look at your model.
> > If you
> > > > > > want to make a movement, it would be easier to begin with the
> > model
> > > > > > FreePostureMove. There is some good examples of how you can
> > make the
> > > > > > movements. I can’t load your model as it is now, because of
> a body
> > > > > > model called NoMusclesNew.any?
> > > > > > Try take a look at the FreePostureMove model and get back
to me,
> > > so we
> > > > > > can make it work:D
> > > > > >
> > > > > > Best regards
> > > > > > Christian, AnyBody Support
> > > > > >
> > > > > > — In anyscript@yahoogroups.com, “Robin” <giggsyagami07@>
> wrote:
> > > > > > >
> > > > > > > Hi Christian,
> > > > > > >
> > > > > > > I’ve zipped and posted the files in the “hiking” folder just
> > > in case
> > > > > > > you want to take a look at it. Thanks.
> > > > > > >
> > > > > > > Regards,
> > > > > > > Robin
> > > > > > >
> > > > > > > — In anyscript@yahoogroups.com, “AnyBody Support”
<support@>
> > > > wrote:
> > > > > > > >
> > > > > > > > Hi Robin
> > > > > > > >
> > > > > > > > I will try to look into the model during the weekend…
> > > > > > > >
> > > > > > > > Best regards
> > > > > > > > Christian, AnyBody Support
> > > > > > > >
> > > > > > > >
> > > > > > > > — In anyscript@yahoogroups.com, “Robin” <giggsyagami07@>
> > > wrote:
> > > > > > > > >
> > > > > > > > > I’ve been looking at the FreePosture model in ARep
and am
> > > > > trying to
> > > > > > > > > set up its initial positions similar to that shown
in the
> > > > > picture I
> > > > > > > > > uploaded previously in “Files” under the “hiking”
folder.
> > > > > > > > >
> > > > > > > > > I’d like to have the pelvis rotate with respect to the
> legs
> > > > > similar
> > > > > > > > to
> > > > > > > > > doing a Sit-Up/Crunch exercise, but when I input a value
> > > to the
> > > > > > > > > HipFlexion in
> > > “Main.Model.HumanModel.Mannequin.PostureVel”, the
> > > > > > > > lower
> > > > > > > > > limbs rotate with respect to the pelvis. And when I
> input a
> > > > > value to
> > > > > > > > > PelvisRotY, the whole body moves along with the
rotation.
> > > > > > > > >
> > > > > > > > > I have been trying the past 3 days to no avail. To
briefly
> > > > > explain,
> > > > > > > > I
> > > > > > > > > removed the left and right hip drivers and then added
> > > > drivers for
> > > > > > > > the
> > > > > > > > > right and left thigh to attach to the global reference,
> > > > > similar to
> > > > > > > > the
> > > > > > > > > one that says “Drivers for attaching the pelvis to the
> > global
> > > > > > > > > reference system”. Then, I removed the X and Z rotations
> > > of the
> > > > > > > > > RThighGroundDriver, LThighGroundDriver and
> > > > PelvisGroundDriver so
> > > > > > > > that
> > > > > > > > > the no. of DOF = no. of contraints.
> > > > > > > > >
> > > > > > > > > In the end, it was able to load but when I run the
> > > > > > > > > SetInitialConditions, it gave me this error message
that
> > > > > > > > says “‘Study’
> > > > > > > > > : Kinematic analysis failed in time step 0”. Why is
> > that so?
> > > > > > > > >
> > > > > > > > > Am I going in the right direction? If not, any
> suggestions?
> > > > Would
> > > > > > > > > really appreciate your kind help.
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>

Hi,

I hope I’m not a pest but I’ve come to a dead end again. I’ll just
briefly mention what I’ve done. Hopefully it’ll be a bit of help.

  1. Made 2 new segments in the Environment file to represent the hiking
    bench and its strap.

  2. Created 6 new nodes. 1 each in the thighs, shanks and feet. I want
    to attach these parts to the segments - bench and strap. They are at
    the bottom of the JointsAndDrivers file.

  3. Made some joints and drivers, in the JointsAndDrivers file, for the
    attachments of the parts mentioned above.

  4. I also unlocked the Right Thigh in the JointsAndDrivers file.

When I try to run the “set initial conditions”, I get a response that
gave a lot of warning. I’ve copied part of it and pasted it below:

‘Study’ : Model is kinematically indeterminate : Position analysis
failed : 2 unsolvable constraint(s) found

How do I find out which are the unsolvable constraints?
Or have I already gone in the wrong direction? Because I’m not very
sure what joints to use to attach the thigh to the bench.

I will uploaded my work in the hiking folder in case you might want to
take a look at it.

Thanks in advance.

Best Regards,
Robin

— In anyscript@yahoogroups.com, “Robin” <giggsyagami07@…> wrote:
>
> Hi,
>
> John, thanks for your explanation.
>
> Christian, I suppose I have an idea of gimbal lock now. I’ll try to
> play around with the model a bit more. Have you seen the picture I
> uploaded to the “hiking” folder? I’d probably have to learn to put the
> hiking bench into the model.
>
> Thanks for the help so far. I’ll write again when I hit a blank.
>
> Best Regards,
> Robin