Page 2 of 2

Re: Visualization a model

Posted: Sat May 16, 2020 6:44 am
by tkuchida
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.

Re: Visualization a model

Posted: Sun May 17, 2020 12:24 am
by hamed1994
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)

Re: Visualization a model

Posted: Mon May 18, 2020 11:44 am
by hamed1994
Can anyone help me with this please ?

Re: Visualization a model

Posted: Mon May 18, 2020 2:29 pm
by aymanh
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

Re: Visualization a model

Posted: Tue May 19, 2020 11:37 am
by hamed1994
thank you so much.

Re: Visualization a model

Posted: Wed May 20, 2020 2:12 am
by hamed1994
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 .

Re: Visualization a model

Posted: Sun May 24, 2020 8:03 am
by hamed1994
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 262 times
I'm kinda confused actually. can you help me please?

thank you

Re: Visualization a model

Posted: Thu May 28, 2020 12:26 am
by hamed1994
could you help me with this please ?

thank you

Re: Visualization a model

Posted: Mon Jun 29, 2020 10:49 am
by hamed1994
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