MATLAB was something wrong when i used the function SerialLink.teach.

392 views
Skip to first unread message

ech...@gmail.com

unread,
Mar 30, 2015, 12:06:36 AM3/30/15
to robotics...@googlegroups.com
MATLAB was something wrong when i used the function SerialLink.teach. Initially I used the Matlab2012 and my file could be run successfully. However, the next time I run the same file, Matlab was closed unexpectly. When I delete the function, the file can run successfully again. Firstly, I guess this bug might be cause by the vision of my Matlab.  I  tried to change the vision to Matlab 2014 but it still doesn't work. I can't use SerialLink.teach and I'm quite worry about it. Looking forward to your reply.
QQ截图20150329205054.png

Peter Corke

unread,
Mar 30, 2015, 6:09:06 AM3/30/15
to robotics...@googlegroups.com
Send more details so somebody else can reproduce the problem.

peter
On 29 Mar 2015, at 11:58 pm, ech...@gmail.com wrote:

MATLAB was something wrong when i used the function SerialLink.teach. Initially I used the Matlab2012 and my file could be run successfully. However, the next time I run the same file, Matlab was closed unexpectly. When I delete the function, the file can run successfully again. Firstly, I guess this bug might be cause by the vision of my Matlab.  I  tried to change the vision to Matlab 2014 but it still doesn't work. I can't use SerialLink.teach and I'm quite worry about it. Looking forward to your reply.

--
You received this message because you are subscribed to the Google Groups "Robotics & Machine Vision Toolboxes" group.
To unsubscribe from this group and stop receiving emails from it, send an email to robotics-tool-...@googlegroups.com.
To post to this group, send email to robotics...@googlegroups.com.
Visit this group at http://groups.google.com/group/robotics-tool-box.
For more options, visit https://groups.google.com/d/optout.
<QQ截图20150329205054.png>

Erik van Oene

unread,
Apr 1, 2015, 9:31:38 AM4/1/15
to robotics...@googlegroups.com
Hi,

I have seen this error several times also...
My guess is that is has something to do with the memory usage of the teach command in matlab. I also encountered this error using the animate command in a for loop.

Example:
>> mdl_puma560
>> p560.teach

works fine and is only using 512 MB of RAM of my compute,r which is mainly matlab itself as this is about 500MB after a fresh startup.
However the following commands use 2448 MB of RAM meaning nearly 2GB is used by the teach command for this particular model (the phantomx).

>> mdl_phantomx
>> px.teach

On my laptop this produces a crash, though my workstation is able to handle this teach command without a crash, though it takes quite long to pop-up the window. See the attachments of profile reports on both runs.

I guess there is some memory leakage due to some property in the seriallink object.
My suggestion is: Try to do the same with the puma560 model and see if this produces the crash or not and check the memory usage. After that do the same with the phantomx and post your findings here.

Erik


Op maandag 30 maart 2015 12:09:06 UTC+2 schreef Peter Corke:
phantom_teach.JPG
puma560_teach.JPG

Peter.I.corke

unread,
Apr 1, 2015, 3:52:00 PM4/1/15
to robotics...@googlegroups.com
Turn off the floor tiles for this model!

The default tile size is 0.1 but this model uses units of mm so the floor dimension is large and there are a squillion tiles

Peter.

Sent from my iPhone
<phantom_teach.JPG>
<puma560_teach.JPG>

Erik van Oene

unread,
Apr 2, 2015, 12:49:02 PM4/2/15
to robotics...@googlegroups.com
Thanks Peter,

This perfectly solved my problem. I never looked deep into this phenomena as it was no big deal for me at the moment, but this is indeed cause the memory raise. 
Why didn't I see this myself, the answer was literally on the floor in front of me!!

Hopefully this solves the error of questioner also. Please let us know.

Erik

Op woensdag 1 april 2015 21:52:00 UTC+2 schreef Peter Corke:

vpr...@gmail.com

unread,
Sep 22, 2015, 3:53:08 PM9/22/15
to Robotics & Machine Vision Toolboxes, ech...@gmail.com
Hello Peter,

Iam experiencing a similar issue now, as the one mentioned in this post. The command p1.teach command worked well the first time i executed it... but when i ran it the next time, it began givin me errors. i.e the matlab got closed. Can you please help me resolve it?. i've attached the snap for your reference


Thanks
Praveen
matlab error.PNG

fatem...@gmail.com

unread,
Feb 4, 2016, 3:51:55 PM2/4/16
to Robotics & Machine Vision Toolboxes

when i use teach() , my matlab began giving me this error :Matlab has encounted an internal problem and needs to close , how can i solve it ? and how can i turn off the floor tiles?

Peter Corke

unread,
Feb 4, 2016, 3:54:26 PM2/4/16
to Robotics & Machine Vision Toolboxes, fatem...@gmail.com
plot the robot first using the 'notiles' option

then invoke teach() on that same robot object, it will build a teach interface in that plot without tiles
Reply all
Reply to author
Forward
0 new messages