Visualization a model

Provide easy-to-use, extensible software for modeling, simulating, controlling, and analyzing the neuromusculoskeletal system.
User avatar
Thomas Uchida
Posts: 1777
Joined: Wed May 16, 2012 11:40 am

Re: Visualization a model

Post by Thomas Uchida » Sat May 16, 2020 6:44 am

Undefined variable "shoulder" or class "shoulder.getCoordinate".
The "shoulder" variable hasn't been defined. You can either define the variable (a reference to the joint), or comment out that line in the code if you don't want to change the joint angle. If you are going to be using the Matlab interface for your work, I suggest reading the "Scripting" section of the documentation on Confluence (https://simtk-confluence.stanford.edu/d ... /Scripting) so you can write code on your own.

User avatar
hamed kouchebaghi
Posts: 47
Joined: Thu Nov 14, 2019 12:11 pm

Re: Visualization a model

Post by hamed kouchebaghi » Sun May 17, 2020 12:24 am

what could be causing this error?
Java exception occurred:
java.lang.RuntimeException: SimTK Exception thrown at Xml.cpp:820:
Error detected by Simbody method Xml::Element::getAs(): The given Node was not an Element; it is a NoNode. Use
Element::isA() to check before calling Element::getAs().
(Required condition 'isA(node)' was not met.)


at org.opensim.modeling.opensimSimulationJNI.new_Model__SWIG_1(Native Method)

at org.opensim.modeling.Model.<init>(Model.java:783)

User avatar
hamed kouchebaghi
Posts: 47
Joined: Thu Nov 14, 2019 12:11 pm

Re: Visualization a model

Post by hamed kouchebaghi » Mon May 18, 2020 11:44 am

Can anyone help me with this please ?

User avatar
Ayman Habib
Posts: 2235
Joined: Fri Apr 01, 2005 12:24 pm

Re: Visualization a model

Post by Ayman Habib » Mon May 18, 2020 2:29 pm

Hello,

The error indicates that the file you used to create the model is not a valid xml model file, that could be due to using non .osim file altogether or editing the file by hand causing a syntax error in the XML (mismatched tags or typos etc.)

Hope this helps,
-Ayman

User avatar
hamed kouchebaghi
Posts: 47
Joined: Thu Nov 14, 2019 12:11 pm

Re: Visualization a model

Post by hamed kouchebaghi » Tue May 19, 2020 11:37 am

thank you so much.

User avatar
hamed kouchebaghi
Posts: 47
Joined: Thu Nov 14, 2019 12:11 pm

Re: Visualization a model

Post by hamed kouchebaghi » Wed May 20, 2020 2:12 am

tkuchida wrote:
Sat May 16, 2020 6:44 am
Undefined variable "shoulder" or class "shoulder.getCoordinate".
The "shoulder" variable hasn't been defined. You can either define the variable (a reference to the joint), or comment out that line in the code if you don't want to change the joint angle. If you are going to be using the Matlab interface for your work, I suggest reading the "Scripting" section of the documentation on Confluence (https://simtk-confluence.stanford.edu/d ... /Scripting) so you can write code on your own.
sorry how can i define variable "shoulder" ?
I could't do it .

User avatar
hamed kouchebaghi
Posts: 47
Joined: Thu Nov 14, 2019 12:11 pm

Re: Visualization a model

Post by hamed kouchebaghi » Sun May 24, 2020 8:03 am

aymanh wrote:
Mon May 18, 2020 2:29 pm
Hello,

The error indicates that the file you used to create the model is not a valid xml model file, that could be due to using non .osim file altogether or editing the file by hand causing a syntax error in the XML (mismatched tags or typos etc.)

Hope this helps,
-Ayman
hello hope you having a good time

Does the "arm26" model which is visualized through MATLAB look like the one in OpenSim ?
and second when I run the .osim file in OpenSim -as you see below- I won't face any problems, I think there can't be any typos in the file cause I didn't edited that.
Screenshot (34).png
Screenshot (34).png (745.1 KiB) Viewed 254 times
I'm kinda confused actually. can you help me please?

thank you

User avatar
hamed kouchebaghi
Posts: 47
Joined: Thu Nov 14, 2019 12:11 pm

Re: Visualization a model

Post by hamed kouchebaghi » Thu May 28, 2020 12:26 am

could you help me with this please ?

thank you

User avatar
hamed kouchebaghi
Posts: 47
Joined: Thu Nov 14, 2019 12:11 pm

Re: Visualization a model

Post by hamed kouchebaghi » Mon Jun 29, 2020 10:49 am

Hello

Is there any pdf file or something that could help me with my issue that I'm facing. I work on my master thesis but there is no progress with it. I want to import and visualize arm26 through MATLAB (the problem I've been trying to solve recently) and then I will add a controller to control the arm movement. that's the all thing I want to do.

I'll be thankful if anyone could help
Hamed

POST REPLY