Get location of a muscle path point as a Vec3 Type - Doesn't work?!
Posted: Mon May 15, 2023 7:15 am
Hi Everyone,
I'm trying access the location of a path point of a muscle in a the parent body which is an abstract property. I use the following lines of code
Whenever I try to run, I get these errors.
Any Idea how to solve this issue?
Thanks in Advance!
I'm trying access the location of a path point of a muscle in a the parent body which is an abstract property. I use the following lines of code
Code: Select all
OpenSim::AbstractProperty* loc = osimModel.getMuscles().get(1).getGeometryPath().getPathPointSet().get(1).getPropertyByIndex(2).clone(); //Get Location In Body
loc->getValue<Vec3>(); //Get value as Vec3
Code: Select all
1>customizeModel.obj : error LNK2019: unresolved external symbol "public: class OpenSim::Array<class SimTK::Vec<3,double,1> > const & __cdecl OpenSim::Property_Deprecated::getValueArray<class SimTK::Vec<3,double,1> >(void)const " (??$getValueArray@V?$Vec@$02N$00@SimTK@@@Property_Deprecated@OpenSim@@QEBAAEBV?$Array@V?$Vec@$02N$00@SimTK@@@1@XZ) referenced in function "public: class SimTK::Vec<3,double,1> const & __cdecl OpenSim::AbstractProperty::getValue<class SimTK::Vec<3,double,1> >(int)const " (??$getValue@V?$Vec@$02N$00@SimTK@@@AbstractProperty@OpenSim@@QEBAAEBV?$Vec@$02N$00@SimTK@@H@Z)
1>customizeModel.obj : error LNK2019: unresolved external symbol "public: class SimTK::Vec<3,double,1> const & __cdecl OpenSim::Property_Deprecated::getValue<class SimTK::Vec<3,double,1> >(void)const " (??$getValue@V?$Vec@$02N$00@SimTK@@@Property_Deprecated@OpenSim@@QEBAAEBV?$Vec@$02N$00@SimTK@@XZ) referenced in function "public: class SimTK::Vec<3,double,1> const & __cdecl OpenSim::AbstractProperty::getValue<class SimTK::Vec<3,double,1> >(int)const " (??$getValue@V?$Vec@$02N$00@SimTK@@@AbstractProperty@OpenSim@@QEBAAEBV?$Vec@$02N$00@SimTK@@H@Z)
: fatal error LNK1120: 2 unresolved externals
Thanks in Advance!