Warning from Matlab

326 views
Skip to first unread message

Ning Hu

unread,
Nov 21, 2018, 1:39:10 PM11/21/18
to Robotics & Machine Vision Toolboxes
Hi, 

I didn't get any Matlab warnings last week or before, but, today, when I started the Matlab, I got following warning message. 

Warning: Function cummax has the same name as a MATLAB builtin. We suggest you
rename the function to avoid a potential name conflict. 
Warning: Function det has the same name as a MATLAB builtin. We suggest you
rename the function to avoid a potential name conflict. 

Classroom License -- for classroom instructional use only.

Warning: Name is nonexistent or not a directory:
C:\Users\nhu\Documents\RVCtoolboxes\MVTB\rvctools\vision\common 
> In path (line 109)
  In addpath (line 86)
  In startup (line 2) 
Warning: Name is nonexistent or not a directory:
C:\Users\nhu\Documents\RVCtoolboxes\MVTB\rvctools\vision\mexw64 
> In path (line 109)
  In addpath (line 86)
  In startup (line 3) 
Surfmex v.2.01 initialized.
>> 

Has anyone encounter these messages? 

Do I need to do something? 

I am using Matlab R2018b.

Ning

Peter Corke

unread,
Nov 24, 2018, 3:24:48 PM11/24/18
to Robotics & Machine Vision Toolboxes
Is there occurring while you run startup_rvc?

The problems with cummax() and det() are due to a clash between the contributed vl_feat library and MATLAB.  Are you actually using the Machine Vision Toolbox?

peter

Ning Hu

unread,
Nov 26, 2018, 9:47:25 AM11/26/18
to Robotics & Machine Vision Toolboxes
Hi, Peter:

Thanks for responding to my post. 

There are a couple of issues related to these warnings:

1. There are no warnings if I remove the paths for the Machine Vision Toolbox (I just did it to confirm this); therefore, the warnings are directly linked to the Machine Vision Toolbox.

2. I will use your Machine Vision Toolbox because we will also offer a course called SE632 Machine Vision or Machine Learning based on your book RVC 2rd edition, which will be developed in the spring of next year.

3. It seems that I also need the Machine Vision Toolbox because the Distance Transform method needs this toolbox: here is what I got:

>> load house;
>> dx = DXform(house);
>> dx.plan(place.kitchen);
Error using distancexform (line 80)
Machine Vision Toolbox is required by this function

Error in DXform/plan (line 161)
            dx.distancemap = distancexform(dx.occgridnav, dx.goal, dx.metric, show);

FYI, I was able to get the Distance Transform method to work after setting the paths to the Machine Vision Toolbox, but, now, it is not working anymore even I set the paths to the Machine Vision toolbox. 

FYI, I didn't get those warnings from Matlab even I had the paths set for the Machine Vision Toolbox two weeks before, which was the time when I got the Distance Transform method working. 

FYI, at the beginning of the "Introduction to RoadMap Methods, you have following code, which also needs the Machine Vision Toolbox:

>> free = 1 - house;
>> free(1,:) = 0; free(end,:) = 0;
>> free(:,1) = 0; free(:,end) = 0;
>> skeleton = ithin(free);
'ithin' is not found in the current folder or on the MATLAB path, but exists in:
    C:\Users\nhu\Documents\RVCtoolboxes\MVTB\rvctools\vision

Change the MATLAB current folder or add its folder to the MATLAB path.


So, I need both Robotics Toolbox and Machine Vision Toolbox for the two courses: SE630 and SE632. 

I would prefer to get rid of those warnings, but, they don't bother me too much if I can get the Distance Transform Method work and any other methods (discussed in your book) work. 

Thanks for any suggestions and/or solutions to these issues. 

Ning

Peter Corke

unread,
Nov 26, 2018, 3:54:17 PM11/26/18
to robotics...@googlegroups.com
Hi Ning,

are you teaching this semester or is it next year?

are you doing the zip or mltbx install?

The MVTB needs some love and attention, and it has a lot of dependencies on 3rd party code.  This week is a bit crazy but I’ll try and get to it before end of weekend.

peter

--
You received this message because you are subscribed to a topic in the Google Groups "Robotics & Machine Vision Toolboxes" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/robotics-tool-box/-eb0H7k7Giw/unsubscribe.
To unsubscribe from this group and all its topics, send an email to robotics-tool-...@googlegroups.com.
To post to this group, send email to robotics...@googlegroups.com.
Visit this group at https://groups.google.com/group/robotics-tool-box.
For more options, visit https://groups.google.com/d/optout.

Ning Hu

unread,
Nov 26, 2018, 4:13:08 PM11/26/18
to Robotics & Machine Vision Toolboxes
Hi, Peter:

I will teach both SE630 Robotics Principles and SE 632 Machine Vision sometimes next year. 

The exact date for teaching these courses has not been decided yet because my university has not officially launch the graduate program in System Engineering. It planned to launch this program in the Spring of 2019. 

I used zip files to install the both robotics toolbox and machine vision toolbox in two separate folders. 

I used your recommendation to run the startup_rvc to set the paths for both toolboxes, I also used the button "Add with Subfolders..." from Matlab Set Path window to set the paths for both toolboxes. 

I noticed that using "run startup_rvc", some of the sub-folders are not set in the Matlab Set Path window, I manually added those sub-folders to the Set Path window. By doing this, I actually made the Distance Transform method work. 

Thank you again for responding to my post.

Ning





On Wednesday, November 21, 2018 at 1:39:10 PM UTC-5, Ning Hu wrote:

Peter Corke

unread,
Nov 27, 2018, 6:15:37 AM11/27/18
to Robotics & Machine Vision Toolboxes
If both toolboxes are installed using zip into the same rvctools folder then running startup_rvc.m should set the paths up correctly.

Can you confirm that this is what you are doing?

You can either run startup_rvc every time you start MATLAB or use path tool to save the paths away once configured.  Will you build a file tree and distribute to your students or will they all download separately?

peter

Ning Hu

unread,
Nov 28, 2018, 9:04:21 AM11/28/18
to Robotics & Machine Vision Toolboxes
Hi, Peter:

I did what you said initially a couple of months ago. 

For reasons I don't remember now ( probably when I encounter the error messages saying that the Machine Vision Toolbox is needed by Distance Transform Method), I separated the two toolboxes into two folders later. 

Here are the paths for each of the two toolboxes:

For Robotics toolbox: C:\Users\nhu\Documents\RVCtoolboxes\RBTB\rvctools

For Machine Vision toolbox: C:\Users\nhu\Documents\RVCtoolboxes\MVTB\rvctools

Is this the wrong way to do?

Should I put both toolboxes into one single folder?


Ning


On Wednesday, November 21, 2018 at 1:39:10 PM UTC-5, Ning Hu wrote:

Peter Corke

unread,
Nov 28, 2018, 4:21:37 PM11/28/18
to robotics...@googlegroups.com
Hi Ning,  what you’ve done is not wrong, but you have thwarted the code that sets up paths properly.  

A few things:

* change into RBTB\rvctools and run startup_rtb, change into MVTB\rvctools and run startup_mvtb, these do the hardwork specific to each toolbox
* You can perhaps copy RBTB\rvctools and MVTB\rvctools into some new rvctools folder, then run startup_rvc.
* Install again from zip files, but this time unzip into the same folder

Ning Hu

unread,
Nov 30, 2018, 9:31:38 AM11/30/18
to Robotics & Machine Vision Toolboxes
Hi, Peter,

Thanks for the advice.

I will give them a try to see if the issues can be resolved. 


Ning




On Wednesday, November 21, 2018 at 1:39:10 PM UTC-5, Ning Hu wrote:

Ning Hu

unread,
Nov 30, 2018, 2:35:48 PM11/30/18
to Robotics & Machine Vision Toolboxes
Hi, Peter:

After taking your advice by putting both toolboxes into one folder: rvctools, and run the startup_rvc.m, all the issues are resolved. 

The Distance Transform method works perfectly, no more errors. 

As you pointed in your last response to my post, we should not save the paths to the Set Path window, instead, run the startup_rvc.m every time we start Matlab. 


Thank you very much, Peter. 

Have a good weekend.


Ning




On Wednesday, November 21, 2018 at 1:39:10 PM UTC-5, Ning Hu wrote:

Peter Corke

unread,
Dec 1, 2018, 4:41:58 PM12/1/18
to Robotics & Machine Vision Toolboxes
That's good news!

Saving the paths using the Set Path window is fine, just make sure you do it after running startup_rvc

peter
Reply all
Reply to author
Forward
0 new messages