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.Undefined variable "shoulder" or class "shoulder.getCoordinate".
Visualization a model
- Thomas Uchida
- Posts: 1790
- Joined: Wed May 16, 2012 11:40 am
Re: Visualization a model
- hamed kouchebaghi
- Posts: 47
- Joined: Thu Nov 14, 2019 12:11 pm
Re: Visualization a model
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)
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)
- hamed kouchebaghi
- Posts: 47
- Joined: Thu Nov 14, 2019 12:11 pm
Re: Visualization a model
Can anyone help me with this please ?
- Ayman Habib
- Posts: 2242
- Joined: Fri Apr 01, 2005 12:24 pm
Re: Visualization a model
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
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
- hamed kouchebaghi
- Posts: 47
- Joined: Thu Nov 14, 2019 12:11 pm
Re: Visualization a model
thank you so much.
- hamed kouchebaghi
- Posts: 47
- Joined: Thu Nov 14, 2019 12:11 pm
Re: Visualization a model
sorry how can i define variable "shoulder" ?tkuchida wrote: ↑Sat May 16, 2020 6:44 amThe "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.Undefined variable "shoulder" or class "shoulder.getCoordinate".
I could't do it .
- hamed kouchebaghi
- Posts: 47
- Joined: Thu Nov 14, 2019 12:11 pm
Re: Visualization a model
hello hope you having a good timeaymanh wrote: ↑Mon May 18, 2020 2:29 pmHello,
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
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. I'm kinda confused actually. can you help me please?
thank you
- hamed kouchebaghi
- Posts: 47
- Joined: Thu Nov 14, 2019 12:11 pm
Re: Visualization a model
could you help me with this please ?
thank you
thank you
- hamed kouchebaghi
- Posts: 47
- Joined: Thu Nov 14, 2019 12:11 pm
Re: Visualization a model
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
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