new muscle class in version 2.2 or later
Posted: Fri Oct 07, 2011 8:50 am
hello
at the version 1.x, I could make new muscle class taking after [muscle.h].
however, if I try same thing with version 2.2, it gives me error
like STATE_ACTIVATION' : dllimport definition problem of static data member
in previous version, it was not necessary to use [OSIMACTUATORS_API]. but now, I think it is necessary.
I tried without [OSIMACTUATORS_API], but the state seems not be initialized in this case.
and if I use [OSIMACTUATORS_API], the declaration of existing state seems making problem.
in fact, liuthelenmuscle class tells us how to make new class, but it is adding only new states, not changing the dynamics of hill model itself.
but I would like to modify the dynamics then I need to make new class taking after [muscle.h] like thelenmodel.
could you advise me how to avoid such error?
at the time of version 1.x, even without OSIMACTUATORS_API, and making new class like thelen from muscle.h, it worked.
and I just want to do same thing.
thank you
at the version 1.x, I could make new muscle class taking after [muscle.h].
however, if I try same thing with version 2.2, it gives me error
like STATE_ACTIVATION' : dllimport definition problem of static data member
in previous version, it was not necessary to use [OSIMACTUATORS_API]. but now, I think it is necessary.
I tried without [OSIMACTUATORS_API], but the state seems not be initialized in this case.
and if I use [OSIMACTUATORS_API], the declaration of existing state seems making problem.
in fact, liuthelenmuscle class tells us how to make new class, but it is adding only new states, not changing the dynamics of hill model itself.
but I would like to modify the dynamics then I need to make new class taking after [muscle.h] like thelenmodel.
could you advise me how to avoid such error?
at the time of version 1.x, even without OSIMACTUATORS_API, and making new class like thelen from muscle.h, it worked.
and I just want to do same thing.
thank you