Forums Anyscript.org  

Go Back   Forums Anyscript.org > Self-Supported Forum > AnyBody Model Repository

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 03-07-2016, 09:46 AM
E-Hazrati E-Hazrati is offline
Junior Member
 
Join Date: Jul 2015
Posts: 6
Default BikeModel3D

I am using the BikeModel3D. I changed the position of the crank and controlled the foot-pedal angle from the driver of the "AnyKinEqFourierDriver PedalRRotationFourier ". But when the crank for example set to 0.66 and 0.38 m, respectively saddlePos and saddleHeight, the model is run but the knees move to the lateral side. How can I control the knee?
Reply With Quote
  #2  
Old 03-07-2016, 12:05 PM
toerholm's Avatar
toerholm toerholm is offline
AnyBody Support
 
Join Date: Feb 2009
Posts: 865
Default

Hi

The feet are attached to the pedals so it forms a close loop mechanism.
If you change the saddel position it may result in that the legs moves to the sides, i guess.

It would be possible to constraint the legs from not moving sideways but then you would have to remove other constraints in the model, to keep the number of kinematic constraints unchanged.

Please upload the model displaying the problem this will allow us to look at it.

Best regards
Søren
__________________
TIP: How to save and load results.
http://wiki.anyscript.org/index.php/All_about_AnyBody_Modeling_System#Save_Load_and_Re play_Results

Subscribe to the forums, click the 'Forum Tools' link above the list of threads then select 'Subscribe to Forum'. You will then have the option to choose the subscription mode for this forum and get an email automatically.
Reply With Quote
  #3  
Old 03-08-2016, 09:56 AM
E-Hazrati E-Hazrati is offline
Junior Member
 
Join Date: Jul 2015
Posts: 6
Default

Hi,
Thanks for the instant attention. I upload the model as you requested. In addition to the before-mentioned problem, when the crank is set (for example) in a position with 0.7 and 0.25 m coordinates, respectively for the saddlePos and the saddleHeight, the model does not run maybe due to the unwanted hip internal/external rotation.


BikeFrameAndWheels.any

BikeFrameGroundConnection.any

BikeLegConnection.any

BikeModel3D.main.any

DrawSettings.any

InitialPositions.any

InitialPositionsBike.any

JointsAndDrivers.any

Mannequin.any

MannequinValuesFromModel.any

Scaling.any
Reply With Quote
  #4  
Old 03-08-2016, 10:53 AM
msshourijeh msshourijeh is offline
Member
 
Join Date: Oct 2015
Posts: 41
Default

Hi,

Two sets of drivers have effect and you can play around with them to get it work for your case as emboldened below:
1)
AnyKinEqSimpleDriver DatumRot = {
AnyKinRotational rot = {
AnyRefFrame &Datum = ..Datum;
Type = RotVector;
};
MeasureOrganizer = {1,2};
DriverPos = {0,0};
DriverVel = {0,0};
};
for both left and right legs.

2)
AnyKinEqFourierDriver PedalLRotationFourier ={
AnyKinMeasureOrg &Jnt = .FootLMovement;
Type = CosSin;
AnyVar a0 = -0.3797-0.25*pi;
AnyVar a1 = 0.0205;
AnyVar b1 = -0.3393;
AnyVar a2 = 0.004906;
AnyVar b2 = 0.03654;
AnyVar w = 7.681;
Freq = ..BikeParameters.Cadence/60;
A = { {a0+0.5*pi,a1,a2}};
B = {{0,b1,b2}};
Reaction.Type = {Off};
};
};

For your defined saddle location, if you choose a0 = -0.3797-0.25*pi, this will correct the model posture. I should note that these two sets of drivers were defined for a range of postures that your case seems to be a little bit extreme (based on the saddle location) and out of optimal range for the drivers and for that reason, you need to change the values.

Please kindly upload your model files as a single zip file next time.

Hope it helps.

Best regards,
Mohammad S. Shourijeh, PhD
AnyBody Team
Reply With Quote
  #5  
Old 03-09-2016, 08:40 AM
E-Hazrati E-Hazrati is offline
Junior Member
 
Join Date: Jul 2015
Posts: 6
Default

Hi,
Thanks for your reply. I changed the values as you said. When I run the model in a position with 0.66 and 0.38 m coordinates, respectively for the saddlePos and the saddleHeight and check the knee joint coordinate, that varies 0.11-0.23 m in z axis. I guess, if I can constraint the hip external/internal rotation, legs do not move sideway. Can you help me to constraint the legs from not moving sideway?


Best regards
Hazrati
Reply With Quote
  #6  
Old 04-01-2016, 05:28 PM
msshourijeh msshourijeh is offline
Member
 
Join Date: Oct 2015
Posts: 41
Default

Hi,

Sorry for the slow process.
The quickest way to do it would be to change one of the hard constraints on the foot to a soft constraint and adding a soft constraint on the z-direction movement of the knee joint. You will also need to change the kinematics solver to over-determinate (Kinematics.SolverType = KinSolOverDeterminate).

Hope it helps.

Best regards,
Mohammad
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 06:11 AM.