opensim 3.3 C++/ add marker problem
Posted: Mon Aug 21, 2017 1:42 am
Hi, I'm trying to use the existing lumbar spine model at the opensim project using opensim 3.3 C++ api.
And I'm new to the opensim api.
I have a problem to add a marker to markerset.
I tried to put the marker to the "lumbar1" and it wasn't working.
Please help me.
And I'm new to the opensim api.
I have a problem to add a marker to markerset.
I tried to put the marker to the "lumbar1" and it wasn't working.
Code: Select all
MarkerSet markerSet = osimModel.getMarkerSet();
const BodySet& bodySet = osimModel.getBodySet();
OpenSim::Body l1 = bodySet.get("lumbar1");
const double offset1[] = { 0.5,0.5,0.5 };
Marker& m1 = *markerSet.addMarker("testMarker1", offset1, l1);
osimModel.updateMarkerSet(markerSet);