<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]-->
</head>

<body lang=EN-US link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>The assertion fails because the size is hardcoded to 640x480 in
the calibrator.py script.  Look at line 313.  We encountered this
issue with higher res cameras.  Change 313-317 to match your camera
resolution and it should be fine.<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Mike<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>

<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'>

<p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span
style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> Adam Stambler
[mailto:adasta@gmail.com] <br>
<b>Sent:</b> Sunday, April 25, 2010 7:39 PM<br>
<b>To:</b> ros-users@code.ros.org<br>
<b>Subject:</b> Re: [ros-users] Camera_calibration Error: Stereo calibration<o:p></o:p></span></p>

</div>

<p class=MsoNormal><o:p> </o:p></p>

<p class=MsoNormal style='margin-bottom:12.0pt'>Hi,<br>
<br>
I am working with the stereo calibrator.  I am trying to calibrate a
stereo rig with two logitech webcams whose images are  320 by 240. 
The camera drivers are based off of modified v4l2stereo code.  Is it
possible that we introduced this kind of error with an incorrectly written
image publisher?<br>
<br>
Thank you again for the help,<br>
Adam<o:p></o:p></p>

<div>

<p class=MsoNormal>On Sun, Apr 25, 2010 at 6:57 PM, James Bowman <<a
href="mailto:jamesb@willowgarage.com" target="_blank">jamesb@willowgarage.com</a>>
wrote:<o:p></o:p></p>

<p class=MsoNormal style='margin-bottom:12.0pt'>Hi Adam,<br>
<br>
Is this the monocular or stereo calibrator?<br>
And what size image /camera is this working with?<o:p></o:p></p>

<div>

<div>

<div>

<p class=MsoNormal>On Sun, Apr 25, 2010 at 2:50 PM, Adam Stambler <<a
href="mailto:adasta@gmail.com" target="_blank">adasta@gmail.com</a>> wrote:<o:p></o:p></p>

</div>

</div>

<blockquote style='border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;
margin-left:4.8pt;margin-right:0in'>

<div>

<div>

<p class=MsoNormal style='margin-bottom:12.0pt'>Hello Folks,<br>
<br>
I am using boxturtle to do stereo calibration.  I have been running the
cameracalibrator.py node with no trouble up until the point where it needs to
calibrate.  When I hit the green calibrate button, and it outputs this
error message:<br>
<br>
epipolar error: 0.740361764685<br>
OpenCV Error: Assertion failed (src.type() == dst.type() && dst.size()
== mapx.size()) in cvRemap, file
/home/asher/ros/stacks/vision_opencv/opencv2/build/opencv-svn/src/cv/cvimgwarp.cpp,
line 3083<br>
Exception in thread Thread-9:<br>
Traceback (most recent call last):<br>
  File "/usr/lib/python2.6/threading.py", line 525, in
__bootstrap_inner<br>
    self.run()<br>
  File "./cameracalibrator.py", line 59, in run<br>
    self.function(m)<br>
  File "./cameracalibrator.py", line 233, in handle_stereo<br>
    lscrib = self.c.lremap(lrgb)<br>
  File "/home/asher/ros/stacks/image_pipeline/camera_calibration/src/camera_calibration/calibrator.py",
line 407, in lremap<br>
    cv.Remap(src, r, self.lmapx, self.lmapy)<br>
error: src.type() == dst.type() && dst.size() == mapx.size()<br>
<br>
I am a bit flummoxed by the error as the arguments to lremap all seem to be
OK.  Is there some way I could be making a mistake in setting up the
calibrator?<br>
<br>
Have other people had this problem with the current revision of
boxturtle?  <br>
<br>
Thank you for the help and guidance,<br>
<span style='color:#888888'>Adam Stambler</span><o:p></o:p></p>

</div>

</div>

<p class=MsoNormal style='margin-bottom:12.0pt'>_______________________________________________<br>
ros-users mailing list<br>
<a href="mailto:ros-users@code.ros.org" target="_blank">ros-users@code.ros.org</a><br>
<a href="https://code.ros.org/mailman/listinfo/ros-users" target="_blank">https://code.ros.org/mailman/listinfo/ros-users</a><o:p></o:p></p>

</blockquote>

</div>

<p class=MsoNormal style='margin-bottom:12.0pt'><br>
<br clear=all>
<br>
-- <br>
<span style='color:#888888'>J.<br>
<br>
</span><br>
_______________________________________________<br>
ros-users mailing list<br>
<a href="mailto:ros-users@code.ros.org" target="_blank">ros-users@code.ros.org</a><br>
<a href="https://code.ros.org/mailman/listinfo/ros-users" target="_blank">https://code.ros.org/mailman/listinfo/ros-users</a><o:p></o:p></p>

</div>

<p class=MsoNormal><o:p> </o:p></p>

</div>

</body>

</html>