Moving Path Point

Provide easy-to-use, extensible software for modeling, simulating, controlling, and analyzing the neuromusculoskeletal system.
POST REPLY
User avatar
Maria Cordero
Posts: 3
Joined: Mon Jun 17, 2024 12:38 am

Moving Path Point

Post by Maria Cordero » Wed Nov 06, 2024 1:13 am

Hello,

I've been trying to implement Moving Path Points in my model through Matlab, but haven't been able to, despite checking the documentation. I noticed that for the other kinds of AbstractPathPoints, I can set them up to a Geometry Path through a addPathPoint/AddPathWrap command. Is there something similar to implement them, or is the object not supported anymore?

Thank you,
Maria C.

Tags:

User avatar
Nicholas Bianco
Posts: 1050
Joined: Thu Oct 04, 2012 8:09 pm

Re: Moving Path Point

Post by Nicholas Bianco » Fri Nov 15, 2024 8:31 pm

Hi Maria,

If you could provide a minimum working example that reproduces the errors that you are encountering, along with the error messages, then we can assist with debugging your issue.

Best,
Nick

User avatar
Maria Cordero
Posts: 3
Joined: Mon Jun 17, 2024 12:38 am

Re: Moving Path Point

Post by Maria Cordero » Mon Nov 18, 2024 1:46 am

Hi Nicholas,

Thank you for your reply. For normal PathPoints, I've been adding them with addNewPathPoint, as seen in the following lines, but I haven't found a command that lets me do the same for MovingPathPoint. I was able to set them up, but not attach them to the Muscle.

Code: Select all

LatissimusDorsi_S.addNewPathPoint('LatDorsiSOrigin', thorax, Vec3(-0.1008796560238172, -0.11663128441390257, 0.0017099582619030595));
LatissimusDorsi_S.addNewPathPoint('LatDorsiSInsertion', thorax, Vec3(-0.10767983506326086, -0.20544206978291463, 0.026229399594655183));
LatissimusDorsi_S.addNewPathPoint('LatDorsiSInsertion5', humerus, Vec3(0.0058799957641284184, -0.019040131776404189, -0.0034499858058475164));

%MOVING POINT
LatDorsiSOMPP = MovingPathPoint();
LatDorsiSOMPP.connectSocket_parent_frame(thorax);
LatDorsiSOMPP.connectSocket_x_coordinate(shoulder_elv);
LatDorsiSOMPP.connectSocket_y_coordinate(shoulder_elv);
LatDorsiSOMPP.connectSocket_z_coordinate(shoulder_elv);
model.finalizeConnections();
Thank you.

Best regards,
Maria C.

User avatar
Nicholas Bianco
Posts: 1050
Joined: Thu Oct 04, 2012 8:09 pm

Re: Moving Path Point

Post by Nicholas Bianco » Tue Nov 19, 2024 4:13 pm

Hi Maria,

I see. Yes, unfortunately we do not have a method similar to addNewPathPoint for MovingPathPoints in Muscle. However, since you've already constructed the MovingPathPoint yourself, you should be able to add it to the model by updating the muscle path's PathPointSet:

Code: Select all

pathPointSet = LatissimusDorsi_S.updGeometryPath().updPathPointSet();
numPathPoints = pathPointSet.getSize();
pathPointSet.insert(numPathPoints, LatDorsiSOMPP);
You might need to modify that code snippet to make it work, but that should be the gist.

Best,
Nick

POST REPLY