<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">El 23/03/15 a las 18:53, Sahil Shah
escribió:<br>
</div>
<blockquote cite="mid:BAY180-W40A76728AF1ED9A0ADD958840D0@phx.gbl"
type="cite">
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style>
<div dir="ltr">I had successfully compiled the full software on my
Virtual Machine. When trying to run the cameraserver on the
virtual machine, I am having a problem.
<div>Shell log - </div>
<div>
<div>~/JdeRobot/src/stable/components/cameraserver$
./cameraserver --Ice.Config=cameraserver.cfg</div>
<div>Constructor CameraI -> CameraSrv.Camera.0.</div>
<div>URI: 0</div>
</div>
</div>
</blockquote>
<br>
<br>
That string is outputted to stdout in line 94[1]. This will call
OpenCV's VideoCapture "open" method with a argument converted from
string "0" (with atoi) at line 99.<br>
<br>
<br>
<blockquote cite="mid:BAY180-W40A76728AF1ED9A0ADD958840D0@phx.gbl"
type="cite">
<div dir="ltr">
<div>
<div>VIDIOC_QUERYMENU: Invalid argument</div>
<div>VIDIOC_QUERYMENU: Invalid argument</div>
<div>VIDIOC_QUERYMENU: Invalid argument</div>
</div>
</div>
</blockquote>
<br>
<br>
That is a problem, probably caused by opencv opening the webcam, or
less probable line 220 (setting CV_CAP_PROP_POS_AVI_RATIO
parameter).<br>
<br>
<br>
<blockquote cite="mid:BAY180-W40A76728AF1ED9A0ADD958840D0@phx.gbl"
type="cite">
<div dir="ltr">
<div>
<div>safeThread</div>
</div>
</div>
</blockquote>
<br>
<br>
Generated at line 185. ReplyTask thread was created (from line 102).
Your adapter is now ready to serve images from opencv's camera "0"
(default camera).<br>
<br>
<br>
<blockquote cite="mid:BAY180-W40A76728AF1ED9A0ADD958840D0@phx.gbl"
type="cite">
<div dir="ltr">
<div>
<div>33</div>
</div>
</div>
</blockquote>
<br>
<br>
This is generated in line 206 and is the 1000/30 framerate control
(FramerateN).<br>
<br>
<br>
<blockquote cite="mid:BAY180-W40A76728AF1ED9A0ADD958840D0@phx.gbl"
type="cite">
<div dir="ltr">
<div>
<div>select timeout</div>
<div>select timeout</div>
<div>select timeout</div>
<div>select timeout</div>
<div><br>
</div>
</div>
<div>and it keeps on showing the Select timeout after a
particular interval. I can see a light near my webcam glowing
indicating its working but i cant see the GUI.</div>
</div>
</blockquote>
<br>
<br>
Don't worry about this messages. The adapter is ready to serve
frames from your camera, but you will need a client/consumer (like
cameraview) that connect to your adapter and ask for every frame for
render it in a GUI.<br>
<br>
Remember, this is a headless (guiless) program, like a daemon.<br>
<br>
Take a look to this video:<br>
<a href="https://www.youtube.com/watch?v=_d_8pzFQOZ4">https://www.youtube.com/watch?v=_d_8pzFQOZ4</a><br>
<br>
Mobile is running an android version of cameraserver and laptop is
running cameraview, that is the one that shows the images fetched
from the mobile's camera.<br>
<br>
Good luck!<br>
<br>
<br>
[1]: <a
href="https://github.com/RoboticsURJC/JdeRobot/blob/master/src/stable/components/cameraserver/cameraserver.cpp#L94">https://github.com/RoboticsURJC/JdeRobot/blob/master/src/stable/components/cameraserver/cameraserver.cpp#L94</a><br>
</body>
</html>