Problem with "CentralCamera"

662 views
Skip to first unread message

Markus Vennebusch

unread,
Sep 4, 2017, 2:16:04 PM9/4/17
to Robotics & Machine Vision Toolboxes
Hello,

I just started to use the toolbox (using MATLAB R2015b, Windows 10). But unfortunately even for a simple example I get the following error message:


MATLAB output:

   
Home License -- for personal use only.  Not for government,
    academic
, research, commercial, or other organizational use.

>> version

ans
=

8.6.0.267246 (R2015b)

>> path

        MATLABPATH

    C
:\Users\User\Documents\MATLAB
   
...
    C
:\Users\User\Documents\MATLAB\Add-Ons\Toolboxes\Machine Vision Toolbox for MATLAB\code
    C
:\Users\User\Documents\MATLAB\Add-Ons\Toolboxes\Machine Vision Toolbox for MATLAB\code\simulink
    C
:\Users\User\Documents\MATLAB\Add-Ons\Toolboxes\Machine Vision Toolbox for MATLAB\code\common
    C
:\Users\User\Documents\MATLAB\Add-Ons\Toolboxes\Machine Vision Toolbox for MATLAB\code\contrib\graphseg
    C
:\Users\User\Documents\MATLAB\Add-Ons\Toolboxes\Machine Vision Toolbox for MATLAB\code\contrib\vlfeat-0.9.20\toolbox\mex\mexmaci64
    C
:\Users\User\Documents\MATLAB\Add-Ons\Toolboxes\Machine Vision Toolbox for MATLAB\code\contrib\vgg
    C
:\Users\User\Documents\MATLAB\Add-Ons\Toolboxes\Machine Vision Toolbox for MATLAB\code\contrib
    C
:\Users\User\Documents\MATLAB\Add-Ons\Toolboxes\Machine Vision Toolbox for MATLAB\code\vision\mex
    C
:\Users\User\Documents\MATLAB\Add-Ons\Toolboxes\Machine Vision Toolbox for MATLAB\code\vision\images
    C
:\Users\User\Documents\MATLAB\Add-Ons\Toolboxes\Machine Vision Toolbox for MATLAB\code\vision\examples
    C
:\Users\User\Documents\MATLAB\Add-Ons\Toolboxes\Machine Vision Toolbox for MATLAB\code\vision
    C
:\Users\User\Documents\MATLAB\Add-Ons\Toolboxes\Machine Vision Toolbox for MATLAB\code\robot
>> startup_rvc
Robotics, Vision & Control: (c) Peter Corke 1992-2011 http://www.petercorke.com
- Machine Vision Toolbox for MATLAB (release 4.1)
 
- VGG contributed code (C:\Users\User\Documents\MATLAB\Add-Ons\Toolboxes\vision-4.1\rvctools\contrib\vgg)
 
- graphseg contributed code (C:\Users\User\Documents\MATLAB\Add-Ons\Toolboxes\vision-4.1\rvctools\contrib\graphseg)
>> startup_mvtb
- Machine Vision Toolbox for MATLAB (release 4.1)
 
- VGG contributed code (C:\Users\User\Documents\MATLAB\Add-Ons\Toolboxes\vision-4.1\rvctools\contrib\vgg)
 
- graphseg contributed code (C:\Users\User\Documents\MATLAB\Add-Ons\Toolboxes\vision-4.1\rvctools\contrib\graphseg)
>> cam=CentralCamera('focal', 0.008)
Error using SE3
The specified superclass 'SO3' contains a parse error, cannot be found on MATLAB's search path, or is shadowed
by another file with the same name.

Error in Camera/set.T (line 717)
            c.T = SE3(Tc);

Error in Camera (line 138)
            c.T = eye(4,4);

Error in CentralCamera (line 169)
            c = c@Camera(varargin{:});
 
>>

Can anybody help me please?

Thanks a lot,
Markus

jiabi...@gmail.com

unread,
Oct 16, 2017, 6:45:47 AM10/16/17
to Robotics & Machine Vision Toolboxes
Hey!!!!!! I figured that out! Turns out you need to install Robotics Toolbox as well, SO3 code is in that folder, not in the Machine Vision Folder!!!!. Hope it will work for you

jiabi...@gmail.com

unread,
Oct 16, 2017, 6:45:47 AM10/16/17
to Robotics & Machine Vision Toolboxes
I got the same issue with you. Did you figure it out?

Jiabin

On Monday, September 4, 2017 at 2:16:04 PM UTC-4, Markus Vennebusch wrote:

Peter Corke

unread,
Oct 16, 2017, 6:56:19 AM10/16/17
to Robotics & Machine Vision Toolboxes
Thanks for figuring this out.  I'll make sure that those classes are included with future MVTB release.  Sometimes I think I made life too hard for me and everybody else by keeping the toolboxes separate.

Peter

mukha...@gmail.com

unread,
Feb 18, 2018, 3:38:33 AM2/18/18
to Robotics & Machine Vision Toolboxes
Dear Prof. Peter Corke,
I am having the same issues, I have both the toolboxes installed.

Can you kindly direct me how to resolve this issue?

Thanks.

Peter Corke

unread,
Feb 18, 2018, 3:48:18 AM2/18/18
to Robotics & Machine Vision Toolboxes
Can you cut and paste the error message here.  Also the results of 

>> which rotx
>> which SO3
>> which RTBPose

thx

Muhammad Khan

unread,
Feb 18, 2018, 8:25:15 AM2/18/18
to robotics...@googlegroups.com
Dear Prof. Peter,
Thank you very much for replying. Below please find the error results.

>>cam = CentralCamera('focal', 0.015);
Error using SE3
The specified superclass 'SO3' contains a parse error, cannot be found on MATLAB's search path, or is shadowed by
another file with the same name.
Error in Camera/set.T (line 717)
            c.T = SE3(Tc);
Error in Camera (line 138)
            c.T = eye(4,4);
Error in CentralCamera (line 169)
            c = c@Camera(varargin{:}); 

>> which rotx
/Users/ukhan/Documents/MATLAB/rvctools/robot/rotx.m
>> which SO3
'SO3' not found.
>> which RTBPose
'RTBPose' not found.

Thanks. Regards,
Umer


--
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/uxXqEEGx6VI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to robotics-tool-box+unsubscribe@googlegroups.com.
To post to this group, send email to robotics-tool-box@googlegroups.com.
Visit this group at https://groups.google.com/group/robotics-tool-box.
For more options, visit https://groups.google.com/d/optout.

Peter Corke

unread,
Feb 24, 2018, 5:16:03 PM2/24/18
to Robotics & Machine Vision Toolboxes
Hi Umer,

the quickest way to proceed is to install my Robotics Toolbox.  It will provide the missing functionality.  Apologies for this.  I will shortly release an update of the Machine Vision Toolbox that will fix this problem.

peter

manun...@gmail.com

unread,
Apr 28, 2018, 3:27:34 PM4/28/18
to Robotics & Machine Vision Toolboxes
Hello prof Corke,
 
I'd like to ask you help about your toolboxes(4.1). 
I recently downloaded the two toolboxes but facing error messages with CentralCamera. I'm using matlab 2013. Here are the error messages ;
>> cam = CentralCamera('focal', 0.008)
principal point not specified, setting it to centre of image plane
 
cam = 
 
Error using tb_optparse (line 265)
unknown options: camera

Error in trprint (line 61)
    opt = tb_optparse(opt, varargin);

Error in RTBPose/print (line 653)
                    out = strvcat(out, trprint(T.T, varargin{:}));

Error in Camera/char (line 268)
            s = strvcat(s,     sprintf('  pose:           %s', print(c.T, 'camera')));

Error in CentralCamera/char (line 264)
            s = strvcat(s, char@Camera(c) );

Error in Camera/display (line 244)
            disp(char(c)) 
 Cordially
 
 

Peter Corke

unread,
Apr 28, 2018, 8:43:25 PM4/28/18
to Robotics & Machine Vision Toolboxes
I'm not able to replicate your issues, it maybe because you are using a very old matlab.  First thing is to bring MVTB and RTB uptodate.  If that doesn't work then I'd like you to run the following code for me and post the results back here


which CentralCamera
which tb_optparse
which trprint

ouafom...@gmail.com

unread,
Apr 30, 2018, 11:56:45 AM4/30/18
to Robotics & Machine Vision Toolboxes
Hi Khan,
don't use a recent toolbox with a newer one. here is a solution.
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.

manun...@gmail.com

unread,
Apr 30, 2018, 11:56:45 AM4/30/18
to Robotics & Machine Vision Toolboxes
Thanks for your regards. I've runned the code, and here are the results :

>> startup_rvc
Robotics, Vision & Control: (c) Peter Corke 1992-2011 http://www.petercorke.com
- Robotics Toolbox for Matlab (release 4.1)
** Release 9.10 now available

Run rtbdemo to explore the toolbox
- Machine Vision Toolbox for MATLAB (release 4.1)
 - VGG contributed code (F:\vision-4.1\rvctools\contrib\vgg)
 - graphseg contributed code (F:\vision-4.1\rvctools\contrib\graphseg)

>> which CentralCcamera
'CentralCcamera' not found.
>>
>> which tb_optparse
F:\vision-4.1\rvctools\common\tb_optparse.m
>>
>> which trprint
C:\Program Files\MATLAB\R2013a\toolbox\rvctools\robot\trprint.m
>> 

Peter Corke

unread,
May 5, 2018, 8:44:18 PM5/5/18
to Robotics & Machine Vision Toolboxes
There is something odd about your install.  Best to install RTB and MVTB in the same place, the zip files are designed to interleave into the one folder rvctools.

Remove current RTB and MVTB and reinstall.

Let me know if you have further problems.

Peter Corke

unread,
May 5, 2018, 8:44:32 PM5/5/18
to Robotics & Machine Vision Toolboxes
Something is not right with your installation.  Perhaps you do not have a recent version of RTB, which should include SO3 and RTBPose classes which are required by CentralCamera.

Remove RTB and MVTB.
Download latest versions from my website and install them.

On Sunday, 18 February 2018 23:25:15 UTC+10, Muhammad Khan wrote:

manun...@gmail.com

unread,
May 12, 2018, 6:51:44 PM5/12/18
to Robotics & Machine Vision Toolboxes
Sir,

I have downloaded the recent version of Robotics toolbox and it's all working.
Thanks, sincerely.

Peter Corke

unread,
May 12, 2018, 10:08:26 PM5/12/18
to Robotics & Machine Vision Toolboxes
great to hear.  Thanks for letting us know.

Shubh

unread,
May 19, 2018, 7:03:27 PM5/19/18
to Robotics & Machine Vision Toolboxes
Try installing the Robotics toolbox(http://petercorke.com/wordpress/), that worked for me. Hopefully, it will work for you as well.

Shubh

shahbaz....@hitecuni.edu.pk

unread,
Aug 2, 2018, 11:53:34 AM8/2/18
to Robotics & Machine Vision Toolboxes
Hey i am also having an issue
when i run the tool box and write the following command
cam=CentralCamera('default')
the following error is showing
cam = 
 
Undefined function 'trprint' for input arguments of type 'double'.

Error in RTBPose/print (line 653)
                    out = strvcat(out, trprint(T.T, varargin{:}));

Error in Camera/char (line 267)
            s = strvcat(s,     sprintf('  pose:           %s', print(c.T, 'camera')));

Error in CentralCamera/char (line 264)
            s = strvcat(s, char@Camera(c) );

Error in Camera/display (line 243)
            disp(char(c))
 
>> 
need help in it regards

Shahbaz

Peter Corke

unread,
Aug 2, 2018, 8:46:54 PM8/2/18
to robotics...@googlegroups.com
There are some dependencies on my robotics toolbox.  Install that and all should be well.

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/uxXqEEGx6VI/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.
Reply all
Reply to author
Forward
0 new messages