Hello,
As the title says as I am developing a model in matlab I was wondering if there was a way to update the same visualiser window rather than opening a new one each time I run the code.
Best wishes,
Rory
Search found 28 matches
- Sat Mar 06, 2021 3:16 am
- Forum: OpenSim
- Topic: Matlab - Update same visualiser rather than start a new one
- Replies: 1
- Views: 162
- Wed Mar 03, 2021 3:19 am
- Forum: OpenSim
- Topic: Human Model Interacting with My Model
- Replies: 3
- Views: 320
Re: Human Model Interacting with My Model
Hi, Don't know if you worked this out already. But I did the following: Add the intended model as a base (here Arnoldetal2010_2Legs_50pct_v2.1.osim) Import bodies and joints from the model so you can access them Create a joint between the model's body and your body or set up an interaction %% Instan...
- Wed Mar 03, 2021 3:06 am
- Forum: OpenSim
- Topic: How do I set the transform of geometry within body?
- Replies: 2
- Views: 305
Re: How do I set the transform of geometry within body?
Geometry is just for visualisation so if you did add all the geometry to the same body it would be easier to merge them separately into the same .vtp or .stl file with the transformations you want, then add a single .vtp to the body. If you are wanting movement between them and/or want to add them i...
- Tue Mar 02, 2021 11:08 am
- Forum: OpenSim
- Topic: Error in creating a visible object for GUI In Matlab
- Replies: 4
- Views: 477
Re: Error in creating a visible object for GUI In Matlab
Hi, Thank you for your quick response. I have produced a piece of sample code that isolates the issue (below). Still getting the error: Mesh Tube.STL not connected to model..ignoring From debugging it appears that the error occurs when model.addBody(tube) is used. From my previous post in this threa...
- Mon Mar 01, 2021 10:52 am
- Forum: OpenSim
- Topic: Two problems with .stl files
- Replies: 2
- Views: 381
Re: Two problems with .stl files
Hi,
Did you find a solution to the error message?
Did you find a solution to the error message?
Cheers,Mesh Exo2.STL not connected to model..ignoring
- Mon Mar 01, 2021 10:46 am
- Forum: OpenSim
- Topic: Error in creating a visible object for GUI In Matlab
- Replies: 4
- Views: 477
Re: Error in creating a visible object for GUI In Matlab
Hi, I have come across the same error. Mesh SimpHip.STL not connected to model..ignoring Based on the previous response I looked at OpenSimCreateTugOfWarModel.m and it looks like it only flags the above error when using a mesh. In the visualiser, the mech does show up but I still get the error. Open...
- Tue Dec 01, 2020 9:45 am
- Forum: OpenSim
- Topic: OpenSim STL file Import
- Replies: 4
- Views: 1124
Re: OpenSim STL file Import
I used the following to scale the geometry. I'm not sure why it wasn't the right size since the CAD model is set to meters and the dimensions should match. That said this works and the geometry doesn't impact the model so it should be fine. ModelName.attachGeometry(Mesh('FileName.STL')); ModelName.s...
- Thu Nov 26, 2020 11:15 am
- Forum: OpenSim
- Topic: OpenSim STL file Import
- Replies: 4
- Views: 1124
Re: OpenSim STL file Import
Hi I have been trying to do the same thing, based on some digging and the above response I have got this code for matlab. %% Mesh %Define the mesh name meshPath = 'FileName.STL'; % If the mesh isn't in the Model folder, make a copy. Otherwise mesh will not be usable when Model is opened in the OpenS...