From: Eric I. <eri...@gm...> - 2006-07-18 21:47:02
|
Heck yeah, that was it. Figured it was something dumb like that. Works great now. Thanks! On 7/18/06, Geoffrey Biggs <g....@au...> wrote: > Are you calling playerc_client_read to get the latest data from the robot? > Can you post more of your program's code? > > Geoff > > Eric Innis wrote: > > Hi, I'm using the sonyEVID30 camera and a bt878 capture card. My > > configuration looks like this: > > > > driver > > ( > > name "camerav4l" > > provides ["camera:0"] > > port "/dev/video0" > > source 0 > > norm "ntsc" > > size [160 120] > > mode "RGB888" > > ) > > > > > > I get no errors during runtime however I can't get any real data from > > the camera, i.e. all the fields in the camera structure are zero. > > Here is my debugging output: > > > > [root@grits1 player_work]# ./camera_test > > Creating Client > > Creating Camera > > Changing Data Mode > > Width: 0 > > Height: 0 > > BPP: 0 > > Format: 0 > > FDIV: 0 > > Compression: 0 > > image_count: 0 > > Closing Camera > > Closing Client > > > > > > Using playerc_camera_save(cam, "test_image.ppm"); file is created, > > however it is only 11 bytes long containing: > > > > P6 > > 0 0 > > 255 > > > > > > This is how I am initializing the camera: > > > > printf("Creating Camera\n"); > > cam = playerc_camera_create(client, 0); > > if (0 != playerc_camera_subscribe(cam, PLAYER_OPEN_MODE)) > > return -1; > > > > > > > > Meanwhile I can use mplayer to view video, so I know the hardware is working. > > Does anyone know what is going on here? > > > > Thanks, > > > > -- > Robotics research group, University of Auckland > http://www.ece.auckland.ac.nz/~gbig005/ > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys -- and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Playerstage-users mailing list > Pla...@li... > https://lists.sourceforge.net/lists/listinfo/playerstage-users > -- Eric Innis Georgia Institute of Technology Electrical and Computer Engineering: GRITS Lab. Aerospace Engineering: Computational Combustion Lab. 404.312.0950 |