cameraUVC.h
/*
* Player - One Hell of a Robot Server
* Copyright (C) 2006
* Raymond Sheh, Luke Gumbley
*
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
*/
#include <libplayercore/playercore.h>
#include "UvcInterface.h"
class CameraUvc;
#ifndef CAMERAUVC_H_
#define CAMERAUVC_H_
class CameraUvc : public ThreadedDriver
{
public:
CameraUvc(ConfigFile* cf, int section);
~CameraUvc();
int MainSetup();
void MainQuit();
int ProcessMessage(QueuePointer &resp_queue, player_msghdr *hdr, void *data);
private:
virtual void Main();
UvcInterface *ui;
player_camera_data_t data; // Data to send to client (through the server)
};
#endif /*CAMERAUVC_H_*/
ConfigFile
Class for loading configuration file information.
Definition: configfile.h:196
player_msghdr
Generic message header.
Definition: player.h:157
CameraUvc
Definition: cameraUVC.h:32
CameraUvc::Main
virtual void Main()
Main method for driver thread.
Definition: cameraUVC.cc:161
ThreadedDriver
Base class for drivers which oeprate with a thread.
Definition: driver.h:544
QueuePointer
An autopointer for the message queue.
Definition: message.h:73
CameraUvc::MainSetup
int MainSetup()
Sets up the resources needed by the driver thread.
Definition: cameraUVC.cc:130
CameraUvc::ProcessMessage
int ProcessMessage(QueuePointer &resp_queue, player_msghdr *hdr, void *data)
Message handler.
Definition: cameraUVC.cc:194
UvcInterface
Definition: UvcInterface.h:32
CameraUvc::MainQuit
void MainQuit()
Cleanup method for driver thread (called when main exits)
Definition: cameraUVC.cc:150
player_camera_data
Data: state (PLAYER_CAMERA_DATA_STATE)
Definition: player_interfaces.h:2934

Last updated 12 September 2005 21:38:45