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.
Moving Path Point
- Nicholas Bianco
- Posts: 1050
- Joined: Thu Oct 04, 2012 8:09 pm
Re: Moving Path Point
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
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
- Maria Cordero
- Posts: 3
- Joined: Mon Jun 17, 2024 12:38 am
Re: Moving Path Point
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.
Thank you.
Best regards,
Maria C.
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();
Best regards,
Maria C.
- Nicholas Bianco
- Posts: 1050
- Joined: Thu Oct 04, 2012 8:09 pm
Re: Moving Path Point
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:
You might need to modify that code snippet to make it work, but that should be the gist.
Best,
Nick
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);
Best,
Nick