I am trying using MotionCap from Vicon C3D in AnyBody for an UpperLimb Model. My goal actually is to auto position and auto scale from the c3d data. Autoposition is working, I modified your AutoPelvPos function for my need, so it can function with different c3d files. My model have 4 markers on thorax, 3 on shoulder,
6 on humeral, 2 on elbow, 2 on ulna, 2 on radius, 2 on wrist, 3 on hand
Like in this topic UpperLimb MoCap I used softdrivers to run my models. And disabled the drivers for segments I have markers on.
// Softdrivers fuer Segmente (Pelvis, Kopf), die keine Marker besitzen #define BM_MANNEQUIN_DRIVER_DEFAULT ON // Oberarm #define BM_MANNEQUIN_DRIVER_GLENOHUMERAL_ABDUCTION_RIGHT OFF #define BM_MANNEQUIN_DRIVER_GLENOHUMERAL_FLEXION_RIGHT OFF #define BM_MANNEQUIN_DRIVER_GLENOHUMERAL_EXTERNAL_ROTATION_RIGHT OFF // Ellbogengelenk #define BM_MANNEQUIN_DRIVER_ELBOW_FLEXION_RIGHT OFF #define BM_MANNEQUIN_DRIVER_ELBOW_PRONATION_RIGHT OFF // Handgelenk #define BM_MANNEQUIN_DRIVER_WRIST_FLEXION_RIGHT OFF #define BM_MANNEQUIN_DRIVER_WRIST_ABDUCTION_RIGHT OFF #define BM_MANNEQUIN_DRIVER_HAND_RIGHT OFF
Its working but right now is that the pelvis and thorax are slightly rotating when i run analysis. It seems I am missing some drivers for that. I tried to fixed it to a ground point, but that would only worked with some of the c3d files.
For scaling I read your tutorial and it seems I cant use SCALING_XYZ because I don't have lower body (foot) and it have (in the new repository) dependency to scaling. I have the mass and height and the c3d markers. I use SCALING_LENGTHMASS instead.
I activated ConstructModelOnOff = On; to have the scaling with the c3d. If I change the mass it change the scaling too, but if I change the height nothing happens. Is it because I use SCALING_LENGTHMASS? Would you recommend another scaling system?
And I have another 2 questions:
- Is it possible to create an IF-function to switch between left and right handed people with the same model? i have some c3d with right and with left handed persons. Or is it better to do 2 AnyBody models for left and right handed persons?
- I read about using python with AnyBody. Is it possible to program an UI for loading the c3d model and giving out the diagrams for joint angle and show the model view too? I am not sure how good the framework from AnyBody for python is. It is just a thought myself.
I would like to upload my model, but it seems I can't because I am a new member.
Thank you in advance and greetings