[JdeRobot] Cameraserver
Oscar Garcia
oscar.robotica at linaresdigital.com
Mon Mar 23 19:40:11 CET 2015
El 23/03/15 a las 18:53, Sahil Shah escribió:
> 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.
> Shell log -
> ~/JdeRobot/src/stable/components/cameraserver$ ./cameraserver
> --Ice.Config=cameraserver.cfg
> Constructor CameraI -> CameraSrv.Camera.0.
> URI: 0
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.
> VIDIOC_QUERYMENU: Invalid argument
> VIDIOC_QUERYMENU: Invalid argument
> VIDIOC_QUERYMENU: Invalid argument
That is a problem, probably caused by opencv opening the webcam, or less
probable line 220 (setting CV_CAP_PROP_POS_AVI_RATIO parameter).
> safeThread
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).
> 33
This is generated in line 206 and is the 1000/30 framerate control
(FramerateN).
> select timeout
> select timeout
> select timeout
> select timeout
>
> 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.
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.
Remember, this is a headless (guiless) program, like a daemon.
Take a look to this video:
https://www.youtube.com/watch?v=_d_8pzFQOZ4
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.
Good luck!
[1]:
https://github.com/RoboticsURJC/JdeRobot/blob/master/src/stable/components/cameraserver/cameraserver.cpp#L94
------------ próxima parte ------------
Se ha borrado un adjunto en formato HTML...
URL: http://gsyc.escet.urjc.es/pipermail/jde-developers/attachments/20150323/7ad96a2c/attachment-0001.htm
------------ próxima parte ------------
Se ha borrado un mensaje que no est? en formato texto plano...
Nombre : smime.p7s
Tipo : application/pkcs7-signature
Tama?o : 2245 bytes
Descripci?n: Firma criptogr??fica S/MIME
Url : http://gsyc.escet.urjc.es/pipermail/jde-developers/attachments/20150323/7ad96a2c/attachment-0001.bin
More information about the Jde-developers
mailing list