I came across this issue when calling markersRef = osim.MarkersReference('somethig.trc', markerWeights)
Code: Select all
Traceback (most recent call last):
File "C:/Users/12833/Documents/Proj. OpenSim/Estudo_Isabela_D197748_G29D21LN/analiseMarcha.py", line 738, in <module>
simGait("tracking")
File "C:/Users/12833/Documents/Proj. OpenSim/Estudo_Isabela_D197748_G29D21LN/analiseMarcha.py", line 693, in simGait
solution = gaitTrackingMarkers(listParameters, parmDict, model, "sim" + str(count).zfill(2), 0, path)
File "C:/Users/12833/Documents/Proj. OpenSim/Estudo_Isabela_D197748_G29D21LN/analiseMarcha.py", line 413, in gaitTrackingMarkers
markersRef = osim.MarkersReference(parameters[parmDict['markerFile']], markerWeights)
File "C:\Anaconda3\envs\opensim42\lib\site-packages\opensim-4.2_2021_03_12_fcedec9-py3.7.egg\opensim\simulation.py", line 73841, in __init__
this = _simulation.new_MarkersReference(*args)
NotImplementedError: Wrong number or type of arguments for overloaded function 'new_MarkersReference'.
Possible C/C++ prototypes are:
OpenSim::MarkersReference::MarkersReference()
OpenSim::MarkersReference::MarkersReference(std::string const &,OpenSim::Set< OpenSim::MarkerWeight > const &,OpenSim::Units)
OpenSim::MarkersReference::MarkersReference(std::string const &,OpenSim::Set< OpenSim::MarkerWeight > const &)
OpenSim::MarkersReference::MarkersReference(OpenSim::TimeSeriesTable_< SimTK::Vec3 > const &,OpenSim::Set< OpenSim::MarkerWeight > const &,OpenSim::Units)
OpenSim::MarkersReference::MarkersReference(OpenSim::TimeSeriesTable_< SimTK::Vec3 > const &,OpenSim::Set< OpenSim::MarkerWeight > const &)
Code: Select all
# TODO fails when MarkersReference is passed to MocoMarkerTrackingGoal
# trackedSolution = solveMarkerTracking(markersRef, trackedSolution)
Any help?
Best regards.
Carlos