Giter VIP home page Giter VIP logo

muscleredundancysolver's People

Contributors

athatar avatar dgupta7 avatar friedldegroote avatar kuleuvenneuromechanics avatar maartenafschrift avatar tomvanwouwe1992 avatar vdb-bram avatar wannesswinnen avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

muscleredundancysolver's Issues

Functional overview

INPUT

  • OpenSim model
  • List of inverse kinematics (.sto files)
  • List of muscle fiber length data (.sto files)
  • Optional: List of EMG (.sto files)

SETTINGS

  • Parameters to estimate: only tendon stiffness -- only slack length & optimal fiber length -- all previous
  • For which muscles to couple activations
  • Type of coupling (waveform or maximal difference)
  • Bounds on parameters (tendon stiffness and/or optimal fiber length)

CONSTRAINTS

  • Track ID torques
  • Bounds on parameters (provided)
  • Coupling between muscles activations (waveform or maximal difference)
  • Coupling between bounds optimal fiber length and bounds slack length (Antoine?)

COST FUNCTION

  • Reserve actuators (normalized; /dof)
  • EMG tracking ((act_exp - act_sim); /nMuscles_EMG)
  • US tracking (normalise (lm_exp-lm_sim)/(lm_opt_generic); /nMuscles_tracked)
  • Effort (activations; /nMuscles)
  • Regularization

Muscle velocity in rigid tendon model fix

Now in the code we are using vMTtilde as vMtilde, and they are not equal if we consider the pennation angle.

Line 17 in HillModel_RigidTendon.m should be updated by:
vM = vMT.*cos_alpha; % here vT = 0
vMtilde = vM./lMopt;

Line 22 should be updated by:
[FMpas,FMactFL,FMactFV] = getForceLengthVelocityProperties(lMtilde,vMtilde,vMmax);

List of warnings to include

  • Warning/error if not all provided names of dofs and muscles can be retrieved from the different motion files
  • Time vectors of different motionfiles are not consistent

New fork for additional changes

Hey, I have forked the repository so I can continue making additional changes without risking the main code.

So far, I have allowed pennation angle to be optimised as I think this may be the reason the fibre lengths are ending up approximiatly 6x normal. Currently carrying out testing.

In addition, I have attempted to solve the sqrt(-ve) problem by making lM.^2 - w.^2 a constraint that >0. Might not be the right solution but I was having issues before hand.

I have also had to increase lMtilde_max back to 1.8 as 1.5 was leading to a infeasable solution.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.