orlando1490 / matlab-toolboxes-robotics-vision

Automatically exported from code.google.com/p/matlab-toolboxes-robotics-vision
0 stars 0 forks source link

Problem with trplot2 - error using horzcat - example from book #24

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

Robotics, Vision and Control (corrected second printing), Peter Corke - page 
#22 MATLAB example:

>> T1 = se2(1,2,30*pi/180)

T1 =

    0.8660   -0.5000    1.0000
    0.5000    0.8660    2.0000
         0         0    1.0000

>> axis([0 5 0 5])
>> trplot2(T1, 'frame', '1', 'color', 'b')
Error using horzcat
Dimensions of matrices being concatenated are not consistent.

Error in transl (line 73)
            t1 =    [eye(3)          t(:);

Error in trplot2 (line 90)
            c = transl(T);

What version of the product are you using? On what operating system?

>> ver
--------------------------------------------------------------------------------
----------------
MATLAB Version: 8.1.0.604 (R2013a)
MATLAB License Number: ****** (hidden for security reasons)
Operating System: Microsoft Windows 7 Version 6.1 (Build 7601: Service Pack 1)
Java Version: Java 1.6.0_17-b04 with Sun Microsystems Inc. Java HotSpot(TM) 
Client VM mixed mode
--------------------------------------------------------------------------------
----------------
MATLAB                                                Version 8.1        
(R2013a)
Simulink                                              Version 8.1        
(R2013a)
Communications System Toolbox                         Version 5.4        
(R2013a)
Control System Toolbox                                Version 9.5        
(R2013a)
Curve Fitting Toolbox                                 Version 3.3.1      
(R2013a)
DSP System Toolbox                                    Version 8.4        
(R2013a)
Fuzzy Logic Toolbox                                   Version 2.2.17     
(R2013a)
Global Optimization Toolbox                           Version 3.2.3      
(R2013a)
Image Processing Toolbox                              Version 8.2        
(R2013a)
MATLAB Coder                                          Version 2.4        
(R2013a)
MATLAB Compiler                                       Version 4.18.1     
(R2013a)
Neural Network Toolbox                                Version 8.0.1      
(R2013a)
Optimization Toolbox                                  Version 6.3        
(R2013a)
Partial Differential Equation Toolbox                 Version 1.2        
(R2013a)
Robotics Toolbox                                      Version 9.9.0             

Signal Processing Toolbox                             Version 6.19       
(R2013a)
Simulink Coder                                        Version 8.4        
(R2013a)
Simulink Control Design                               Version 3.7        
(R2013a)
Simulink Design Optimization                          Version 2.3        
(R2013a)
Statistics Toolbox                                    Version 8.2        
(R2013a)
Symbolic Math Toolbox                                 Version 5.10       
(R2013a)
System Identification Toolbox                         Version 8.2        
(R2013a)
Wavelet Toolbox                                       Version 4.11       
(R2013a)
>> 

Please provide any additional information below.

The example from the book, page 22 doesn't work on MATLAB, details of which are 
provided above.

Original issue reported on code.google.com by mohammad...@zhcet.ac.in on 20 May 2014 at 6:39

GoogleCodeExporter commented 8 years ago
I have the same problem running R2013b on Mac OS X 10.9.5

Original comment by cla...@cse.unsw.edu.au on 6 Jul 2014 at 3:20

GoogleCodeExporter commented 8 years ago
Also in MATLAB Version: 8.3.0.532 (R2014a)

Original comment by zoomb...@gmail.com on 14 Jul 2014 at 7:09

GoogleCodeExporter commented 8 years ago
i am also facing same problem in matlab R2014a version in windows 7

Original comment by anvesh.i...@gmail.com on 14 Jul 2014 at 9:25

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
You can solve this issue applying the attached patches to the "transl.m" and 
"trplot2.m" files.

In order to have the exactly same graphical result instead of
>> axis([0, 5, 0, 5]);
>> trplot2(T1, 'frame', '1', 'color', 'b')

use
>> trplot2(T1, 'frame', '1', 'color', 'b', 'axis', [0, 5, 0, 5])

I hope it helps.

César

Original comment by cesarver...@gmail.com on 15 Jul 2014 at 12:46

Attachments:

GoogleCodeExporter commented 8 years ago
How can i apply the patch Mr.Cesar? how can i apply it to a m.file. please help 
me.

Original comment by anvesh.i...@gmail.com on 16 Jul 2014 at 7:47

GoogleCodeExporter commented 8 years ago
In linux you can use

patch source.code.file < patch.file

in windows you can install winmerge <http://winmerge.org/>. Or simply open
the patch file in a text editor, read it, an make the change into the .m
file by hand.

If you have problems, please contact me again.

:-)

On Wed, Jul 16, 2014 at 4:47 PM, <
matlab-toolboxes-robotics-vision@googlecode.com> wrote:

Original comment by cesarver...@gmail.com on 16 Jul 2014 at 9:53

GoogleCodeExporter commented 8 years ago
Tanks for your help, it works (patch too) under win 8.1. R2014a :-)

Original comment by sandor.s...@eurotrenton.com on 20 Jul 2014 at 6:42

GoogleCodeExporter commented 8 years ago
I'm glad to reading it. I hope the bug be solved for the next release of
the toolbox.
:-)

On Sun, Jul 20, 2014 at 3:42 PM, <
matlab-toolboxes-robotics-vision@googlecode.com> wrote:

Original comment by cesarver...@gmail.com on 20 Jul 2014 at 6:51

GoogleCodeExporter commented 8 years ago
thanks for the help, the patch works fine.

Original comment by ariful....@gmail.com on 6 Dec 2014 at 5:19

GoogleCodeExporter commented 8 years ago
As of robot-9.10.zip 24 February 2015, this issue has been fixed :) Make sure 
re-add path after placing the toolbox to that path.

Original comment by xyng...@gmail.com on 7 May 2015 at 3:21